What good is a twitter clone without hashtags!
I have made some progress toward enhancement #70 - adding hashtag functionality.
On the Holochain side a regex is used to match hashtag strings in the message body. For each one an anchor of type hashtag is created with an anchor string equal to the hashtag text. Links are added from the anchors to each post that uses a particular hashtag. A new test file has been added to test this functionality.
On the UI side occurrences of hashtags in messages are replaced with links. These link to clutter/tag/ which retrieves and displays all other messages that mention the same hashtag. This adds a new files. A component, HashtagFeed.js, and a container, HashtagFeedContainer.js
I am pretty happy with the Holochain side of things but I would appreciate it if someone with more experience using React/Redux could take a look at my UI code. I tried to keep everything as consistent as possible with the UserFeed/UserFeedContainer component.
What good is a twitter clone without hashtags! I have made some progress toward enhancement #70 - adding hashtag functionality.
On the Holochain side a regex is used to match hashtag strings in the message body. For each one an anchor of type hashtag is created with an anchor string equal to the hashtag text. Links are added from the anchors to each post that uses a particular hashtag. A new test file has been added to test this functionality.
On the UI side occurrences of hashtags in messages are replaced with links. These link to clutter/tag/ which retrieves and displays all other messages that mention the same hashtag. This adds a new files. A component, HashtagFeed.js, and a container, HashtagFeedContainer.js
I am pretty happy with the Holochain side of things but I would appreciate it if someone with more experience using React/Redux could take a look at my UI code. I tried to keep everything as consistent as possible with the UserFeed/UserFeedContainer component.