Skip to content

Make the status-bar Todos button toggle back to All - #49

Open
aguspatur22 wants to merge 1 commit into
text2future:mainfrom
aguspatur22:fix/issue-27-ux-顶栏按钮高度不统一--待办筛选难以恢复到全部

Hidden character warning

The head ref may contain hidden characters: "fix/issue-27-ux-\u9876\u680f\u6309\u94ae\u9ad8\u5ea6\u4e0d\u7edf\u4e00--\u5f85\u529e\u7b5b\u9009\u96be\u4ee5\u6062\u590d\u5230\u5168\u90e8"
Open

Make the status-bar Todos button toggle back to All#49
aguspatur22 wants to merge 1 commit into
text2future:mainfrom
aguspatur22:fix/issue-27-ux-顶栏按钮高度不统一--待办筛选难以恢复到全部

Conversation

@aguspatur22

Copy link
Copy Markdown

Clicking Todos in the bottom status bar sets the memo list filter to todos, but there's no way back from that entry point. The only way to return to All is the separate filter dropdown at the top of the memo list, which is a few clicks away and isn't obvious from the status bar itself.

handleOpenTodos in main-layout.tsx now toggles: clicking again while already on todos switches the filter back to all, using the same setActiveFilter/loadMemos flow it already had.

Fixes half of #27 — the titlebar button height part of that issue was already fixed in v1.0.8, this covers the remaining toggle request.

No test file covers main-layout.tsx yet and the component pulls in a lot of Zustand store wiring, so I checked this by hand: tsc --noEmit is clean, and vitest run shows the same failing/passing counts with and without the change (some pre-existing localStorage mock failures unrelated to this file).

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.

1 participant