Repository navigation
improve(ui): rebuild toasts on one component with variants and a hover dismiss - #192013
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR redesigns Control UI toasts with severity icons, optional descriptions, wrapping actions, and a dismiss button revealed by hover or focus. Example: Uploading an oversized file in the Control UI.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-approved redesign has useful visual proof, but oversized-message scrolling and the CSS budget need repair before merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI callers send notification options to the existing toast owner, which manages timing and placement while a lazy Solid view renders messages and actions. flowchart LR
A[Control UI actions] --> B[Toast options]
B --> C[Toast owner]
C --> D[Toast host]
D --> E[Lazy Solid view]
E --> F[Message and action controls]
F --> C
Technical reviewBest possible solution: Keep the existing toast owners and approved presentation, make oversized content align safely, and reduce the stylesheet enough to satisfy the existing asset budget. Do we have a high-confidence way to reproduce the issue? The original appearance is visible in the before screenshots and current-main source; the oversized-text regression is source-reproducible from the new flex layout, but was not executed during this read-only review. Is this the best way to solve the issue? Extending the existing renderer and migrating its icon callers is appropriately scoped; overflow-safe alignment preserves recovery readability without adding another component or state owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4d32afaaa32. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +179, Tests +46. Total +225 across 11 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 10:42 AM ET / 15:42 UTC. |
…nes (#192431) Follow-up to #192013-#192016: unit tests still expected severity-less error toasts, single-line copy, and unwrapped toast markup. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
…over dismiss (openclaw#192013) Co-authored-by: roboclaw-bot <[email protected]>
…nes (openclaw#192431) Follow-up to openclaw#192013-openclaw#192016: unit tests still expected severity-less error toasts, single-line copy, and unwrapped toast markup. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d': fix(ci): allow serial SDK API reports to finish (#192196) fix(ci): run PostgreSQL checks when its shard planner changes (#191963) fix(ci): model native Linux updater asset entry improve(test): speed up config and device binding browser tests (#192404) improve(ui): show arrivals top right with a contextual session status (#192016) improve(ui): mark error toasts and split two-sentence copy (#192015) fix(sandbox): give dependency builders a writable home (#192390) fix(worktrees): keep archive manifest checks off the main thread (#192358) fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399) improve(ui): stack toasts in a center lane and an arrivals lane (#192014) fix: reclaim abandoned read-only database snapshots (#192368) improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013) docs: consolidate team server and team setup into one Multiplayer page fix(ci): reconcile remaining unallocated test lines feat: run admitted MCP tools on the worker node that hosts them (#191387)
What Problem This Solves
Toasts in the Control UI had no shared anatomy: errors tinted the whole card red, success and warning icons were blue, a long action label wrapped inside a 35% column, and the dismiss X sat in the row taking space from the message.
User Impact
Every toast now uses one component:
role="alert".actionPrimary.Existing callers keep working; the three that passed an
iconnow pass the matching severity.Why This Change Was Made
This is the approved toast design, split into four stacked PRs. This one is the component; placement and stacking follow in the next PR.
Evidence
Mock Control UI, Absolutely light, 1440 and 390, reached through real clicks (archive from the sidebar, an oversized upload, a background session finishing).
Before and After, Session archived:
Hover shows the dismiss X on the corner:
Before and After, an error: the red card becomes a neutral card with a red icon:
Before and After, a background session with an avatar; the action moves to its own row when the title does not fit beside it:
After, 390:
Checks run locally: oxfmt, oxlint, stylelint,
pnpm tsgo:ui,toast.test.ts,toast-host.loading.test.tsandtoast.browser.test.ts(all pass). The attachment e2e helper that asserted the red card now asserts the icon color; e2e was not run.Landing order: this PR first, then the stack (#192014), center callers (#192015) and arrivals (#192016).