Repository navigation
fix(ui): unify dialogs and keep toast warnings readable - #2563
Open
kitlangton wants to merge 2 commits into
Open
kitlangton wants to merge 2 commits into
kitlangton wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
Dialogs share consistent corners and controls, and long toast warnings stay readable.
❌ Before
✅ After
📊 Proof
Complete warning title in the new Long warning story:
Dismiss-control detail: clicking × preserves the downward fade.
toast-dismiss-detail.mp4
Four dark-mode Retina After captures were inspected beside the audit's Before captures with matching dimensions. The toast After uses the new long-warning variant to demonstrate wrapping.
No automated tests were added or run, per repository policy.
👀 Read:
crates/opencode-ui/src/widgets.rsfor the shared modal presence transitions: the layer owns scale, while the card rides it. View-level close callbacks explicitly restore animation after legacy instant handlers; keyboard routes outside this batch remain unchanged.Found in the UI audit, plus a reported toast truncation/dismissal bug. Batch C: P1-01, P1-02, P2-05, P2-06, P2-08; owned portions of P1-04, P1-06, P1-07, P1-08. Base: dev, where the audited code lives.
Checks run
bash scripts/guardrails.sh: 12/12 passed.cargo check --bin opencode-desktop: passed.cargo check -p session-view --examples: passed before the review follow-up.cargo check -p opencode-web --target wasm32-unknown-unknown: passed before the review follow-up.cargo build --bin opencode-desktop --message-format=json: passed.git diff --check: passed.hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #2563 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
--timeoutto stop waiting after a while, for example--timeout 30m; it then exits with status 8.gh event listen --helpfor other event types.