Repository navigation
feat(ui): skill workshop start page with Drafts, History and Learned skills - #202572
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 maintainer review before merge. What this changesThis PR organizes Skill Workshop into Drafts, History, and searchable Learned skills views. Example: Open Skill Workshop with five learned skills and three waiting drafts.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the redesign adds useful, distinct views, and no introduced correctness defect was established. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI renders agent-scoped Workshop snapshots and sends selections and mutations through the existing page owner to Gateway methods. flowchart LR
Operator --> StartPage
StartPage --> Drafts
StartPage --> History
StartPage --> LearnedSkills
Drafts --> WorkshopOwner
History --> WorkshopOwner
LearnedSkills --> WorkshopOwner
WorkshopOwner --> Gateway
Technical reviewBest possible solution: Retain the existing Workshop owner and three-view renderer, complete the scoped UI validation, and coordinate landing with the parent stack. Do we have a high-confidence way to reproduce the issue? This is a feature review; source and screenshots establish the changed presentation, and no runtime reproduction was attempted. Is this the best way to solve the issue? The change appropriately replaces the old renderer, reuses existing mutation and permission owners, and adds presentation state without introducing another data owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 918d83996b98. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +436, Tests +101. Total +537 across 11 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, 11:47 AM ET / 16:47 UTC. |
9dcc520 to
375bd35
Compare
f1c43a1 to
a312ca4
Compare
…skills (openclaw#202572) Give Skill Workshop a dedicated starting page and retain its inline Apply, agent search, and history navigation paths.
…2685) Restore dead-export checks after openclaw#202572 and openclaw#202535 by keeping internal helpers local and removing unused view re-exports. Real consumers and implementations are unchanged.
… 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 #202545 (open skill or draft page kept in the URL), which stacks on #202537.
This PR changes structure and behaviour of the Skill workshop start page.
What it was before
The start page (in #202537, and the list half of today's split view on
main) is one list with three filters: Active / Drafts / Archived, Sort and the agent picker in the same row. Active rows carry the skill's latest change under its description. The page opens on Active.What it is now
The start page has three views on one segmented control with a visible track, and opens on the one that needs the person:
Drafts is offered exactly when it was before: in Propose mode, while drafts wait, or while it is the open view (so discarding the last draft does not take the view away). The chosen view is kept while the page is mounted (including a visit to a skill or draft page) and is chosen again when another agent's workshop loads. It is view state, not part of the URL.
Unchanged: every Gateway call and mutation, the data read (skills list, drafts, archived, changes feed, mode), the plugin-off / loading / error / read-only states, the skill and draft pages, and
?skill=/?draft=page links. One fewer read: the start page no longer reads the first skill's SKILL.md on load (nothing showed it); Drafts still loads the open draft's diff.Not built
Strings
skillWorkshop.mode.offState"Learning off",skillWorkshop.mode.proposeState"Learning from work, asks before saving",skillWorkshop.mode.autoState"Learning from work, saves on its own",skillWorkshop.views.aria"Skill workshop views",skillWorkshop.history.today"Today",skillWorkshop.history.thisWeek"This week",skillWorkshop.history.earlier"Earlier",skillWorkshop.skills.search"Search skills",skillWorkshop.skills.noMatches"No skills match your search.",skillWorkshop.drafts.savedFirst"The current version is saved first, so you can undo.",skillWorkshop.drafts.archiveLater"You can archive it later."skillWorkshop.drafts.proposed"Proposed {time}".skillWorkshop.skills.drafts,skillWorkshop.tabs.history,skillWorkshop.skills.titlefor the view names.Code
start-page.tsx(new): the views row and the three views (Drafts queue, History groups, Learned skills with search); replaces the filter list that lived inview.tsx.skill-workshop-page.tsx: the owner keeps the start view (default from the snapshot on an agent's first read), the Active / Archived filter for Learned skills, and selects the newest draft only in Drafts.view-shared.tsx:workshopHistory,defaultStartView, and the sort/archived helpers moved here fromview.tsx;diff.tsx:diffCountsfor the open draft's counts.skill-workshop-page.test.tsx: updated for the views (open a skill from Learned skills; Back after applying from a draft page returns to the Drafts view); new tests for the view that opens by default, History grouping by day, History Undo gating (and no Undo on Learned skills rows), and Learned skills search.Evidence
Real built Control UI with the mock Gateway and fixture Workshop data (5 skills, 1 archived skill, 3 drafts in Propose, 7 changes). Before is
origin/main(6e113fe), After is this branch; light at 1440 and 390 px, dark for Drafts and History. Every 390 px capture has no horizontal overflow; draft action buttons are 32 px tall on a phone.Checks:
pnpm tsgo:ui,pnpm lint:ui:styles,pnpm ui:i18n:baseline,pnpm ui:i18n:verify,pnpm check:control-ui-controllers, oxlint and oxfmt on touched files, the Skill workshop unit tests,pnpm ui:build. The Workshop E2E files (app.workshop-contract,skill-workshop-empty-selection,operator-admin) are updated for the views (default view, Learned skills for Active / Archived, the queue staying open after Apply) and pass, 10/10.