Skip to content

feat(favorites): let a new category be created before saving - #613

Merged
EVWorth merged 1 commit into
mainfrom
feat/favorites-save-ux
Sep 10, 2026
Merged

EVWorth merged 1 commit into
mainfrom
feat/favorites-save-ux

Conversation

@EVWorth

@EVWorth EVWorth commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Closes #338, closes #342.

#338 — the category never visibly existed

Typing a category name only created it when the favorite was saved, so the user typed "Daily Reports", watched the field clear, and never saw it take. There was no Add button at all — only Cancel — so the flow the issue describes couldn't be completed as described.

Add now commits the category, selects it, and collapses back to the dropdown. Enter does the same, rather than letting the dialog's Enter handler save the favorite: the user is naming a category, not finishing.

Saving without pressing Add still works. Adding a confirmation step shouldn't make one mandatory.

An a11y problem the test surfaced

The category's Cancel and the dialog footer's Cancel had the same accessible name and did different things. It showed up as a test that couldn't tell them apart — the same complaint from a different angle. The category one now has an aria-label.

#342 was already fixed

The toolbar has had a Star "Save" button since 6f176fa (April) — the audit missed it. It had no test, so it now has four, including one asserting the Ctrl+S path still works, since that was the only route the issue knew about.

Verification

10 new tests. Unit 2045, browser 297, 0 lint errors.

Typing a category name only created it when the favorite was saved, so the
user typed "Daily Reports", watched the field clear, and never saw it take
(#338). There was no Add button at all — only Cancel — so the flow the issue
describes could not be completed as described.

Add commits the category, selects it and collapses back to the dropdown.
Enter in the field does the same, rather than letting the dialog's Enter
handler save the favorite: the user is naming a category, not finishing.

Saving without pressing Add still works. Adding a confirmation step should
not make one mandatory, and the name is read from the field either way.

The category's Cancel button gained an aria-label. The dialog's footer has a
Cancel too, and two buttons with the same accessible name doing different
things is a problem for anyone not reading the layout — the ambiguity
surfaced as a test that could not tell them apart, which is the same
complaint from a different angle.

Also closes #342, which was already fixed: the toolbar has had a Star "Save"
button since 6f176fa in April. It had no test, so it now has four —
including one asserting the Ctrl+S path still works, since that was the only
route the issue knew about.

Closes #338
Closes #342

Co-Authored-By: Claude Opus 5 <[email protected]>
@EVWorth
EVWorth merged commit 81fe9a3 into main Sep 10, 2026
12 checks passed
@EVWorth
EVWorth deleted the feat/favorites-save-ux branch September 10, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant