Skip to content

feat(workboard): show boards in the sidebar and pin your own - #164604

Merged
steipete merged 9 commits into
mainfrom
steipete/workboard-sidebar-boards
Oct 4, 2026
Merged

steipete merged 9 commits into
mainfrom
steipete/workboard-sidebar-boards

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Workboard boards were discoverable only through an in-page dropdown or hidden sidebar Customize entries, so creating a board did not give it an obvious place in navigation.

Solution

Add one-level plugin navigation nesting through parent, plus host.ui.pinNavigation(id) for an already registered destination. Pinning uses the same saved sidebar-preferences writer as Customize, is idempotent, and ignores unregistered IDs. Children never enter the sidebar through default admission; Customize uses each destination's known icon.

Workboard registers Cards and Sessions boards beneath Workboard in catalog order. Sidebar labels use plain board names, adding (cards) or (sessions) only when names collide. Native plugin zone entries use block flow, with the reorder control beside the parent row, so nested children take up their own space. Creation registers the returned board synchronously and saves its pin before refreshing. The catalog keeps the existing metadata-signature reconciliation and never pins on refresh. Existing load-generation invalidation prevents an older catalog response from removing the new registration.

User Impact

Opening Workboard expands its board list and highlights the open board. Boards created in the Control UI are pinned immediately; any board can be pinned or unpinned through Customize and reordered by dragging. Removing a pin stays effective across reconciliation. No new config option or persisted state is introduced.

Why This Change Was Made

An ordinary saved pin captures the user's creation action without turning the board into a permanent default. Core owns rendering and the existing preferences write; Workboard owns its catalog, creation flow, and registration lifecycle. The SDK adds no barrel exports or subpaths.

Evidence

Current head: a03239105bb6ccc7f8e0546015e42c01bcb99629

The coordinator's real Gateway + Control UI check at 37d76655 (1440×900, light theme) verified creation pins a board, pins survive reload, and unpinning remains effective after reload while the board stays nested. The two follow-up corrections are covered by failing-before/passing-after regressions: the actual zone renderer and stylesheet now provide block flow and an auto-sized entry, while catalog and creation tests prove plain names and kind-only collision suffixes through rename/removal and a stale catalog response. Other uses of workboardBoardLabel are unchanged.

The same nine focused suites listed in the initial verification below were rerun with node scripts/run-vitest.mjs <files> --maxWorkers=1: 267 tests passed in 51.71 s wall time. The new layout case took 81 ms; the catalog collision and creation cases took 4 ms and 110 ms. These are Node/jsdom assertions; no browser automation was used, and corrected geometry still awaits the coordinator's live/visual recheck.

Current-head check Result Wall time
pnpm tsgo:core Pass 29.47 s
pnpm tsgo:core:test Pass, all 27 shards 69.74 s
pnpm tsgo:ui Pass 4.16 s
pnpm tsgo:extensions Pass 6.81 s
pnpm tsgo:extensions:test Pass 8.22 s
Oxlint: touched UI files Pass 75.17 s
Oxlint: touched Workboard files Pass 60.99 s
Stylelint: touched styles/templates Pass 1.23 s
Oxfmt: all touched files Pass —
Workboard bundle build / copy Pass; manifest committed 1.61 / 2.55 s
pnpm plugins:assets:check Pass; generated bytes match commit 4.66 s
Workboard docs sanity Pass 2.62 s
git merge-tree --write-tree origin/main HEAD Clean 0.11 s
Isolated Codex branch autoreview, P0/P1 Scoped clean 324.70 s

The pre-commit review also passed. Final branch review status:

{
  "schema_version": 1,
  "status": "scoped-clean",
  "exit_code": 0,
  "engine": "codex",
  "report_produced": true,
  "reason": null,
  "reviewer_exit_code": null,
  "timed_out": false
}

Live proof (coordinator, real Gateway + Control UI from head 2314bad, 1440×900, light theme)

Rig: gateway run --dev from this branch with the existing rig state (three boards, one with a custom pinned column), Control UI via pnpm ui:dev, headless Playwright driving the real page. Two coordinator fixes landed on top of the lane's work after the first live pass: the nested list rendered beside the "Workboard" link because that entry is a routed page (no entry-level modifier could see its children), so the contributions renderer now wraps the parent link and its children in one block group inside the flex row; and boards without an icon now default to the Workboard glyph instead of the generic plug.

Observed on the final head:

  • Opening a board shows Workboard followed by its boards as indented children, the open board highlighted, the following sidebar sections pushed down (no overlap).
  • Edit pinned items lists the boards by plain name with the kanban glyph.
  • New board → Create: the new board is pinned as a top-level entry immediately (no reload) and stays nested under Workboard; after a reload the pin is still there; removing it in Edit pinned items takes effect at once and is still gone after another reload, while the board remains in the nested list.
pinned top-level entry present: 1 | nested: 1
after reload top-level: 1 | nested: 1
after unpin top-level (expect 0): 0
after unpin + reload top-level (expect 0): 0
board still nested under Workboard (expect 1): 1

Before (main): boards exist only inside Edit pinned items, with raw ids and plug icons; nothing in the sidebar itself.

Before: sidebar on main with a single Workboard entry

Before: Edit pinned items lists boards with raw ids and plug icons

After: boards nested under Workboard while it is open, plain names and board icons in the pin editor, and a freshly created board pinned top-level.

After: boards nested under Workboard with the open board highlighted

After: Edit pinned items shows boards by name with the kanban glyph

After: a newly created board pinned top-level and nested under Workboard

Also fixed on this head: the branch had been cut before main changed shared Control UI inputs, so CI's merge ref rebuilt the Workboard bundle with a different hash than the committed manifest and the real-Gateway UI e2e preflight refused the dirty tree; the branch is rebased and the manifest regenerated, and both real-Gateway shards pass on this head.

Initial full verification at 37d76655

Focused command: node scripts/run-vitest.mjs <files below> --maxWorkers=1 — 266 tests in 9 files passed; 59.56 s wall time. Per-file test time from that shared invocation:

File Test time
ui/src/plugins/control-ui-host.test.ts 1.669 s
ui/src/plugins/control-ui-navigation.test.ts 0.007 s
ui/src/components/app-sidebar-session-navigation-logic.test.ts 0.010 s
ui/src/components/app-sidebar.sessions.test.ts approximately 40 s
extensions/workboard/browser/index.test.ts 0.194 s
extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts 0.297 s
extensions/workboard/browser/pages/workboard/workboard-page.test.ts 4.866 s
extensions/workboard/browser/session-accessory.test.ts 0.026 s
extensions/workboard/browser/catalog.test.ts 0.468 s

The existing sidebar suite contains 138 tests; its changed Customize integration case took 185 ms and proves the actual menu callback, icons, saved removal, and subsequent reconciliation. New board-creation cases cover both board kinds and hold catalog refresh pending; the plugin activation test also proves stale-response handling. All proof here uses Node/jsdom, with no browser automation.

The 48 affected plugin tests were rerun after two mechanical test lint corrections and passed in 9.05 s wall time. Extension test types were rechecked after those edits.

pnpm changed:lanes --json selected core, core tests, UI, extensions, extension tests, docs, and bundled-channel metadata. The selected checks ran through the changed-check workflow, with the remaining guards run separately after its extension-lint stop.

Check Result Wall time
pnpm tsgo:core Pass 25.77 s
pnpm tsgo:core:test Pass, all 27 shards 761.59 s
pnpm tsgo:ui Pass 39.55 s
pnpm tsgo:extensions Pass 56.62 s
pnpm tsgo:extensions:test Pass; final rerun 29.64 s
UI i18n verification Pass 5.35 s
UI changed-file style checks Pass 4.24 s
Core lint Pass; existing line-count warnings 383.35 s
Targeted lint of all 8 changed Workboard TypeScript files Pass 55.83 s
Oxfmt on changed files Pass 1.33 s
pnpm check:deprecated-api-usage Pass 35.84 s
pnpm deadcode:full Pass 166.35 s
Plugin bundle build / copy Pass; manifest committed 1.60 / 1.15 s
pnpm plugins:assets:check after commit Pass 7.85 s
Docs MDX / internal links Pass; zero broken links 1.11 / 13.33 s
git merge-tree --write-tree origin/main HEAD Clean 0.11 s

All remaining selected structural guards passed, including zero runtime import cycles and the SDK package-export/boundary checks.

Known inherited lint failure: full extension lint reports extensions/crabbox/src/crabbox-worker-provider.ts:747 at 710 lines against a 700-line limit. That file has the same Git blob (ffc8a6af7e85bb63fa41cadfc9742c137a9d6b00) at the merge base, this branch, and the observed current main. It is outside this change. The two Workboard test lint diagnostics from that run are fixed and the entire touched Workboard scope passes targeted lint. The full changed-check command therefore has an inherited lint exception, not an all-green result.

The extension-lint prerequisite initially timed out while generating SDK declarations after 300 seconds. It completed using the existing OPENCLAW_PLUGIN_SDK_BOUNDARY_ROOT_SHIMS_TIMEOUT_MS=900000 setting; no timeout or tooling source was changed.

SDK surface --check passed without export growth:

Surface Entrypoints Exports Callable exports
Public 151 3,643 2,109
Local-only 215 3,689 2,299
All 366 7,332 4,408

Zero public wildcard re-exports, deprecated barrel subpaths, or package-exported forbidden subpaths.

Initial isolated Codex branch autoreview at P0/P1 on 37d76655e9a56b56751a8859aa7580dfa2fb326a passed in 448.54 s, with no accepted/actionable findings. The earlier complete review and the isolated test-lint-delta review also passed.

{
  "schema_version": 1,
  "status": "scoped-clean",
  "exit_code": 0,
  "engine": "codex",
  "report_produced": true,
  "reason": null,
  "reviewer_exit_code": null,
  "timed_out": false
}

Hosted CI for this exact head was skipped. No hosted test-job timings are available.

@clawsweeper

clawsweeper Bot commented Oct 3, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: workboard size: L labels Oct 3, 2026
@steipete
steipete marked this pull request as ready for review October 3, 2026 23:15
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 3, 2026, 8:13 PM ET / October 4, 2026, 00:13 UTC (Revision 3).

ClawSweeper review

What this changes

The PR nests Workboard boards beneath their sidebar entry, automatically pins newly created boards, and adds generic plugin navigation nesting and pinning support.

Merge readiness

⛔ Needs changes before merge - 1 item remains

This remains useful work that current main does not provide. No blocking code defect was found, but the previously requested browser evidence for the corrected sidebar layout remains outstanding.

Priority: P2
Reviewed head: 2314badfbe2118da37b4c22c53e33dd7d3afb5e3

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and has useful focused coverage, while final visual evidence remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: 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.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Pinned implementation: The introduced delta registers boards beneath Workboard, registers a newly created destination before pinning, and renders active children inside a single block group. These changes are coherent additions to the existing owners.
Existing preference and lifecycle owners: Pinning checks the current activation and its own registered destination, appends only an absent pin, and delegates persistence to the existing navigation preferences writer. The generic view scope also retires retained calls after abort. The serialized settings contract is unchanged.
Still necessary on current main: Fetched main still registers individual boards as optional standalone destinations without parent nesting; its SDK exposes registerNavigation but not pinNavigation. The merged related work does not implement this PR's remaining navigation behavior.
Findings None None.
Security None None.

How this fits together

Workboard supplies board destinations to the Control UI plugin registry. The sidebar renders those destinations and stores explicit pins through the existing user-preferences owner.

flowchart TD
  A[Gateway board catalog] --> B[Workboard navigation registrations]
  C[Board creation] --> B
  C --> D[Existing sidebar preferences]
  B --> E[Active parent or child page]
  E --> F[Nested board links]
  D --> G[Pinned sidebar links]
Loading

Before merge

  • Complete next step (P2) - Add and inspect before/after browser screenshots for head 2314bad, showing nested geometry and labels/icons; identify the served build and update the PR evidence. Redact credentials, IP addresses, phone numbers, and private endpoints. Updating the body should trigger review; otherwise ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +113, Tests +515, Docs +22. Total +650 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 12 168 55 +113
Tests 9 560 45 +515
Docs 4 22 0 +22
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 750 100 +650

Review metrics

Metric Value Why it matters
Plugin navigation contract 1 optional parent field; 1 pinning operation The generic additions are documented and delegate state changes to the existing preferences owner.
Production versus test growth production +113 net lines; tests and support +515 net lines Production growth has a stated purpose: generic nesting, existing-owner pinning, and Workboard registration reconciliation.

Technical review

Best possible solution:

Keep board discovery plugin-owned, preserve ordinary removable pins, and verify the final nested sidebar presentation in the served browser build.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction: current-main source confirms the missing nesting and creation-time pinning capability. The final browser presentation has not been demonstrated in the captured evidence.

Is this the best way to solve the issue?

Yes, the implementation follows the existing plugin registry and preferences owners without adding a competing pin store; browser inspection is still needed to validate the visual result.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7fd8a8ea80e6.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves discovery and navigation for an existing optional plugin without an urgent runtime failure.
  • 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. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Pinned implementation: The introduced delta registers boards beneath Workboard, registers a newly created destination before pinning, and renders active children inside a single block group. These changes are coherent additions to the existing owners. (ui/src/plugins/control-ui-view.runtime.ts:446, 2314badfbe21)
  • Existing preference and lifecycle owners: Pinning checks the current activation and its own registered destination, appends only an absent pin, and delegates persistence to the existing navigation preferences writer. The generic view scope also retires retained calls after abort. The serialized settings contract is unchanged. (ui/src/plugins/control-ui-host.ts:289, 2314badfbe21)
  • Still necessary on current main: Fetched main still registers individual boards as optional standalone destinations without parent nesting; its SDK exposes registerNavigation but not pinNavigation. The merged related work does not implement this PR's remaining navigation behavior. (extensions/workboard/browser/index.ts:37, 7fd8a8ea80e6)
  • Review continuity and captured proof: The previous completed review requested inspected before/after browser screenshots and served-build identification. The captured body reports real Gateway creation/reload/unpin verification at 37d76655e9a56b56751a8859aa7580dfa2fb326a, but explicitly leaves the corrected geometry awaiting visual recheck and names a stale current head. Its captured sourceRevision is f24f8f4dfe4007d272b74feaf1701699b35ebed875249124026871ddf7b36d73. No earlier code finding needs re-raising.
  • Prepared images inspected: All four prepared images were inspected locally. Three show earlier routing and manual pinning from the related July PR; the fourth shows the earlier missing-Workboard sidebar scenario. None demonstrates this head's nested layout, corrected labels/icons, or latest block-group correction.
  • Related merged feature history: feat(workboard): routable boards, sidebar pinning, icon and color #112302 established routable, manually pinnable boards; fix: keep Workboard visible in the sidebar #125473 established the always-visible enabled Workboard parent. These are foundations for the proposed improvement, not replacement fixes.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add inspected, sanitized before/after browser screenshots showing the corrected nested geometry and board labels/icons, identify the served asset build, and update the stale head reference in the PR evidence.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-03T23:21:25.072Z sha 37d76655e9a56b56751a8859aa7580dfa2fb326a :: needs changes before merge. :: none
  • reviewed 2026-10-04T00:01:51.084Z sha eed325c :: needs changes before merge. :: none

@steipete
steipete force-pushed the steipete/workboard-sidebar-boards branch from a032391 to eed325c Compare October 3, 2026 23:56
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 4, 2026
The Workboard entry is a routed page, so no entry-level modifier can know it carries children. Render the parent link and its child list inside one block group so the flex row keeps its reorder menu and grows with the list.
@steipete
steipete merged commit affb994 into main Oct 4, 2026
120 of 124 checks passed
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Landed with a pinned-head squash merge past an inherited red, per the standing rule for failures that also fail on current main.

Run 37164002879 on head 2314bad: 61 lanes passed, including every lane this diff touches (UI browser suites, extension bundles and lint, core/extension type lanes, plugin assets, SDK surface, boundaries, docs) and both checks-ui-e2e-real-gateway shards. The only failures were checks-ui (1/3) and checks-ui (3/3):

FAIL unit-node src/lib/config/config-include-roundtrip.node.test.ts
FAIL unit-node src/lib/cron/editor-save.node.test.ts
Error: Cannot find package '@openclaw/worker-runtime/lifecycle' imported from src/infra/sqlite-readonly-location-cleanup.ts

That import arrived on main in #164537 (0bc061b) and the same two shards fail the same way on sibling PR runs from the same hour (for example 37163694401 and 37163681421). This PR does not touch src/infra or those tests.

Earlier heads of this PR had hit the real-Gateway preflight ("source state is dirty") because the branch predated a main change to shared Control UI inputs and CI's merge ref rebuilt the Workboard bundle with a different hash than the committed manifest; the branch was rebased and the manifest regenerated, after which both shards passed.

@steipete
steipete deleted the steipete/workboard-sidebar-boards branch October 4, 2026 00:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…w#164604)

Add an optional parent to Control UI plugin navigation items: while the parent page or one of its children is active, the sidebar renders the children as an indented list under the parent, in one block group inside the zone row. Add ControlUiHost.ui.pinNavigation, a one-shot pin through the same saved sidebar-entries owner the Customize menu uses, so removal sticks. Workboard registers every board under its Workboard entry with the board's icon (kanban by default) and plain name, offers them in Edit pinned items, and pins a board the moment it is created. The Customize menu shows plugin item icons instead of the generic plug.
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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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