Skip to content

chore: raise the Control UI CSS budget to the size of the automations and catalog redesigns - #203448

Merged
obviyus merged 1 commit into
mainfrom
ui-css-rebaseline
Nov 22, 2026
Merged

obviyus merged 1 commit into
mainfrom
ui-css-rebaseline

Conversation

@obviyus

@obviyus obviyus commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Related: #203445

What Problem This Solves

pnpm ui:check-performance fails 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-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. #203445 tracks the trim and lists the unused-CSS candidates.

Ceiling Before After (measured on main 265577c4)
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 8f321bcc (parent of #200808) measured 336,340 B gzip / 1,733,953 B raw. Per-file growth is in #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 8f321bcc, before #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 265577c4 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.

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]>
@clawsweeper

clawsweeper Bot commented Nov 22, 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 scripts Repository scripts size: XS labels Nov 22, 2026
@obviyus
obviyus merged commit 3cacfd4 into main Nov 22, 2026
100 checks passed
@obviyus
obviyus deleted the ui-css-rebaseline branch November 22, 2026 08:41
@obviyus

obviyus commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 3cacfd4. Total Control UI CSS ceilings now match the measured redesign size (344,948 B gzip / 1,779,112 B raw, no headroom). Trim tracked in #203445. Largest-CSS and chat-boot JS request overages predate the redesign and stay unchanged.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant