ULOG #27: Creating Communities in Ulogs.org

in #ulog5 years ago (edited)

image.png

Communities are one of the core aspects of STEEM. Whether it be a curation community, a development community, or others communities. Communities play an important role in any platform. Take the community away, and you have no users interacting. Take the technology away, and you have no tool for your community to interact.

Communities and technology go hand-in-hand in STEEM's sociability. With this in mind, Terry (@surpassinggoogle) came up with a feature to add creation of communities within https://ulogs.org.

If this is the first time you've come across ulogs.org, I suggest you watch this video to learn more.

This contribution added the function to create ulog communities within ulogs.org, plus some other previous development contributions I only had the time to write about today.

1. Repository

https://github.com/surpassinggoogle/UlogsV2

2. Task Request/Issue

https://github.com/surpassinggoogle/UlogsV2/issues/186

3. Pull Requests

https://github.com/surpassinggoogle/UlogsV2/pull/279
https://github.com/surpassinggoogle/UlogsV2/pull/280
https://github.com/surpassinggoogle/UlogsV2/pull/288
https://github.com/surpassinggoogle/UlogsV2/pull/291
https://github.com/surpassinggoogle/UlogsV2/pull/292
https://github.com/surpassinggoogle/UlogsV2/pull/293

4. Testing

These were the tests manually done in Chrome:

  1. Feature: New #ulog-subtag Feed Should Display a Custom Collapse Panel
    • Visit any ulog-subtag not indicated in the exception list written by Terry on the issue
      • image.png
    • Expected Result:
      • A collapse panel (default collapsed) with the following text should display on top of the feed
      • image.png
  2. Feature: Empty About #ulog-subtag on the Right Side Bar
    • Visit any ulog-subtag not indicated in the exception list written by Terry on the issue
    • Expected Results:
      • An empty About #ulog-subtag on the right side bar should display with a Post Now button
      • Clicking on Post Now should bring the user to the ulog main editor
  3. Feature: Create Community Page
    • Visit the create community page directly via address bar or from the user's top nav panel
    • Input a tag with an empty feed (no posts created with it yet); try something bogus like bogus
    • Expected Results:
      • Input community should be validated (error, if posts already exists)
      • Clicking Create Community should automatically create a post for the user and redirect to the post

5. Implementation

Because of the amount of work (source codes) that went into this, I can only mention the major files modified:

  1. src/client/community/CreateCommunity.js - the main community creation page
    image.png
  2. src/client/feed/UlogGenericCaption.js - the generic caption component for the right side bar
    image.png
  3. src/client/feed/Page.js - modified the feed page to display the collapse panel for empty ulog-subtags
    image.png
  4. src/client/components/Sidebar/UlogGamesExchanges.js - split the #ulog-games and #ulog-exchanges stories to display on the right side bar
    image.png

6. Feature in Action

create-community.gif

7. Lesson Learned

Split and solve is a common strategy I do when doing development tasks. It’s also known as divide and conquer.

I split down an epic task into chunks and work on each chunk one at a time. When you look at it on this level, it seems that little is being done, which is the truth. The magic happens with time. When these small tasks are consistently completed in a span of time. Collectively, they contribute to the bigger picture - they complete the epic task you started with.

8. GitHub Account

https://github.com/eastmaels

This post was made from https://ulogs.org

Sort:  
  • Great article with images, code samples and explanation of coding choices. Communities are coming alive!
  • Good commit messages and lots of code comments.
  • Great job all around.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for the review and feedback.

The feature is an excellent idea coming from Terry. I had fun doing them. :)

Posted using Partiko Android

Thank you for your review, @helo! Keep up the good work!

Hey, @eastmael!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Thank you for always contributing remarkable development. Truly an amazing effort.

Hi @eastmael!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.24
TRX 0.11
JST 0.032
BTC 61572.53
ETH 2995.53
USDT 1.00
SBD 3.73