Skip to content

fix(ui): restore startup CSS budget - #130032

Merged
steipete merged 1 commit into
mainfrom
fix/ui-dead-approval-boot-style
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ui-dead-approval-boot-style

Conversation

@steipete

@steipete steipete commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where unrelated pull requests could not pass the Control UI build because current main produced 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: 077e817c5c39bb5024179a29fc6a9b5162dd49ff

User 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

  • Before, fresh current-main build on CI's Node 24.19: startup CSS gzip: 46,092 B vs 46,080 B (failure).
  • After, same command/toolchain: control-ui-core-*.css.gz 46067; pnpm ui:build passes 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-toggle findings remain.
  • Test audit: the removed approval case only constructed a production-retired fallback and therefore asserted a test-only seam; remaining approval behavior coverage is 28/28 green.
  • Deslop: clean; deletion-only behavior change apart from updating the now-accurate stylesheet ownership comment.
  • Structured autoreview: clean, 0.99.
  • Separate exact-head read-only Codex review: CLEAN.

This is an autonomous broken-main repair; the linked agent transcript is omitted.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 08:52
@steipete
steipete merged commit 33a24b6 into main Aug 26, 2026
137 checks passed
@steipete
steipete deleted the fix/ui-dead-approval-boot-style branch August 26, 2026 09:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 4:59 AM ET / 08:59 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No 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
Reviewed head: 077e817c5c39bb5024179a29fc6a9b5162dd49ff

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The repair is a small, source-verified deletion with focused after-fix build and test evidence in the PR body.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored, behavior-neutral build repair includes terminal build evidence in its body; the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, behavior-neutral build repair includes terminal build evidence in its body; the external-contributor proof gate does not apply.
Evidence reviewed 5 items Current-main budget and stale CSS: Current main imports both shared stylesheets into the startup bundle; it retains the approval boot selector at line 43 and danger-chip selector at line 2567, while the budget guard enforces startup CSS gzip size.
Approval owner boundary: The app root renders either the generic lazy-load state or the approval custom element; the lazy element loads the approval module, whose render path emits .approval-page but never the removed boot modifier.
Removed test is an obsolete seam: On current main the deleted test manually appends the only approval-page--booting node before mounting the component; production source has no reference to that modifier.
Findings None None.
Security None None.

Live Verification

Command: pnpm ui:build

Result: PASS (completed)

../dist/control-ui/assets/tcl-Ba8B3QEu.js                                             2.48 kB │ gzip:   1.32 kB │ map:     6.50 kB
../dist/control-ui/assets/shell-B1oByMWF.js                                           2.56 kB │ gzip:   1.30 kB │ map:     7.94 kB
../dist/control-ui/assets/webidl-C2iEcUXH.js                                          2.62 kB │ gzip:   1.37 kB │ map:     7.72 kB
../dist/control-ui/assets/puppet-vmUf8xpM.js                                          2.65 kB │ gzip:   1.29 kB │ map:     8.99 kB
../dist/control-ui/assets/pig-Bt8Qvkze.js                                             2.65 kB │ gzip:   1.49 kB │ map:     6.60 kB
../dist/control-ui/assets/forth-CEw5LND1.js                                           2.67 kB │ gzip:   1.42 kB │ map:     6.18 kB
../dist/control-ui/assets/dist-CglKcEOs.js                                            2.78 kB │ gzip:   1.60 kB │ map:     5.05 kB
../dist/control-ui/assets/input-dialog-DjJ4Slad.js                                    2.82 kB │ gzip:   1.17 kB │ map:     8.64 kB
../dist/control-ui/assets/velocity-F0QlomFP.js                                        2.84 kB │ gzip:   1.20 kB │ map:     8.42 kB
../dist/control-ui/assets/session-progress-4P9dZwrs.js                                2.87 kB │ gzip:   1.16 kB │ map:     6.18 kB
../dist/control-ui/assets/workboard-mini-BPnsPv1N.js                                  2.88 kB │ gzip:   1.13 kB │ map:     5.60 kB
../dist/control-ui/assets/tiddlywiki-DLHM8fNz.js                                      2.92 kB │ gzip:   1.18 kB │ map:    11.09 kB
../dist/control-ui/assets/modelica--0xTveIu.js                                        2.94 kB │ gzip:   1.38 kB │ map:     8.06 kB
../dist/control-ui/assets/oz-DTY2GRqL.js                                              3.03 kB │ gzip:   1.38 kB │ map:     9.47 kB
../dist/control-ui/assets/r-CadXD0eR.js                                               3.06 kB │ gzip:   1.45 kB │ map:     9.92 kB
../dist/control-ui/assets/workboard-card-BC0p4pDo.js                                  3.12 kB │ gzip:   1.16 kB │ map:     5.94 kB
../dist/control-ui/assets/gateway-page-controller-VdrZjQjG.js                         3.16 kB │ gzip:   1.04 kB │ map:    10.09 kB
../dist/control-ui/assets/stex-CveJubUk.js                                            3.22 kB │ gzip:   1.26 kB │ map:    11.27 kB
../dist/control-ui/assets/lua-yYK_8aRA.js                                             3.27 kB │ gzip:   1.51 kB │ map:     7.76 kB
../dist/control-ui/assets/cypher-CIhKfSWw.js                                          3.33 kB │ gzip:   1.60 kB │ map:     8.52 kB
../dist/control-ui/assets/tiki-CryU3a6e.js                                            3.35 kB │ gzip:   1.35 kB │ map:    12.41 kB
../dist/control-ui/assets/sparql-ChxjJbEr.js                                          3.47 kB │ gzip:   1.70 kB │ map:     9.50 kB
../dist/control-ui/assets/vhdl-DlYBPd1w.js                                            3.47 kB │ gzip:   1.61 kB │ map:     9.63 kB
../dist/control-ui/assets/catalog-target-Bj6g_8nW.js                                  3.49 kB │ gzip:   1.42 kB │ map:    11.34 kB
../dist/control-ui/assets/dist-UiEpQGFe.js                                            3.54 kB │ gzip:   1.83 kB │ map:     6.94 kB
../dist/control-ui/assets/update-confirmation.runtime-CSYBdIMD.js                     3.54 kB │ gzip:   1.42 kB │ map:    11.07 kB
../dist/control-ui/assets/exec-approval-BzfBTOjI.js                                   3.57 kB │ gzip:   1.49 kB │ map:     9.94 kB
../dist/control-ui/assets/portaled-hovercard-DyIN9wuS.js                              3.58 kB │ gzip:   1.29 kB │ map:    10.73 kB
../dist/control-ui/assets/mscgen-Cfn4e7TB.js                                          3.64 kB │ gzip:   1.08 kB │ map:     9.69 kB
../dist/control-ui/assets/device-placement-BI-7qq0d.js                                3.73 kB │ gzip:   1.61 kB │ map:    13.00 kB
../dist/control-ui/assets/app-sidebar-workboar
… output truncated …

Assertions:

  • PASS expect_output: startup CSS:

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - This active maintainer-owned PR already contains the narrow repair and has no actionable ClawSweeper fix work.
Agent review details

Security

None.

PR surface

Source -11, Tests -19. Total -30 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 2 13 -11
Tests 1 0 19 -19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 2 32 -30

Review metrics

Metric Value Why it matters
Production versus test LOC production +2/-13 (net -11); tests +0/-19 The repair shrinks the startup CSS surface and removes a test that only fabricated the retired fallback.

Technical review

Best 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: pnpm ui:build evaluates the fixed startup-CSS guard, and current main retains the two unreachable selectors in its startup stylesheet. I did not execute the build in this read-only review.

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.

Labels

Label changes:

  • add P2: This repairs a deterministic Control UI build-budget regression with limited runtime blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, behavior-neutral build repair includes terminal build evidence in its body; the external-contributor proof gate does not apply.

Label justifications:

  • P2: This repairs a deterministic Control UI build-budget regression with limited runtime blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, behavior-neutral build repair includes terminal build evidence in its body; the external-contributor proof gate does not apply.

Evidence

What I checked:

  • Current-main budget and stale CSS: Current main imports both shared stylesheets into the startup bundle; it retains the approval boot selector at line 43 and danger-chip selector at line 2567, while the budget guard enforces startup CSS gzip size. (ui/src/styles/approval-boot.css:43, ff73ba5f566f)
  • Approval owner boundary: The app root renders either the generic lazy-load state or the approval custom element; the lazy element loads the approval module, whose render path emits .approval-page but never the removed boot modifier. (ui/src/app/app-root.ts:255, 077e817c5c39)
  • Removed test is an obsolete seam: On current main the deleted test manually appends the only approval-page--booting node before mounting the component; production source has no reference to that modifier. (ui/src/pages/approval/approval-page.test.ts:148, ff73ba5f566f)
  • Feature history: Blame attributes both retained stale selector families on current main to the same recent commit; nearby merged history includes the lazy-surface recovery and Tasks redesign cited by the PR as retiring their consumers. (ui/src/styles/components.css:2567, 2941b3d779f2)
  • Patch scope: The commit deletes 11 net production lines and 19 test lines; its parent diff is limited to the stylesheet rules, their ownership comment, and the synthetic fallback test. (ui/src/styles/components.css:2567, 077e817c5c39)

Likely related people:

  • steipete: Current-main blame attributes both affected selector families to Peter Steinberger, and the merged lazy-surface recovery referenced by this PR was authored by steipete. (role: recent Control UI feature owner; confidence: high; commits: 2941b3d779f2, 5eda48ed9996; files: ui/src/styles/approval-boot.css, ui/src/styles/components.css, ui/src/app/app-root.ts)
  • roboclaw-bot: The merged Tasks-page refactor cited by this PR is the relevant recent history for the retired danger-chip styling. (role: recent adjacent UI contributor; confidence: medium; commits: 94bd56767431; files: ui/src/styles/components.css)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants