Repository navigation
improve(ui): skill workshop as a start page with skill and draft pages - #202537
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 replaces Skill Workshop’s split view with a start page and separate skill and draft pages. Example: Open github-worktree-pr-delivery from the Workshop list.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this maintainer-authored PR open: the redesign has useful visual evidence, but two introduced regressions need repair before merge. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe Control UI renders the existing Workshop owner’s Gateway snapshots and dispatches selections and mutations through that owner. flowchart LR
Operator --> WorkshopList
WorkshopList --> SkillPage
WorkshopList --> DraftPage
SkillPage --> WorkshopOwner
DraftPage --> WorkshopOwner
WorkshopOwner --> Gateway
Technical reviewBest possible solution: Keep the existing Workshop owner and shared detail shell, restore library-error presentation on detail pages, and retain text scaling in the redesigned styles. Do we have a high-confidence way to reproduce the issue? Source traces establish both introduced regressions; the supplied screenshots demonstrate the redesigned UI, but no failing runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Reusing the existing owner and shared shell is appropriate, and the extracted diff/history components serve distinct rendering responsibilities; the two findings can be repaired without changing that architecture. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5188f987cb59. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +1094, Tests +4. Total +1098 across 15 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:45 AM ET / 15:45 UTC. |
533c95d to
34e853b
Compare
openclaw#202537) Give Skill Workshop a start page and focused pages for individual skills and drafts. Preserve the existing Apply and history flows.
… 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) and reuses its detail shell and facts column.
Navigation change, read first. Today Skill workshop is a split view: the list and a reader side by side. This PR turns it into a start page (the list) plus a skill page and a draft page. Opening a page is navigation inside the same
/skills/workshoproute, held in view state; no new route. The page owner, the data it reads, every Gateway call and mutation, and the?skill=<name>deep link from chat notices stay the same (a?skill=link now lands on that skill's page). In this PR, browser Back from a skill page leaves the workshop and a reload shows the list; #202545 (stacked on this one, behaviour change) puts the open page in the URL so Back returns to the list and reload keeps the page.Tests rewritten for the new structure (they asserted the split view, which no longer exists):
skill-workshop-layout.browser.test.tsx: rewritten. It measured the list and reader side by side and the reader's fixed scroll height; it now checks that a row low in the list opens its page at the top, with no horizontal overflow at 390 px and 844 px landscape, the breadcrumb back to the list, and the facts column beside the content at 1440 px and under it at 390 px.skill-workshop-page.test.tsx,learning-session.test.tsx: open a skill or draft from the list before asserting its page, read the new title/summary selectors, and open the gear menu before using the mode switch or Learn from history. Assertions are otherwise unchanged.app.workshop-contract.e2e.test.ts,skill-workshop-empty-selection.e2e.test.ts,operator-admin.e2e.test.ts: the same adjustments (open the page from the list, breadcrumb back, gear menu, scope Apply/Discard to the row), plus a no-horizontal-overflow check replacing the split-view width check.What Problem This Solves
Skill workshop squeezes everything into one split view: a boxed list on the left and a reader on the right with a fixed-height scroll area, so a skill's instructions, files and history get half the page, its facts are packed into one meta line, and the learning mode takes a whole toolbar row. Drafts are reviewed in that same narrow reader.
User Impact
Skill workshop now works like Plugins: a start page you scan, and one page per skill or draft that reads top to bottom with its facts at the right (below the content on a phone).
What changed for the person using it
What was deliberately not changed
?skill=<name>) still opens that skill, now on its page.Production states and where each sits
New or changed strings
skillWorkshop.drafts.open"Open draft",skillWorkshop.drafts.proposedLabel"Proposed",skillWorkshop.drafts.position"{current} of {total}",skillWorkshop.viewer.usesLabel"Uses",skillWorkshop.viewer.lastUsedLabel"Last used",skillWorkshop.viewer.versionsLabel"Saved versions".skillWorkshop.drafts.files,skillWorkshop.viewer.lastUsed,skillWorkshop.viewer.versions,skillWorkshop.viewer.versionsOne.skillWorkshop.viewer.createdBywith its first letter capitalized; the pager reusescommon.previous/common.next.Known gaps
sessions.create.pnpm ui:buildbudgets: all CSS 1,772,459 B raw (ceiling 1,740,234 B) and 342,587 B gzip (ceiling 337,312 B); largest CSScontrol-ui-boot-shared-styles58,610 B gzip (ceiling 58,315 B, not touched here); chat boot JS 21 requests (limit 20), as on the base branch.ui/src/e2e/plugins-hub-navigation.e2e.test.tsfails on the base branch too (Skills page install-button styling from improve(ui): plugins catalog as rows and plugin page with a facts column #202515); not touched here.Evidence
Real built Control UI with the mock Gateway and fixture Workshop data (5 skills, 1 archived skill, 3 drafts, 6 changes), at 1440 x 1000 and 390 x 844 (2x). Before is
origin/main, After is this branch; every 390 px capture has no horizontal overflow. 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, oxfmt and oxlint on touched files, the Skill workshop unit and browser tests, and the Workshop, empty-selection and operator-admin E2E files (updated for the start page, the page breadcrumb and the gear menu).The start-page screenshots predate scoping the workshop to the active agent and still show the agent picker.