Skip to content

feat(ui): skill workshop start page with Drafts, History and Learned skills - #202572

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/skill-workshop-start-page
Nov 20, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/skill-workshop-start-page

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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 (with its count) when drafts wait;
  • else History when skills have changes (or there are no skills yet);
  • else Learned skills (with its count).

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.

  • Drafts. The queue: newest draft first and open, its diff in place; Open draft / Discard / Apply under it, with a note on what Apply does ("The current version is saved first, so you can undo." for an update, "You can archive it later." for a new skill; shown only to operators who may apply). Each row: tile, name, Update / New skill tag, one line of summary, and at the right the live skill's uses (updates only) and the draft's age. Closed rows keep Discard / Apply on desktop; on a phone a row opens to act. The open row shows "+N −N" once its comparison is loaded; closed rows show no counts, because the drafts list carries none and counting them would need a read per draft. Applying or discarding from the queue now keeps the queue open on the next draft (before, Apply moved the list to Active and opened the skill); applying from a draft page still follows the skill.
  • History. Every skill's latest change, newest first, under Today / This week / Earlier (from the change time the list already has; "this week" is the six days before today). Each row: tile, skill name, who + what changed (the same text Active rows showed), the age, and Undo when the change can be undone and the operator may run it. Clicking a row opens that skill's page. Empty: "No changes yet."
  • Learned skills. Search (filters the loaded list by name and description; the list method returns every skill, so it filters the whole library), Active / Archived with counts, Sort (Active only), and the rows: name, description, uses / "Unused Nd" / "Not used yet". The latest-change line moved to History; rows have no Undo. Archived rows as before, Restore on the skill page.
  • Header. The learning state is one sentence with its dot ("Learning from work, saves on its own", "Learning from work, asks before saving", "Learning off"), plus the gear menu as before (mode switch with its explanation, Learn from history, and Learn more on a phone).
  • Agent picker. Unchanged rule: only when the sidebar shows all agents, at the right of the views row.

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

  • Prototype "Show N more" caps on long lists: every row is shown (the lists are already complete), and the cap would need new copy.
  • A "Live skill changed after this draft" warning on a draft row: the drafts list has no base version to compare against.

Strings

  • New: 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."
  • Removed (no longer shown): skillWorkshop.drafts.proposed "Proposed {time}".
  • Reused: skillWorkshop.skills.drafts, skillWorkshop.tabs.history, skillWorkshop.skills.title for 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 in view.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 from view.tsx; diff.tsx: diffCounts for the open draft's counts.
  • Phone Learned skills rows use one fixed right-slot width, like desktop, so every row's text ends at the same line.
  • Tests in 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.

State Width Theme Before After
Drafts, newest draft open (Propose) 1440 px light Before: Drafts, newest draft open (Propose), 1440 px, light After: Drafts, newest draft open (Propose), 1440 px, light
Drafts, newest draft open (Propose) 390 px light Before: Drafts, newest draft open (Propose), 390 px, light After: Drafts, newest draft open (Propose), 390 px, light
Drafts, newest draft open (Propose) 1440 px dark Before: Drafts, newest draft open (Propose), 1440 px, dark After: Drafts, newest draft open (Propose), 1440 px, dark
Drafts, newest draft open (Propose) 390 px dark Before: Drafts, newest draft open (Propose), 390 px, dark After: Drafts, newest draft open (Propose), 390 px, dark
Drafts, all rows closed 1440 px light Not on main After: Drafts, all rows closed, 1440 px, light
Drafts, all rows closed 390 px light Not on main After: Drafts, all rows closed, 390 px, light
Drafts, all rows closed 1440 px dark Not on main After: Drafts, all rows closed, 1440 px, dark
Drafts, all rows closed 390 px dark Not on main After: Drafts, all rows closed, 390 px, dark
History (Auto mode, no drafts; on main: the start list) 1440 px light Before: History (Auto mode, no drafts; on main: the start list), 1440 px, light After: History (Auto mode, no drafts; on main: the start list), 1440 px, light
History (Auto mode, no drafts; on main: the start list) 390 px light Before: History (Auto mode, no drafts; on main: the start list), 390 px, light After: History (Auto mode, no drafts; on main: the start list), 390 px, light
History (Auto mode, no drafts; on main: the start list) 1440 px dark Before: History (Auto mode, no drafts; on main: the start list), 1440 px, dark After: History (Auto mode, no drafts; on main: the start list), 1440 px, dark
History (Auto mode, no drafts; on main: the start list) 390 px dark Before: History (Auto mode, no drafts; on main: the start list), 390 px, dark After: History (Auto mode, no drafts; on main: the start list), 390 px, dark
Learned skills, Active 1440 px light Before: Learned skills, Active, 1440 px, light After: Learned skills, Active, 1440 px, light
Learned skills, Active 390 px light Before: Learned skills, Active, 390 px, light After: Learned skills, Active, 390 px, light
Learned skills, Archived 1440 px light Before: Learned skills, Archived, 1440 px, light After: Learned skills, Archived, 1440 px, light
Learned skills, Archived 390 px light Before: Learned skills, Archived, 390 px, light After: Learned skills, Archived, 390 px, light
Learned skills, search with a result 1440 px light Not on main After: Learned skills, search with a result, 1440 px, light
Learned skills, search with a result 390 px light Not on main After: Learned skills, search with a result, 390 px, light
Learned skills, search without a result 1440 px light Not on main After: Learned skills, search without a result, 1440 px, light
Learned skills, search without a result 390 px light Not on main After: Learned skills, search without a result, 390 px, light
No learned skills 1440 px light Before: No learned skills, 1440 px, light After: No learned skills, 1440 px, light
No learned skills 390 px light Before: No learned skills, 390 px, light After: No learned skills, 390 px, light
Drafts, none waiting (Propose) 1440 px light Before: Drafts, none waiting (Propose), 1440 px, light After: Drafts, none waiting (Propose), 1440 px, light
Drafts, none waiting (Propose) 390 px light Before: Drafts, none waiting (Propose), 390 px, light After: Drafts, none waiting (Propose), 390 px, light
History, no changes 1440 px light Not on main After: History, no changes, 1440 px, light
History, no changes 390 px light Not on main After: History, no changes, 390 px, light
Read-only operator, Drafts 1440 px light Before: Read-only operator, Drafts, 1440 px, light After: Read-only operator, Drafts, 1440 px, light
Read-only operator, Drafts 390 px light Before: Read-only operator, Drafts, 390 px, light After: Read-only operator, Drafts, 390 px, light
Read-only operator, History 1440 px light Not on main After: Read-only operator, History, 1440 px, light
Read-only operator, History 390 px light Not on main After: Read-only operator, History, 390 px, light
Plugin turned off 1440 px light Before: Plugin turned off, 1440 px, light After: Plugin turned off, 1440 px, light
Plugin turned off 390 px light Before: Plugin turned off, 390 px, light After: Plugin turned off, 390 px, light

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR organizes Skill Workshop into Drafts, History, and searchable Learned skills views.

Example: Open Skill Workshop with five learned skills and three waiting drafts.

  • Before: The start page opens on Active skills.
  • After: The start page opens on Drafts, with the newest proposal expanded for review.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent implementation with strong appearance evidence, limited by incomplete behavioral and scoped layout validation.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Waiting proposals, recent changes, and the learned-skill library compete within one filtered list.
Reason: The maintainer-authored direction supplies the owner decision, and the separate views make review work and skill discovery clearer without new configuration or Gateway APIs.

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
Reviewed head: f1c43a132404d26a4369daebc24c71e0765fdb0d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted browser evidence of queue Apply/Discard advancing correctly and the UI guide’s layout-shift observations at 400, 820, and 1280 pixels with real-scale data against an isolated Gateway.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit b073ac5 adds ui/src/pages/skill-workshop/skill-workshop-page.tsx:295 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b073ac5c3308; files: ui/src/pages/skill-workshop/skill-workshop-page.tsx)
  • Peter Steinberger: Raw commit 874e463 adds ui/src/pages/skill-workshop/skill-workshop-page.tsx:272 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 874e463653eb; files: ui/src/pages/skill-workshop/skill-workshop-page.tsx)
  • Vyctor H. Brzezowski: Raw commit 84365ae adds ui/src/pages/skill-workshop/view.tsx:241 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 84365ae0b647; files: ui/src/pages/skill-workshop/view.tsx)

PR surface

Source +436, Tests +101. Total +537 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 904 468 +436
Tests 3 115 14 +101
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 1019 482 +537

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: The redesign improves draft review and skill discovery within one optional management page.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The redesign improves draft review and skill discovery within one optional management page.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 20, 2026, 11:47 AM ET / 16:47 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/skill-workshop-page-url branch from 9dcc520 to 375bd35 Compare November 20, 2026 18:12
Base automatically changed from brzezowski/skill-workshop-page-url to main November 20, 2026 18:24
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/skill-workshop-start-page branch from f1c43a1 to a312ca4 Compare November 20, 2026 18:25
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 20, 2026 18:25
@vyctorbrzezowski
vyctorbrzezowski merged commit e6d4415 into main Nov 20, 2026
133 of 138 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/skill-workshop-start-page branch November 20, 2026 18:37
steipete added a commit that referenced this pull request Nov 20, 2026
Restore dead-export checks after #202572 and #202535 by keeping internal helpers local and removing unused view re-exports. Real consumers and implementations are unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…skills (openclaw#202572)

Give Skill Workshop a dedicated starting page and retain its inline Apply, agent search, and history navigation paths.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…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.
obviyus added a commit that referenced this pull request Nov 22, 2026
… 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]>
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

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant