Repository navigation
fix(ui): warning callouts render without warning styles - #128253
vyctorbrzezowski wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 4:27 AM ET / 08:27 UTC. ClawSweeper reviewWhat this changesThe PR makes Control UI warnings and model-save errors use the shared severity styles, removes duplicate warning CSS, and updates render assertions. Merge readiness⛔ Blocked before merge - 2 items remain The fix remains necessary on current main, and no introduced correctness or security defect was found. The broader notice refactor is still open and does not establish a safe replacement. Priority: P2 Review scores
Verification
How this fits togetherControl UI pages turn Gateway status and operation results into notices for operators. Shared CSS gives those notices consistent warning, error, informational, and success treatments. flowchart LR
A[Gateway status] --> C[Page notice rendering]
B[Operation results] --> C
C --> D[Severity class]
D --> E[Shared theme styles]
E --> F[Visible operator notice]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -7, Tests +18. Total +11 across 11 files. View PR surface stats
Review metrics
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: Keep one shared severity-style contract across all current notice producers, preserving Usage cache emphasis without restoring the duplicate warning alias. Do we have a high-confidence way to reproduce the issue? Yes: current-main templates emit warning classes that do not select the shared warning treatment, and the linked report gives a concrete non-admin Control UI scenario. This review established the mismatch from source without executing the application. Is this the best way to solve the issue? Yes: correcting the template modifiers reuses the established styles and matches sibling renderers; adding a CSS alias would preserve duplicate conventions. Integration must cover the newer current-main callouts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3ed226a746a8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
698e519 to
396a4e7
Compare
|
Superseded by newer notices that @steipete landed on |
Closes #128251
What Problem This Solves
Fixes an issue where users viewing warning states in Model Setup, Models, Cloud workers, Updates, and Usage would see neutral or page-specific styling instead of the shared warning treatment.
Why This Change Was Made
All 18 warning callouts now use the existing canonical
warnmodifier. The page-localwarningbase style in Usage was removed, leaving one warning callout name and one shared visual implementation; the distinct Usage cache emphasis remains scoped to that page.User Impact
Gateway-version, admin-access, catalog, cache, and model warnings now consistently use amber warning color, border, and background in dark and light themes across five pages.
Evidence
127.0.0.1:5334withoperator.read,operator.writereproduced the affected admin warning on Model Setup, Models, Cloud workers, and Updates.background-image: nonewith neutral text/border in both themes. Models inherited a separate Usage-only style.callout.warngradient, warning text, and warning border in both themes.callout.dangervariant while retaining accessible alert semantics.node scripts/run-vitest.mjs ui/src/pages/model-providers/view.test.ts ui/src/pages/agents/panels-tools-skills.browser.test.ts(51 tests passed; the mutation-error regression failed before the fix and passed after it)pnpm check:changedpnpm ui:buildwarnmodifier, and styleddangercallouts for both model mutation error renderers.Dark theme
Light theme