Skip to content

refactor(ui): unify Workboard cards, lists, and controls - #143728

Closed
vyctorbrzezowski wants to merge 4 commits into
openclaw:mainfrom
vyctorbrzezowski:workboard-calm
Closed

vyctorbrzezowski wants to merge 4 commits into
openclaw:mainfrom
vyctorbrzezowski:workboard-calm

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Superseded by the Workboard stack

This work has been split into eight open PRs in native GitHub stack #144757, all assigned to @vyctorbrzezowski. Review from bottom to top:

  1. Preview session lifecycle: refactor(ui): model Workboard preview sessions consistently #144747
  2. Shared controls: refactor(ui): share Workboard selection and appearance controls #144748
  3. Navigation, filters, and mobile: refactor(workboard): organize navigation and mobile controls #144751
  4. Cards and session status: refactor(workboard): simplify cards and session status #144752
  5. Responsive list: refactor(workboard): add responsive list rows #144753
  6. Card and board editors: refactor(workboard): refine card and board editors #144754
  7. Details and session context: refactor(workboard): organize card details and session context #144755
  8. Selection and bulk actions: feat(workboard): add selection and bulk card actions #144756

The split preserves the approved Workboard UI and UX. Each layer includes its scoped validation and synthetic visual proof; #144756 records aggregate verification and remaining CI limitations. Nothing has been merged. This original PR is superseded; its branch and original description are retained for history.

Original description and historical evidence

What Problem This Solves

Workboard cards, list rows, filters, and session details present the same work inconsistently. Dense states repeat status information, narrow layouts crowd the controls, and list rows lose alignment as card content varies.

Why This Change Was Made

This refactor gives cards and list rows a consistent structure, centralizes session-state and alert presentation, and reuses platform dialogs, pickers, avatars, and appearance controls. It organizes board navigation, selection, bulk editing, and card details around those shared controls.

This PR tracks ongoing UI iteration. Please do not merge yet. The history is consolidated into four commits covering shared controls, Workboard presentation, preview fixtures, and action-state repairs.

User Impact

  • Read session state, agent identity, labels, counters, priority, and update time consistently across cards and list rows.
  • Keep fixed-width Kanban columns on small screens, with responsive header actions, scrollable status tabs, and visible active filters.
  • Review live session progress and recent messages in card details, with sender names and timestamps together.
  • Create, edit, select, and organize work with consistent controls, including inherited default-agent assignment.

Evidence

A visual baseline was frozen on 93d4150569b before cleanup: 118 normal captures and 280 state-matrix captures, covering 1440/1920, light/dark, both densities, Kanban/list, independent All/Todo/Blocked filters, filter popovers, headers, hover, and representative dialogs. The matrix covers 168 combinations of state, alert, counters, and priority in every layout/theme/width/density combination.

After rebasing onto current main, the matrix recapture has 278 byte-identical images and two raster-edge differences with zero standard non-AA pixels; every card position and dimension is unchanged. The raw full-frame comparison records main's separate sidebar icon change from puzzle to plug. Normal captures showed raster-edge differences and one original hover-transition intensity difference. A separate control using the original stylesheet sources and settled hover matched the final icon. The frozen baseline remains intact; no visual change caused by cleanup was found. Normal and matrix fixture JSON also match byte for byte after extraction.

Remote regression checks passed 324 focused unit tests, a 32-test page rerun after consolidating setup, both status-persistence E2Es, targeted plugin/UI lint, pinned formatting, and canonical asset generation. New tests reproduce stale bulk selections and board saves after permission revocation on the previous implementation, then pass with the repairs. The drag E2E explicitly targets another board's card and verifies the requested position and rendered order.

A fresh full-branch P0–P3 autoreview on 31b24a13881 completed clean: both review passes returned zero findings. Exact-head CI passed build/assets, UI suites, E2E shards 1–12, real-Gateway suites, types, lint, architecture, and contract checks. The final general Node shard (checks-node-compact-small-27) is still running. The separate Chrome extension bootstrap test in E2E shard 13 failed while waiting for a newly created tab; its browser implementation and test files are unchanged by this PR. A commit precedes each review. Earlier review fixes also cover all-board drag ordering and dismissed results resurfacing after an error.

Cleanup scope

Before: 93d4150569b against its pinned base ef37c4f3755. After: 31b24a13881 against rebased main 4bf86a306c4. Each count excludes its upstream base; the rebase preserved the four patches. Moved fixture code is not counted as deleted functionality.

Area Before + / − After + / −
Shared UI, contracts and docs +882 / −271 +774 / −101
Workboard implementation +5,434 / −1,607 +5,507 / −1,481
Tests +2,629 / −1,190 +2,841 / −1,204
CSS +4,239 / −1,145 +4,136 / −1,126
Preview fixtures and test support +1,659 / −51 +1,770 / −155
Total +14,843 / −4,264 +15,028 / −4,067

Removed dead legacy CSS selectors, duplicate declarations, overwritten search padding, an unused avatar-title alias, an unused projected message role, and two redundant tests:

  • groups filters and counts active values without counting display preferences: stronger retained tests exercise actual card filtering, display preferences, and grouped filter counts.
  • keeps empty input empty and preserves alerts when no badge is visible: retained state-table cases cover no-badge alerts and independent diagnostics; the empty case only mirrored filtering an empty array.

The preview launcher is 1,054 lines shorter. Workboard data, matrix cells, and matrix sessions live with the UI fixture helpers; the opt-in plugin projection remains in the dev launcher layer to preserve the UI import boundary. workboard.css is 84 lines shorter. Two unused test helpers and duplicate menu-close handlers were also removed. The suggested 50% reduction was not reached: total additions increased by 185, with required formatter changes and verified regression coverage offsetting the removals. Moved code is structural cleanup, not deleted functionality.

Kanban, light

Workboard Kanban with agent scope, session state, labels, and card footers

List, dark

Workboard list with aligned session, alert, counter, priority, time, and agent columns

Risk and coverage

Shared Control UI pickers, dialogs, avatars, and plugin component contracts also change. Their affected consumers have regression coverage, and the final full-branch autoreview is clean. CI as a whole is not green: one Node shard remains in progress, and the separate Chrome bootstrap failure is recorded above. Tests, builds, and installs ran remotely; mock captures and focused tests are separate proof tiers. This does not claim a live-agent end-to-end run.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 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 scripts Repository scripts plugin: workboard size: XL maintainer Maintainer-authored PR labels Sep 10, 2026
@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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 4:11 AM ET / 08:11 UTC (Revision 9).

ClawSweeper review

What this changes

Unifies Workboard cards and list rows, adds bulk and inline editing, and shares Control UI pickers, appearance controls, avatars, and session summaries.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 7 items remain

Two previously reported defects remain on the unchanged head. The PR contains useful work absent from current main, remains maintainer-owned, and carries an explicit author-requested merge hold.

Priority: P2
Reviewed head: 31b24a138818d6425af525d1dec62a36141c12b5

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful visual evidence and focused validation support the redesign, but two retained correctness defects prevent merge readiness.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Inspected screenshots support Workboard’s visual changes; reported remote tests supplement them but do not establish concurrent peer-update safety or stored-color upgrade behavior.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Inspected screenshots support Workboard’s visual changes; reported remote tests supplement them but do not establish concurrent peer-update safety or stored-color upgrade behavior.
Evidence reviewed 10 items Pinned head and author hold: The live REST response confirms the PR remains open at 31b24a1. Its body still explicitly requests that it not be merged yet and describes the shared component-contract changes.
Prior findings remain unchanged: The previous completed review covered this exact head and retained both findings. Comparing its revision with the checkout produces no changes in either affected file.
Dense reorder sends stale peer statuses: The introduced planner assigns the destination status to displaced peers, and the mutation loop submits every planned entry through workboard.cards.move. The existing store.move rereads the latest card but reapplies the supplied status; it cannot distinguish a position-only peer adjustment from an intentional status change.
Findings 2 actionable findings [P2] Preserve peer statuses when making room for a dropped card
[P2] Preserve valid stored board colors outside the session palette
Security None None.

How this fits together

Workboard is OpenClaw’s task board, combining stored cards with agent-session progress. Its browser plugin renders that information and sends operator edits through Gateway methods to the Workboard store.

flowchart LR
  A[Stored boards and cards] --> C[Workboard browser plugin]
  B[Agent session updates] --> C
  C --> D[Shared Control UI components]
  D --> E[Cards lists and details]
  E --> F[Operator edits]
  F --> G[Gateway permission checks]
  G --> A
Loading

Before merge

  • Preserve peer statuses when making room for a dropped card (P2) - This previously reported blocker remains. When a position gap is exhausted, the planner queues neighboring cards with the destination status. If another client or lifecycle update changes a peer before its request executes, store.move rereads that card but reapplies the cached status, undoing the newer change even though the operator dragged a different card. Send position-only peer updates through workboard.cards.update with expectedUpdatedAt, and stop or replan on conflict.
  • Preserve valid stored board colors outside the session palette (P2) - This previously reported blocker remains. Shipped Workboard metadata accepts CSS color strings, and its renderer passes them through unchanged. Routing board glyphs through this getter makes existing values such as teal, rgb(20, 100, 150), or var(--accent) return an empty string and display the muted fallback. Preserve valid stored board colors alongside palette values, and verify rendering after reload while retaining explicit clearing.
  • Resolve merge risk (P1) - Dense drag reordering can overwrite another client’s newer peer status; the supplied drag coverage does not establish safety for that interleaving.
  • Resolve merge risk (P1) - Existing boards using valid non-palette, non-hex CSS colors lose their displayed color after upgrade; the supplied screenshots do not cover those stored values.
  • Complete next step (P2) - Resolve both retained findings and their focused regressions; keep the merge hold until the author declares the iteration ready.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] Preserve peer statuses when making room for a dropped card — extensions/workboard/browser/lib/workboard/mutations.ts:214-216
  • [P2] Preserve valid stored board colors outside the session palette — ui/src/components/appearance-picker.ts:94-100
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Plugin component API 5 new host component mounts The shared SDK expansion reaches plugin consumers beyond Workboard and is explicitly acknowledged in the PR body.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Preserve concurrent state and stored appearance (recommended)
    Repair peer updates and color rendering, then verify dense-reorder conflicts and existing board appearance before landing.
  2. Continue the author’s iteration hold
    Leave the PR unmerged while the author completes the ongoing UI iteration and resolves the retained findings.

Technical review

Best possible solution:

Keep the shared controls while using conflict-checked, position-only peer updates and preserving existing board colors, with focused concurrency and upgrade proof.

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

Yes, from source: exhaust a position gap and change a queued peer’s status before its move request, or render an existing board with color teal. These PR-head failures were traced without executing target code.

Is this the best way to solve the issue?

The shared-component direction is reasonable, but the patch is not yet safe: position changes should preserve peer state, and generic appearance rendering should retain the board’s existing color contract.

Full review comments:

  • [P2] Preserve peer statuses when making room for a dropped card — extensions/workboard/browser/lib/workboard/mutations.ts:214-216
    This previously reported blocker remains. When a position gap is exhausted, the planner queues neighboring cards with the destination status. If another client or lifecycle update changes a peer before its request executes, store.move rereads that card but reapplies the cached status, undoing the newer change even though the operator dragged a different card. Send position-only peer updates through workboard.cards.update with expectedUpdatedAt, and stop or replan on conflict.
    Confidence: 0.99
  • [P2] Preserve valid stored board colors outside the session palette — ui/src/components/appearance-picker.ts:94-100
    This previously reported blocker remains. Shipped Workboard metadata accepts CSS color strings, and its renderer passes them through unchanged. Routing board glyphs through this getter makes existing values such as teal, rgb(20, 100, 150), or var(--accent) return an empty string and display the muted fallback. Preserve valid stored board colors alongside palette values, and verify rendering after reload while retaining explicit clearing.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Workboard usability improvement with concrete concurrency and appearance defects, without evidence of an urgent widespread outage.
  • merge-risk: 🚨 compatibility: The new appearance renderer stops displaying valid colors accepted by the shipped board contract.
  • merge-risk: 🚨 session-state: Reordering one card can replay stale statuses onto neighboring cards changed by another client or lifecycle update.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Inspected screenshots support Workboard’s visual changes; reported remote tests supplement them but do not establish concurrent peer-update safety or stored-color upgrade behavior.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The member-authored PR is exempt from the external-contributor proof gate. Inspected screenshots support Workboard’s visual changes; reported remote tests supplement them but do not establish concurrent peer-update safety or stored-color upgrade behavior.

Evidence

What I checked:

  • Pinned head and author hold: The live REST response confirms the PR remains open at 31b24a1. Its body still explicitly requests that it not be merged yet and describes the shared component-contract changes. (31b24a138818)
  • Prior findings remain unchanged: The previous completed review covered this exact head and retained both findings. Comparing its revision with the checkout produces no changes in either affected file. (extensions/workboard/browser/lib/workboard/mutations.ts:214, 31b24a138818)
  • Dense reorder sends stale peer statuses: The introduced planner assigns the destination status to displaced peers, and the mutation loop submits every planned entry through workboard.cards.move. The existing store.move rereads the latest card but reapplies the supplied status; it cannot distinguish a position-only peer adjustment from an intentional status change. (extensions/workboard/browser/lib/workboard/card-state.ts:80, 31b24a138818)
  • Existing conflict-aware repair boundary: workboard.cards.update accepts expectedUpdatedAt and returns workboard_conflict with the current card. This existing endpoint can update a peer’s position without replaying its old status. (extensions/workboard/src/gateway-workspace-methods.ts:87, 31b24a138818)
  • Stored color rendering narrows: AppearanceGlyph accepts session palette names or hex colors only. Values such as teal, rgb(20, 100, 150), or var(--accent), previously passed through as CSS colors, now return an empty color and render with the muted fallback. (ui/src/components/appearance-picker.ts:94, 31b24a138818)
  • Shipped board-color contract: The latest supplied release, v2026.9.3, preserves trimmed board colors and applies them through a CSS custom property. Its board metadata normalizer accepts bounded strings rather than restricting colors to the session palette. (extensions/workboard/browser/lib/workboard/board-presentation.ts:31, 1391f7cd2d40)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: 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 a dense-reorder regression where a peer changes status before its queued update, and preserve the newer state.
  • Verify existing non-hex CSS board colors survive rendering and reload while explicit clearing still works.

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 (8 earlier review cycles)
  • reviewed 2026-09-10T05:38:32.695Z sha f613c2f66b9e2f5c1a8d959fd8a28644bc2dbf26 :: blocked before merge. :: [P1] Restore the assignment helper import used by card creation | [P2] Read the board glyph through its new shadow root
  • reviewed 2026-09-10T06:04:30.352Z sha d40aff34412ca351d450728ac9ec5d51332bbd5b :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card
  • reviewed 2026-09-10T06:16:18.414Z sha 327eadf88cbf47a574307324c77ec05059586169 :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette
  • reviewed 2026-09-10T06:37:24.625Z sha 93d4150569bde180eb5b8b20000e37efa3c23dee :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette
  • reviewed 2026-09-10T07:04:44.377Z sha c676af9dc472a7bccbe3d8fe187d540c1098379e :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette
  • reviewed 2026-09-10T07:25:55.338Z sha 9d00bc4ad0711effd96c5b5914d682aff74614aa :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette
  • reviewed 2026-09-10T07:38:20.753Z sha c2bc0348b753285e93c578101fac2cc04b9aa943 :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette
  • reviewed 2026-09-10T07:56:37.652Z sha 31b24a1 :: blocked before merge. :: [P2] Preserve peer statuses when making room for a dropped card | [P2] Preserve valid stored board colors outside the session palette

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 10, 2026
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant