Repository navigation
feat(workboard): show boards in the sidebar and pin your own - #164604
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. Reviewed October 3, 2026, 8:13 PM ET / October 4, 2026, 00:13 UTC (Revision 3). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherWorkboard 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +113, Tests +515, Docs +22. Total +650 across 25 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
a032391 to
eed325c
Compare
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.
|
Landed with a pinned-head squash merge past an inherited red, per the standing rule for failures that also fail on current 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 That import arrived on 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. |
…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.
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, plushost.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:
a03239105bb6ccc7f8e0546015e42c01bcb99629The 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 ofworkboardBoardLabelare 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.pnpm tsgo:corepnpm tsgo:core:testpnpm tsgo:uipnpm tsgo:extensionspnpm tsgo:extensions:testpnpm plugins:assets:checkgit merge-tree --write-tree origin/main HEADThe 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 --devfrom this branch with the existing rig state (three boards, one with a custom pinned column), Control UI viapnpm 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:
Before (main): boards exist only inside Edit pinned items, with raw ids and plug icons; nothing in the sidebar itself.
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.
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:ui/src/plugins/control-ui-host.test.tsui/src/plugins/control-ui-navigation.test.tsui/src/components/app-sidebar-session-navigation-logic.test.tsui/src/components/app-sidebar.sessions.test.tsextensions/workboard/browser/index.test.tsextensions/workboard/browser/pages/workboard/workboard-page-sessions.test.tsextensions/workboard/browser/pages/workboard/workboard-page.test.tsextensions/workboard/browser/session-accessory.test.tsextensions/workboard/browser/catalog.test.tsThe 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 --jsonselected 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.pnpm tsgo:corepnpm tsgo:core:testpnpm tsgo:uipnpm tsgo:extensionspnpm tsgo:extensions:testpnpm check:deprecated-api-usagepnpm deadcode:fullpnpm plugins:assets:checkafter commitgit merge-tree --write-tree origin/main HEADAll 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:747at 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=900000setting; no timeout or tooling source was changed.SDK surface
--checkpassed without export growth:Zero public wildcard re-exports, deprecated barrel subpaths, or package-exported forbidden subpaths.
Initial isolated Codex branch autoreview at P0/P1 on
37d76655e9a56b56751a8859aa7580dfa2fb326apassed 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.