mrusme / superhighway84

USENET-inspired, uncensorable, decentralized internet discussion system running on IPFS & OrbitDB
https://xn--gckvb8fzb.com/superhighway84
GNU General Public License v3.0
694 stars 24 forks source link

Conversation threading #6

Closed mrusme closed 2 years ago

mrusme commented 2 years ago

As more and more people start to use this platform (hehehe :-) 👍🏼 ) conversation threading needs to be implemented in order to enhance the reading experience.

On the back-end, this was already done, with articles having the InReplyToID field. What's left to be done is the front-end code in tui/mainscreen.go, specifically the Refresh function that renders the list.

Jay4242 commented 2 years ago

Great stuff. Would it be possible to toggle between the two views? Then it's like sorting by recent comments vs recent threads. Maybe even a different option of having comments bump the threads up?

mrusme commented 2 years ago

@Jay4242 https://xkcd.com/1172/

However, yes, it would be possible. In its current stage I'd prefer to iterate on multiple things bit by bit, rather than work on one single aspect until it's perfect. :-) I'm sure I'll be going to refactor the code sometime in future and at that point the toggling and sorting could be built in.

Alternatively, if anyone feels like digging into this and try implementing it right away I wouldn't mind a PR, hehe.