Repository navigation
chore: raise the Control UI CSS budget to the size of the automations and catalog redesigns - #203448
Merged
Merged
Conversation
Automations (#200808, #200817) and catalog/Skill Workshop (#202515, #202537, #202531, #202572, #202532) redesigns grew total CSS to 344,948 B gzip / 1,779,112 B raw on main 265577c. Set the ceilings to those values with no headroom. Trim tracked in #203445. Co-authored-by: obviyus <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 23, 2026
… and catalog redesigns (openclaw#203448) Related: openclaw#203445 ## What Problem This Solves `pnpm ui:check-performance` fails on main for total Control UI CSS. The automations redesign (openclaw#200808, openclaw#200817) and the catalog and Skill Workshop redesign (openclaw#202515, openclaw#202537, openclaw#202531, openclaw#202572, openclaw#202532) added real styles. The fixed total-CSS ceilings were never raised for them, so every local run of the check reports them as violations. ## User Impact No user-visible change. Developers who run `pnpm ui:check-performance` no longer see the total-CSS violations for the accepted redesigns. Any further CSS growth fails the check again, because the new ceilings have no headroom. ## Why This Change Was Made The ceilings are set to the measured size on main, with no headroom. The redesign growth is intentional. Unused CSS accounts for only about 3.5 KB of it, so the bytes cannot be removed without a design change. openclaw#203445 tracks the trim and lists the unused-CSS candidates. | Ceiling | Before | After (measured on main `31a53bb4`) | | --- | ---: | ---: | | Total CSS gzip | 337,312 B | 344,948 B (+7,636 B) | | Total CSS raw | 1,740,234 B | 1,779,112 B (+38,878 B) | Pre-redesign base `77ac0764` (parent of openclaw#200808) measured 336,340 B gzip / 1,733,953 B raw. Per-file growth is in openclaw#203445. The largest growth is in `plugins.css`, `cron.css` and `skill-workshop.css`, plus the new skill page and skills discovery sheets. Not changed, because the redesign did not cause them. Both were already over at base `77ac0764`, before openclaw#200808: - **Largest CSS** (`control-ui-boot-shared-styles.css`): 58,957 B gzip at base, 58,587 B on main, ceiling 58,315 B. - **Chat boot JS requests**: 21 at base and on main, limit 20. These two still fail `pnpm ui:check-performance`. ## Evidence - `pnpm ui:check-performance` on main `31a53bb4` before this change: total CSS 344,948 B gzip / 1,779,112 B raw, violations for total CSS gzip, total CSS raw, largest CSS and chat boot JS requests. - After this change, on the same build: the total-CSS violations are gone. Only the two inherited violations above remain. - `test/scripts/control-ui-performance.test.ts` passes. Merge risk: two-way door. The change only edits two budget constants in a dev and CI check script. A revert restores the old ceilings. It changes no runtime code, state or contract. Co-authored-by: Ayaan Zaidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #203445
What Problem This Solves
pnpm ui:check-performancefails on main for total Control UI CSS. The automations redesign (#200808, #200817) and the catalog and Skill Workshop redesign (#202515, #202537, #202531, #202572, #202532) added real styles. The fixed total-CSS ceilings were never raised for them, so every local run of the check reports them as violations.User Impact
No user-visible change. Developers who run
pnpm ui:check-performanceno longer see the total-CSS violations for the accepted redesigns. Any further CSS growth fails the check again, because the new ceilings have no headroom.Why This Change Was Made
The ceilings are set to the measured size on main, with no headroom. The redesign growth is intentional. Unused CSS accounts for only about 3.5 KB of it, so the bytes cannot be removed without a design change. #203445 tracks the trim and lists the unused-CSS candidates.
265577c4)Pre-redesign base
8f321bcc(parent of #200808) measured 336,340 B gzip / 1,733,953 B raw. Per-file growth is in #203445. The largest growth is inplugins.css,cron.cssandskill-workshop.css, plus the new skill page and skills discovery sheets.Not changed, because the redesign did not cause them. Both were already over at base
8f321bcc, before #200808:control-ui-boot-shared-styles.css): 58,957 B gzip at base, 58,587 B on main, ceiling 58,315 B.These two still fail
pnpm ui:check-performance.Evidence
pnpm ui:check-performanceon main265577c4before this change: total CSS 344,948 B gzip / 1,779,112 B raw, violations for total CSS gzip, total CSS raw, largest CSS and chat boot JS requests.test/scripts/control-ui-performance.test.tspasses.Merge risk: two-way door. The change only edits two budget constants in a dev and CI check script. A revert restores the old ceilings. It changes no runtime code, state or contract.