Skip to content

feat(notes-list): add sort toggle and improve grouping#1928

Open
MiMoHo wants to merge 3 commits into
nextcloud:mainfrom
MiMoHo:feat/notes-list-ordering
Open

feat(notes-list): add sort toggle and improve grouping#1928
MiMoHo wants to merge 3 commits into
nextcloud:mainfrom
MiMoHo:feat/notes-list-ordering

Conversation

@MiMoHo

@MiMoHo MiMoHo commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Three closely related improvements to how the notes list is grouped and ordered:

  1. Show the time caption even when there is only one group. The list skipped the caption row whenever all notes fell into a single group, so a fresh account whose notes were all created today never saw the "Today" heading.
  2. Group flat categories by time. Categories without subcategories showed a plain alphabetical list without any headings. They now sort and group by timeslot exactly like "All notes" (favorites first, then newest first with "Today" / "Yesterday" / … captions). Categories that contain subcategories keep the subcategory grouping.
  3. Add a sort toggle. A small menu next to the search field switches the list between modification date (newest first — the previous behavior and still the default) and alphabetical order. The choice is stored per user as the new sortMode setting. 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:

  • toggling to alphabetical reorders the list and removes the captions,
  • the choice survives a page reload,
  • switching back restores the time groups ("Today" caption) and newest-first order,
  • a flat category shows the "Today" caption from its first note on.

Screenshot of the sort menu in alphabetical mode is attached:

shot-chromium-sort-alpha

🤖 AI (if applicable)

  • This pull request was prepared with assistance from Claude Code (Claude Fable 5 xhigh).
    I reviewed and tested the changes myself.

@MiMoHo MiMoHo requested review from enjeck and silverkszlo as code owners July 6, 2026 04:04
MiMoHo added 3 commits July 6, 2026 18:11
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)
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
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)
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
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)
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
@MiMoHo MiMoHo force-pushed the feat/notes-list-ordering branch from 72e57da to e80edb9 Compare July 6, 2026 16:11
@MiMoHo MiMoHo changed the title Feat/notes list ordering feat(notes-list): add sort toggle and improve grouping Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sorting options for Nextcloud Notes

1 participant