Repository navigation
feat(favorites): let a new category be created before saving - #613
Merged
Merged
Conversation
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]>
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.
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.