Repository navigation
feat(ui): add collapsible Workboard columns - #128115
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
There was a problem hiding this comment.
Pull request overview
Adds collapsible Workboard columns with responsive rails, accessible controls, state handling, translations, and expanded tests.
Changes:
- Replaces grid sizing with flex-based columns and collapsed rails.
- Adds automatic and manual collapse interactions.
- Updates unit/E2E coverage and English translations.
- Fixes are required for single-column flex sizing and shared widget layout compatibility. Both findings are moderate severity.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Summary |
|---|---|
ui/src/styles/workboard.css |
Flex layout, rails, responsive styling, and collapse controls. |
ui/src/pages/workboard/workboard.e2e.test.ts |
Browser coverage for collapse and mobile behavior. |
ui/src/pages/workboard/view.ts |
Collapse toggle and rendering behavior. |
ui/src/pages/workboard/view.test.ts |
Automatic and manual collapse tests. |
ui/src/pages/workboard/view-card.ts |
Rail rendering and collapse/expand interactions. |
ui/src/lib/workboard/types.ts |
Collapse-related UI state types. |
ui/src/lib/workboard/runtime.ts |
Default collapse state initialization. |
ui/src/i18n/locales/en.ts |
Collapse and expand translations. |
Suppressed comments (3)
ui/src/pages/workboard/workboard.e2e.test.ts:563
- This change retargets the existing drag test to the column section, but it still drops onto populated
Running; it never exercises the new collapsed-rail target. Since the rail button is the actual user-visible drop surface for an empty stage, add a browser scenario that drags a card onto.workboard-column--ready .workboard-column__railand asserts the resultingworkboard.cards.moverequest/status.
await dragSource.dragTo(statusColumn(writable.page, "Running"));
ui/src/styles/workboard.css:1673
- This media rule now also matches the board widget's
.workboard-boardelement (ui/src/lib/board/widgets/workboard-board.ts:64), while that widget's existing styles keepoverflow-y: hidden(ui/src/styles/board.css:503-513). At viewports up to 900px the widget is therefore changed to a vertical flex layout, and the following mobile rules make its columns non-flexing/full-width, so the columns after the first are stacked outside the hidden vertical overflow and become inaccessible. Scope the mobile overrides to the page board or add a widget-specific reset, and cover the widget at this breakpoint.
.workboard-board {
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
scroll-snap-type: none;
ui/src/styles/workboard.css:570
- The new keyboard-focus path is not covered by the browser scenario: it verifies the hidden control, then only calls
hover()and checks hover visibility. Add a keyboard-focused assertion (focus the collapse button via Tab or.focus()and verify the control becomes visible) so the accessibility affordance in:focus-withinis protected independently of hover behavior.
.workboard-column__header:hover .workboard-column__collapse,
.workboard-column__header:focus-within .workboard-column__collapse {
opacity: 1;
}
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 11:04 PM ET / August 24, 2026, 03:04 UTC. ClawSweeper reviewWhat this changesAdds Show all, Collapse empty, and Hide empty modes plus per-column collapsible rails to the full Workboard page while preserving the dashboard widget’s grid layout. Merge readinessKeep open: the patch is correct and the real UI proof is convincing, but this protected, maintainer-routed feature needs a Workboard owner to confirm scope and a current-base refresh before landing. Priority: P2 Review scores
Verification
Live VerificationEntry: Result: FAIL (partial) — step 2 Steps:
How this fits togetherThe Control UI renders Workboard plugin card data into the full operator page and embedded dashboard widgets. This change adds a page-only layout choice before cards are displayed or moved between status columns. flowchart LR
A[Workboard card data] --> B[Control UI state]
B --> C[Empty-column mode]
C --> D[Full Workboard page]
C --> E[Dashboard widget]
D --> F[Expanded columns or rails]
E --> G[Existing grid layout]
Decision needed
Why: The implementation is coherent and aligns with the web-frontend ergonomics priority, but this is a new operator-facing layout mode on a maintainer-labelled PR. Before merge
Agent review detailsSecurityNone. PR surfaceSource +271, Tests +311, Other 0. Total +582 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the page-only mode and widget surface split, rebase onto current main, and land only after a Workboard owner confirms this opt-in ergonomics scope. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds an opt-in Workboard capability rather than fixing a reported current failure. Is this the best way to solve the issue? Yes: page-scoped layout state plus the explicit widget surface preserves the existing dashboard grid contract, unlike a shared layout rewrite. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 267f1ad9173f. LabelsLabel 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 (11 earlier review cycles; latest 8 shown)
|
65225a9 to
ab251f0
Compare
|
Addressed the complete review set in
The prior core publication-test failure is outside this UI diff; the new head will rerun CI against the current base. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ab251f0 to
b15d88a
Compare
|
@clawsweeper re-review Final one-pass closeout is on exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
/re-review exact |
|
@clawsweeper maintainer approval for this direction |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: maintainer approval for this direction |
|
ClawSweeper assist: The direction is ready for maintainer product approval: default to showing empty columns, with explicit Collapse and Hide modes, while keeping filtered views and embedded widgets unchanged. Evidence:
Suggested next action: Confirm the product direction; for a fresh full correctness assessment, request Source: #128115 (comment) |
Co-authored-by: Solvely-Colin <[email protected]>
42f771f to
ff8a668
Compare
|
@clawsweeper re-review Collapse direction follow-up is complete on exact head
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Solver <solver@localhost> Co-authored-by: Solvely-Colin <[email protected]>
What Problem This Solves
Workboard boards with many workflow stages can squeeze active cards when operators want a more compact view. This makes card titles and review information difficult to scan.
Why This Change Was Made
The full Workboard page now offers one explicit Empty columns mode with three compatible states:
Users can also expand or collapse individual stages and drag cards onto collapsed rails. Rails preserve each stage's color accent. Direction controls follow the layout axis: desktop collapse points left and expand points right; mobile collapse points up and expand points down.
The Flex/collapse layout is scoped to the full Workboard page. Filtered single-status views retain their responsive width, and embedded dashboard widgets retain their existing 240px horizontal Grid contract at desktop and mobile breakpoints.
Touch-only collapse controls remain visible with a 44×44px target. Reduced-motion mode disables the new opacity transitions. Selector labels remain fully visible at desktop and compact widths.
Compatibility
Verification
Exact head:
ff8a668b770d9501b4260f98494849cdfa914ce1Pinned main base:
1ac7f0161c9e5ae0b28be9a1537a75192456f8a7pnpm check:changed: passed.pnpm ui:build: passed, including startup JavaScript and CSS budgets.view.ts: 89.89% branches / 87.5% lines.view-card.ts: 86.22% branches / 90.99% lines.The browser scenarios cover Show → Hide → Collapse, responsive direction controls, rail geometry, native drag/drop, responsive single-status sizing, touch/reduced-motion behavior, selector text fit, and the independent dashboard-widget geometry contract.
Exact-Head Visual Proof
The media below was captured in real Chromium on AWS against a fresh isolated real OpenClaw Gateway, the bundled Workboard plugin, SQLite-backed state, and the exact-head production Control UI bundle. No Gateway or Workboard RPC response was mocked. The isolated board contains one deliberately redacted demonstration card and no production data.
Videos: desktop interaction · native mobile interaction
Observed: 9 columns in Show mode, 1 in Hide mode, and 8 collapsed rails plus the populated column in Collapse mode. Desktop showed 1 left-collapse and 8 right-expand controls; touch/mobile showed 1 up-collapse and 8 down-expand controls. Selector trigger/option
clientWidthequalsscrollWidthat desktop and mobile widths. All screenshots and sampled recording frames were personally inspected.Proof commit
4b66d0bc76chas exact source headff8a668b770as its parent, so the proof is cryptographically tied to this PR without entering its code diff.Remote Evidence
AWS Crabbox
awscbx_21d10369320d(harbor-prawn)run_30c413f6ea67ami-0461d919be7deb53cc7a.8xlarge,eu-west-1Blacksmith Testbox
blacksmith-testboxtbx_01m0rtpj1199ymp480v2amt42qTest Surface
The mode behavior is exercised in one consolidated unit scenario rather than one test per option. No coverage-only tests were added. Responsive direction and text-fit assertions stay in the existing browser flow, and the separate widget geometry suite remains because it protects an independent shared consumer.
Review Closeout
Direct Codex review found two non-blocking accessibility issues; both are fixed and covered in Chromium: touch target sizing and reduced-motion transitions. All prior inline review threads are resolved.