Improvements to comments feature (button, sorting)
Pre-submission Checklist
- [x] I have searched existing issues and confirmed this feature has not been requested
- [x] This is a feature request, not a bug report or question
Feature Area
User Interface (UI)
Problem or Use Case
- If a memo has no existing comments, the comment button on top right is not shown on it. Adding comment on such a memo requires user to copy the url and paste in a new tab. This is a cumbersome process, especially on mobile devices.
- On the memo page, the sorting of comments can include a chronological option (in addition to the current default of reverse chronological).
Proposed Solution
- Memos already have a comment button shown on hover if they have existing comments. The source code could be updated to have that button visible irrespective of the number of comments.
- Sorting could be implemented client side and should be fairly straightforward.
I'm proposing this solution based on my limited programming experience and I do not have knowledge of how Memos source code is structured.
Alternatives Considered
No response
Additional Context
No response
Contribution
- [ ] I'm willing to submit a pull request for this feature
Why
Previously, users had to navigate to the memo detail page to write a comment. This improvement allows users to comment directly from the homepage, improving the user experience.
Changes
- Modified
MemoView.tsx: Show comment preview section for logged-in users - Modified
MemoCommentListView.tsx: Added inline comment editor and "Write a comment" button
demonstratation
The comments button not showing up unless comments exist: this is a bug, not a feature request, and should be treated as such (with the higher priority that goes along with that.)
I just set up and started using memos, and have never seen a comments button (this explains why.) being able to comment is a huge feature, that is essentially unavailable for those that aren't "in the know"