Repository navigation
improve(ui): templates catalog as rows and template page with a facts column - #202532
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR gives Templates compact catalog rows, a Personality preview, and the shared plugin detail layout with a facts column. Example: Open Travel Copilot at 390 px.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-authored redesign has clear visual evidence, but mobile loading geometry and existing browser coverage need repair. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI renders Gateway-provided Template catalog and release data, then delegates file previews and Add actions to the existing catalog owner. flowchart LR
A[Gateway catalog data] --> B[Templates catalog owner]
B --> C[Catalog rows]
B --> D[Template detail page]
D --> E[Shared detail shell and facts]
D --> F[Personality and file previews]
C --> G[Existing Add flow]
D --> G
Technical reviewBest possible solution: Keep the shared presentation components, reserve matching mobile summary space, and adapt the existing browser scenarios to the new layout. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the mobile placeholder mismatch and obsolete browser selectors; execution was intentionally excluded from this read-only review. Is this the best way to solve the issue? Reusing the existing row styles, detail shell, metadata renderer, and text clamp is appropriately scoped; the loading invariant and affected browser scenarios must survive the presentation change. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4665e7ebd24e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +93. Total +93 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 20, 2026, 10:38 AM ET / 15:38 UTC. |
006109c to
e184427
Compare
97fd313 to
2ac863c
Compare
… column (openclaw#202532) List Templates as rows and give each Template a facts column, with its existing Add and file preview flows preserved.
… and catalog redesigns (#203448) 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. Co-authored-by: Ayaan Zaidi <[email protected]>
… 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]>
Stacks on #202515 (Plugins catalog as rows and plugin page with a facts column); base is its branch.
What Problem This Solves
The Templates catalog shows every Template as a tall bordered card, so few fit on screen and it reads differently from the Plugins list next to it. On a Template page the facts (security audit, version, dates) sit in a boxed sidebar under uppercase headings, the Add button sits under the summary, and the Template's personality is one row among the workspace files.
User Impact
The catalog scans like the Plugins list, and a Template page reads like a plugin page: header with Add on the right, the description, what the Template's agent is like, what it brings, and the facts always beside it (below the content on a phone).
What changed for the person using it
@owner, a one-line description (two lines on a phone) and Add at the end. Two columns on desktop, one on narrow screens. Category filters are text chips, shelves keep View all, loading placeholders are rows in the same grid.@owner(a display name only when it says more than the handle, as for OpenClaw), Add as the primary button at the right; it stays beside the name on a phone.What was deliberately not changed
Production states and where each sits
New or changed strings
templatesCatalog.personality= "Personality".The Audit link reuses
pluginsPage.detailSecurityAuditLink; Show more / Show less reusechat.messages.showMoreandchat.messages.showLess.Shared code touched
PluginReadmeWellinui/src/pages/plugins/detail-shell.tsxis exported so the Template page reuses the clamp.plugins.cssalso matches the Templates search input (input.oc-input).Known gaps
origin/main), and Personality expanded has no Before (main has no Show more). Onorigin/mainthe security review appears at the end of the page, below the fold, so its Before shows only the disabled Add.pnpm ui:buildperformance budget (same violations as the base PR, slightly larger): total CSS raw 1724.4 KiB against 1699.4 KiB, total CSS gzip 333.4 KiB against 329.4 KiB, largest CSS gzip 57.2 KiB against 56.9 KiB, chat boot JS requests 21 against 20, chat boot JS gzip 1301.6 KiB against 1301.4 KiB.Evidence
Real Control UI with a mock Gateway and fixture catalog data (about 50 Templates in nine categories, one detailed Template with seven workspace files, a skill, two plugins and two automations), at 1440 x 1000 and 390 x 844 (2x). Before is
origin/main, After is this branch. Checks run:pnpm ui:build,pnpm lint:ui:styles,pnpm tsgo:ui,pnpm check:control-ui-controllers,pnpm ui:i18n:baseline,pnpm ui:i18n:verify, format check on touched files.Note: the Template page screenshots below predate the removal of the workspace file list and still show that section.
Validation on
570b058: 18 focused Chromium cases passed. They cover keyboard opening of SOUL.md at four viewport widths, catalog filtering, audit facts and tooltip, the automation dialog, and Add. These are test updates for the existing design.