Repository navigation
fix(ui): restore startup CSS budget - #130032
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Merged via squash.
|
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 4:59 AM ET / 08:59 UTC. ClawSweeper reviewWhat this changesThe PR removes two unused Control UI startup-CSS selector families and the retired approval fallback test scaffold so the existing stylesheet gzip budget passes. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo blocking correctness findings: the patch removes CSS that current production markup does not emit and deletes its test-only fixture. Likely related people: steipete (high confidence) and roboclaw-bot (medium confidence). Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Control UI ships a shared startup stylesheet before loading lazy page-specific UI modules. Its build script measures startup CSS gzip size and fails the build when it exceeds the fixed budget. flowchart LR
A[Control UI source] --> B[Shared startup stylesheet]
B --> C[Built UI assets]
C --> D[CSS gzip budget check]
E[Lazy approval page] --> F[Page-specific approval styles]
F --> C
D --> G[CI build result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -11, Tests -19. Total -30 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the fixed 45 KiB startup CSS guard and land only the proven-unreachable selector and test-seam removals after exact-head validation completes. Do we have a high-confidence way to reproduce the issue? Yes, at source level: Is this the best way to solve the issue? Yes. Deleting unreachable entry-stylesheet rules and their synthetic test is the narrow owner-boundary repair; raising the 45 KiB limit would conceal the regression. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ff73ba5f566f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes an issue where unrelated pull requests could not pass the Control UI build because current
mainproduced 46,092 B of startup CSS against the unchanged 46,080 B limit.Why This Change Was Made
Removes two orphaned entry-stylesheet selector families instead of raising or baselining the performance budget: a pre-hydration approval fallback retired by #126409, and a task danger chip retired by #128853. The associated approval test-only fallback scaffold is removed with its dead selector. No production markup still emits either class.
Rejected alternatives: raising the budget would hide the regression; removing either selector family alone leaves current main at 46,081 B and still failing.
Production LOC: +2/-13 (net -11) | Tests: +0/-19
Exact head:
077e817c5c39bb5024179a29fc6a9b5162dd49ffUser Impact
No product behavior changes. Contributors regain a green deterministic Control UI build gate, and the startup stylesheet remains under its existing size budget.
Evidence
startup CSS gzip: 46,092 B vs 46,080 B(failure).control-ui-core-*.css.gz 46067;pnpm ui:buildpasses all unchanged budgets.pnpm test ui/src/pages/approval/approval-page.test.ts: 28/28 passed.node scripts/check-changed.mjs -- ui/src/pages/approval/approval-page.test.ts ui/src/styles/approval-boot.css ui/src/styles/components.css: passed all selected typecheck, lint, formatting, i18n, dead-export, and guard lanes.node --import tsx scripts/audit-control-ui-dead-css.mts: removed selectors absent; only unrelated existing.workboard-togglefindings remain.CLEAN.This is an autonomous broken-main repair; the linked agent transcript is omitted.