Repository navigation
feat(ui): unify operator notice presentation - #128270
vyctorbrzezowski wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready verification for head
|
|
Codex review: found issues before merge. Reviewed August 29, 2026, 7:58 AM ET / 11:58 UTC. ClawSweeper reviewWhat this changesThe PR introduces severity-aware stacked global notices and pane-scoped Control UI notices, migrates selected callers, and standardizes warning callouts. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 15 items remain Keep this member-authored, protected-label draft open: current main does not provide the requested notice model, but the exact reviewed head retains nine concrete P2 correctness defects in the new presenter and its callers. Priority: P2 Review scores
Verification
How this fits togetherControl UI actions in chat, sessions, boards, and settings send transient outcomes to the shared toast host or to persistent inline errors. The changed host decides whether an outcome appears as a global card or beside a visible chat pane. flowchart LR
A[Chat and settings actions] --> B[Notice producers]
B --> C[Shared toast host]
C --> D{Owning pane visible?}
D -->|Yes| E[Pane notice]
D -->|No| F[Global notice stack]
B --> G[Inline error owner]
Decision needed
Why: The PR adds a cross-Control-UI presentation model rather than a narrowly specified bug fix, and it is explicitly protected for maintainer handling. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +98, Tests +279, Other +54. Total +431 across 42 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make one presenter own separate global and pane queues, identify pane notices by pane identity, cancel or generation-fence exit work, refresh placement when visibility changes, measure stack layout from rendered cards, then migrate the remaining warning and widget producers. Do we have a high-confidence way to reproduce the issue? Yes, source inspection gives high-confidence paths: reissue a keyed notice during its timeout exit, mix pane and global notices, switch retained panes, or open two panes for one session. Is this the best way to solve the issue? No. The current mixed entry array treats global, session, and pane identity as the same state; a canonical presenter must model those ownership boundaries separately before callers are migrated. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6b27585471a7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
698e519 to
396a4e7
Compare
8d75412 to
d5fb0c6
Compare
a302365 to
928a680
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Relates to #124363
Closes #128241
What Problem This Solves
Control UI outcomes used a neutral single-slot toast, so success and failure looked alike and independent events replaced each other. Warning callouts also used a route-local spelling/style, session-owned transcript feedback appeared in the global corner, and session deletion still used blocking browser alerts.
Why This Change Was Made
The existing owner in
ui/src/lib/toast.tsis now the one canonical transient-notice mechanism. It admits explicitinfo,success,warning, anddangervariants, derives global versus visible-session placement from scope, keeps a bounded stack of three, and updates state-like outcomes by key. Existing modal top-layer handoff and recovery actions remain owned by the same host.The mapped Control UI producers now declare severity. Image, widget, annotation, permission, and progress-card feedback uses compact pane-scoped presentation when its session is visible. Composer-owned notices remain exactly where they were. Blocking worktree alerts become warning toasts; config and board duplicates stay only at their inline owner. Callout warning spelling is canonicalized to
warn, and interim speech uses polite status semantics.A standalone mock route at
/__fixtures/notices/renders the full inventory together by the UX study's zones, including all global toast variants, session chips, banners, callouts, modal decisions, persistent centers, and the fixed composer zone.User Impact
Operators can distinguish outcomes at a glance, retain up to three independent global events, and receive session feedback beside the pane that owns it. Desktop global cards stack bottom-right; mobile cards remain full-width at the top. Warning and danger outcomes use assertive live regions, while info and success remain polite.
The composer layout is unchanged.
Evidence
node scripts/run-vitest.mjs ui/src/lib/toast.test.ts ui/src/pages/chat/chat-pane-session-controls.test.ts ui/src/pages/chat/browser-annotation-removal.test.ts ui/src/components/board/board-view.test.ts ui/src/lib/config/config-draft-model.test.ts ui/src/pages/chat/components/chat-message.test.ts ui/src/pages/chat/components/widget-card.test.ts ui/src/app/update-success-notice.test.ts ui/src/components/session-organizer-batch-mutations.test.ts- 345 tests passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/board-fixture.e2e.test.ts- 7 browser tests passed, including the complete notice inventory route.node scripts/run-tsgo.mjs -p tsconfig.ui.json- passed.node scripts/run-tsgo.mjs -p tsconfig.scripts.json- passed.node scripts/run-tsgo-core-test-shards.mjs ui- passed.node scripts/check-changed.mjs -- <changed paths>- formatting, guards, dead exports, i18n, and preceding gates passed; the first bounded invocation timed out during i18n, then the resumed run reached and exposed test-type drift, which was fixed and rechecked directly.pnpm ui:build- passed; startup JS and CSS remain within committed budgets.gpt-5.6-sol, high) - clean, no accepted/actionable findings.Visual proof will be added after the operator's design iteration on the fixture.