Feat/notes list ordering#1928
Open
MiMoHo wants to merge 3 commits into
Open
Conversation
The notes list skipped the caption row whenever all notes fell into a single group. Fresh accounts whose notes were all created today never saw the Today heading. Render groups uniformly so captions appear from the first note on. Assisted-by: Claude Code:claude-fable-5 AI-assistant: Claude Code 2.1.187 (Claude Fable 5)
Categories were always grouped by subcategory, so a category without subcategories showed a plain alphabetical list without any headings. Sort and group such categories by timeslot, the same way as All notes. Categories containing subcategories keep the subcategory grouping. Assisted-by: Claude Code:claude-fable-5 AI-assistant: Claude Code 2.1.187 (Claude Fable 5)
Add a sort menu next to the search field that switches the notes list between modification date (newest first, the previous behavior) and alphabetical order. The choice is stored as the user setting sortMode. Alphabetical order shows a single flat list, since time or category captions would not match the ordering. Assisted-by: Claude Code:claude-fable-5 AI-assistant: Claude Code 2.1.187 (Claude Fable 5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three closely related improvements to how the notes list is grouped and ordered:
sortModesetting. Alphabetical order renders a single flat list, since time or category captions would contradict the ordering.Fixes #613
Testing
Automated browser tests (Playwright) on Chromium and WebKit:
Screenshot of the sort menu in alphabetical mode is attached:
🤖 AI (if applicable)
I reviewed and tested the changes myself.