Repository navigation
fix(ui): make Done the main action once a title picture is set - #588
Merged
Merged
Conversation
After an upload the picture dialog kept Replace picture as its accent button, so the obvious next click reopened the file picker instead of closing the dialog. With a picture set by the recipe's metadata, the only accent button was a disabled Choose picture. Once the recipe has a picture, Close becomes Done and takes the accent, and Replace picture turns into a plain button. The main action is always the last button, in tab order as on screen. Remove moves to the far left, away from it. A metadata picture shows Done alone. Closes cooklang#587 Co-Authored-By: Claude Opus 5.5 <[email protected]>
LeMyst
added a commit
to LeMyst/cookcli
that referenced
this pull request
Sep 30, 2026
LeMyst
marked this pull request as ready for review
September 30, 2026 07:23
4 tasks done
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 #587.
After an upload, the title picture dialog kept Replace picture as its accent button. The upload is already saved at that point, so the obvious next click reopened the file picker instead of closing the dialog. With a picture set by the recipe's
image:metadata, the only accent button was a disabled Choose picture.Change
Close·Choose pictureRemove·Close·Replace pictureRemove………Replace picture·DoneClose·Choose picture(disabled)DonerenderPicture()moves the node rather than using CSSorder, so tab order matches what is on screen.action-donekey in all eight locales.Screenshots
Picture uploaded
Picture set by
image:metadataThe empty state renders identically before and after.
Tests
tests/e2e/editor.spec.ts: the upload test now checks the visible buttons and which one is highlighted in the empty → uploaded → removed states, and a new test covers a metadata picture.cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testpass.shopping-list-copy.spec.ts/shopping-list-live.spec.tsand fail the same way on an upstreammainbuild in my environment; they don't touch the editor.🤖 Generated with Claude Code