Skip to content

refactor(workboard): refine card and board editors - #144754

Merged
vyctorbrzezowski merged 12 commits into
refactor/workboard-listfrom
refactor/workboard-editors
Sep 13, 2026
Merged

vyctorbrzezowski merged 12 commits into
refactor/workboard-listfrom
refactor/workboard-editors

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Editor drafts can appear dirty before any edit, and custom-emoji Enter can submit the enclosing form or apply an icon while confirming IME composition. Appearance resets also need an explicit meaning that does not reinterpret older clients’ empty values.

Layer 6 of the eight-PR Workboard stack, split from #143728; based on refactor/workboard-list.

Why This Change Was Made

Initialize column status before the draft snapshot and preserve edits after save failures. Apply custom emoji on Enter without submitting the board form or treating IME confirmation as an apply action, including Safari events reported with key code 229. Send explicit clearAppearance fields for saved resets; omitted, null, or empty icon/color inputs retain their existing preservation behavior. Keep the serialized mock consistent with the Gateway clearing contract.

User Impact

Untouched new-card drafts close directly, failed saves remain retryable, and Reset to default clears only the requested appearance when saved. Cancelling preserves the saved board.

Evidence

  • Candidate 2cb77541526bc297e9b6e87316caa5983c27471e; stack base ac59d5e09eb468dc23cf95e447608b57e71b52af. The stack includes the upstream fixes in #147240 and #147293. All eight rebased trees match their expected merges with main.
  • Final AWS integration validation on stack top d67457df passed 524 tests, four production/test type checks, and all eight canonical Workboard asset builds. Tests cover QA routing (1 selected case), QA run status (37), UI units (389), isolated ChatPane lifecycle (75), modal browser behavior (9), and native plugin UI/titlebar flows (13). All generated manifests match the committed assets. Original assertions, timeouts, and browser harness were preserved.
  • Earlier AWS integration validation passed 570 tests on top 8de11a6, covering store/Gateway deletion, rollback, concurrent recreation, stale revisions, cleanup receipts, menus, views, and bulk actions. It also passed four type checks, all eight asset builds, and the CI build. The later rebase changed no Workboard or Workboard-contract source; the final run above covers the shared UI integration changes. Test totals overlap and are not additive.
  • All eight layer diffs and subsequent repairs received Codex review. The final shared-UI review raised one P2 about main's intentionally removed floating customization control (#147245). Source and documentation explicitly place recovery at /plugins, which always renders the built-in workspace; the native plugin UI tests exercise that route. This is unchanged by the Workboard stack and was rejected as a stack blocker. The original finding is retained in the review record. ClawSweeper has also reviewed all eight current heads and reported no code findings; no formal changes-requested review or unresolved review thread remains.
  • The base layer also fixes a CI prerequisite selector: the native-grep session projection test now requests ripgrep installation. Focused AWS validation proved the real workflow selector changes from false to true for that case, preserved existing siblings, passed three workflow guard tests, and received a clean scoped review. Full CI remains the required integration gate.
  • Matching-package and stable 2026.9.4 upgrade proof passed on earlier top 73482ef: host/Workboard integration, appearance Save/Reset, deletion conflicts, and settled card/event/metadata/session identity after package replacement, Doctor, and restart. These are earlier checks; they do not establish active-run migration or updater orchestration.
  • Exact-head GitHub CI and the required openclaw/ci-gate passed. All eight candidate heads have passing CI; preflight logs confirm that each actual checkout contains its expected head, main ac59d5e0, and the fix(ci): tooling shard fails on QA Profile Evidence routing after #143968 #147293 correction. Native merge readiness is verified again immediately before landing.

Risk and coverage

Coverage includes saved resets and reopening, invalid requests without writes, and custom-emoji Enter, including Safari key code 229 with isComposing false. Fixture typechecking and affected view/store tests passed. The plugin editor, shared picker, and Gateway/store changes must ship together. This follows the existing one-installation, one-version contract; using the new editor bundle with an older host or Gateway is unsupported.

Maintainer disposition of the latest ClawSweeper merge-risk notes: retain the documented matched-version installation contract; the new editor and Gateway reset API ship together. The reviewer's sandbox could not open the Crabbox portal. The retained run outputs were inspected separately: on 73482ef, both package runs completed successfully, explicit Reset persisted through Save and a real Gateway restart, and upgrading from 2026.9.4 preserved settled card and session identity. This resolves the evidence-access question for this review without claiming a rerun on the current head or support for mixed-version deployment.

Visual stress evidence

Shared Workboard design preview for all eight PRs, captured September 13 in the internal browser using Absolutely (dark) and synthetic Workboard fixtures. Desktop: 1440 × 1000; mobile: 390 × 844, plus a 320 px boundary check. Every image was inspected before upload.

Before: main bundle 5a2677c. After: combined stack bundle 58771ec, loaded into the same existing mock host using browser resource overrides. These are inspected captures of the design revision, shared across all eight PRs. Later repairs changed lifecycle/recovery behavior without changing Workboard CSS; the final rebase preserved Workboard sources. The earlier captures do not claim to show main's subsequent shared-modal or native-titlebar changes, which have separate functional coverage above. A repeat capture was unavailable because the browser controller rejected the session authentication method.

Desktop board

Before After
Desktop board before Desktop board after

Product Operations on mobile

Before After
Product Operations on mobile before Product Operations on mobile after

List layout: priority first, session and status together

Absolutely desktop list with priority first and grouped session status
Responsive and interaction stress cases
Mobile list 320 px: short New label
Mobile list 320 pixel layout with New label
Filters Multiple selected statuses
Mobile filters with Agent and layout controls Ready and Running selected with readable status names

Group header disclosure

Todo group collapsed by its header
Template editor Bulk edit by keyboard Applied result
Release template editor with visible Create button Four cards with High priority selected by keyboard Applied to four of four cards and selection cleared

Exercised: status filtering, list/column switching, header collapse, long-title and label wrapping, template fill/discard, selection of four cards, keyboard priority choice, and bulk application with the visible “Applied to 4 of 4 cards” result. The New label was also checked at 401 px, where New card remains visible.

Editors, board appearance, and card details

Card details on desktop

Before After
Before: long card and session in one drawer After: card overview separated from Session

Card details on mobile

Before After
Before: mobile card with dense session details After: mobile overview with long title and multilingual labels

Session tab

Desktop Mobile
Desktop Session tab with recent messages and completed status Mobile Session tab with recent messages and completed status

New card with the Release template

Before After
Before: desktop Release template form After: compact desktop Release template editor

Board appearance

Before: board without an editor After: appearance editor
Before: Product Operations board without an Edit board entry After: board appearance editor with blue rocket preview

Unsaved draft confirmation

After: unsaved Release draft with Keep editing and Discard actions

The same synthetic Release template was used before and after. Before, Cancel closed the populated form immediately; after, it opened this confirmation. Keep editing retained the populated fields, and Discard closed the draft. The old bundle has no board appearance editor; the comparison above shows its board rather than inventing a prior dialog. In the new editor, changing the color and icon updated the preview, and Cancel preserved the saved board. The desktop and mobile Session tabs were opened from the same rich card.

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

clawsweeper Bot commented Sep 11, 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.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from 22f1681 to 675504e Compare September 11, 2026 07:04
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from 675504e to e7a8937 Compare September 11, 2026 07:06
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from e7a8937 to a44d17e Compare September 11, 2026 07:17
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch 2 times, most recently from 8e6e09a to 8e490e5 Compare September 11, 2026 07:26
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from 8e490e5 to 65aecac Compare September 11, 2026 07:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch 2 times, most recently from 4a6e22b to 7da0e69 Compare September 11, 2026 07:49
@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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 3:52 PM ET / 19:52 UTC (Revision 16).

ClawSweeper review

What this changes

Refines Workboard card editors, adds unsaved-draft confirmation and board appearance editing, and supports explicit appearance resets while preserving older clients’ update behavior.

Merge readiness

⛔ Blocked before merge - 2 items remain

This PR remains useful and distinct from the related merged fixes. The reviewed changes have no concrete blocking correctness finding, and the maintainer-authored stack should remain open.

Priority: P2
Reviewed head: 2cb77541526bc297e9b6e87316caa5983c27471e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent editor improvement with inspected visual evidence, focused regression coverage, and preserved legacy update behavior.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots demonstrate the changed card editor, board appearance controls, and discard confirmation in the disclosed synthetic setup. Persistence and keyboard behavior have supplemental source/test coverage and reported package checks; this member-authored PR does not require additional external-contributor runtime proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected browser screenshots demonstrate the changed card editor, board appearance controls, and discard confirmation in the disclosed synthetic setup. Persistence and keyboard behavior have supplemental source/test coverage and reported package checks; this member-authored PR does not require additional external-contributor runtime proof.
Evidence reviewed 10 items Pinned introduction and clean checkout: Reviewed the merge-base-to-head changes at the supplied original PR head. The checkout remained clean and diff whitespace checking passed. The supplied test merge has mismatched parents and was not used to infer removal of current-main behavior.
Current main still lacks draft confirmation: Current main dismisses card drafts directly after the save-busy check; the PR adds dirty-draft confirmation and initializes column status before recording the initial draft.
Explicit reset preserves legacy updates: The normalizer validates clearAppearance before persistence, clears only named appearance fields, and preserves existing values for omitted, null, or empty legacy inputs. Added store tests cover malformed requests without writes and reopening SQLite after explicit clears.
Findings None None.
Security None None.

How this fits together

Workboard is OpenClaw’s plugin for organizing agent work into cards and boards. Its browser editors send changes through Gateway methods to the plugin’s canonical store, then refresh the displayed board.

flowchart LR
  A[Operator edits] --> B[Card and board drafts]
  B --> C{Save or cancel}
  C -->|Cancel| D[Preserve saved board]
  C -->|Save| E[Gateway write method]
  E --> F[Validate and persist]
  F --> G[Refresh Workboard]
Loading

Before merge

  • Resolve merge risk (P1) - Separately deploying the new editor against an older Gateway can leave appearance resets ineffective; matched-version packaging is the documented supported contract.
  • Resolve merge risk (P1) - The reported package and upgrade runs could not be independently inspected because the sandbox blocks the Crabbox portal.
Agent review details

Security

None.

PR surface

Source +818, Tests +470, Docs +14. Total +1302 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 16 1218 400 +818
Tests 9 515 45 +470
Docs 1 14 0 +14
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 26 1747 445 +1302

Review metrics

Metric Value Why it matters
Reset API 1 optional argument, 2 clearable fields Explicit clearing adds a bounded operation without reinterpreting existing clients’ empty appearance values.

Merge-risk options

Maintainer options:

  1. Retain matched-version deployment (recommended)
    Accept the documented older-Gateway limitation and ship the editor and reset API together under the existing one-installation contract.

Technical review

Best possible solution:

Ship the editor, host controls, and explicit reset handling together, retaining the existing store owner and legacy appearance-update semantics.

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

Not applicable to the overall editor enhancement; focused source and tests establish the reset and keyboard scenarios, but this review did not execute a failing runtime reproduction.

Is this the best way to solve the issue?

Yes: the patch reuses host-owned controls and the existing persistence path, with explicit clearing that avoids changing legacy update semantics.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The new reset argument requires coordinated editor and Gateway deployment, as explicitly documented in the PR.

Label justifications:

  • P2: This is a bounded improvement to Workboard editing and draft recovery.
  • merge-risk: 🚨 compatibility: The new reset argument requires coordinated editor and Gateway deployment, as explicitly documented in the PR.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected browser screenshots demonstrate the changed card editor, board appearance controls, and discard confirmation in the disclosed synthetic setup. Persistence and keyboard behavior have supplemental source/test coverage and reported package checks; this member-authored PR does not require additional external-contributor runtime proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected browser screenshots demonstrate the changed card editor, board appearance controls, and discard confirmation in the disclosed synthetic setup. Persistence and keyboard behavior have supplemental source/test coverage and reported package checks; this member-authored PR does not require additional external-contributor runtime proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected browser screenshots demonstrate the changed card editor, board appearance controls, and discard confirmation in the disclosed synthetic setup. Persistence and keyboard behavior have supplemental source/test coverage and reported package checks; this member-authored PR does not require additional external-contributor runtime proof.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the merge-base-to-head changes at the supplied original PR head. The checkout remained clean and diff whitespace checking passed. The supplied test merge has mismatched parents and was not used to infer removal of current-main behavior. (2cb77541526b)
  • Current main still lacks draft confirmation: Current main dismisses card drafts directly after the save-busy check; the PR adds dirty-draft confirmation and initializes column status before recording the initial draft. (extensions/workboard/browser/pages/workboard/view-card-modal.ts, 5cd8e290ab6b)
  • Explicit reset preserves legacy updates: The normalizer validates clearAppearance before persistence, clears only named appearance fields, and preserves existing values for omitted, null, or empty legacy inputs. Added store tests cover malformed requests without writes and reopening SQLite after explicit clears. (extensions/workboard/src/store-normalizers.ts:99, 2cb77541526b)
  • Latest release does not implement explicit clearing: The supplied v2026.9.4 release commit normalizes icon and color through fallback-preserving string normalization without clearAppearance handling; this is not already-shipped reset behavior. (extensions/workboard/src/store-normalizers.ts:98, 3a9d69db306c)
  • Existing write boundary retained: The board editor checks current connection/write capability before sending its request. The existing Gateway method retains operator.write scope and workspace mutation checks; appearance values do not introduce transferable authority. (extensions/workboard/src/gateway-workspace-methods.ts:149, 2cb77541526b)
  • Documented deployment contract: The PR body explicitly couples the editor, shared picker, and Gateway/store changes. The UI policy defines one installation and one version, while the new Workboard documentation explains that older Gateways do not implement explicit resets. (ui/AGENTS.md:60, 2cb77541526b)

Likely related people:

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

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 (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-13T02:02:54.140Z sha 8b7cbde :: blocked before merge. :: none
  • reviewed 2026-09-13T04:49:53.777Z sha 7c2e2d74897dd62c4b50190b93ff02c2d632b42d :: blocked before merge. :: none
  • reviewed 2026-09-13T05:21:42.182Z sha d1ac383e3bf00934fa9ac14dab6b9102cac7599c :: blocked before merge. :: none
  • reviewed 2026-09-13T05:56:38.971Z sha 9b4b7e3 :: blocked before merge. :: none
  • reviewed 2026-09-13T18:03:22.926Z sha 9b4b7e3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T18:32:05.018Z sha c166ece :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T19:05:09.448Z sha c166ece :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T19:29:41.522Z sha b1566d1de33b38ef569d5ff9cd1ea648a28e6c1d :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from 7da0e69 to d4e7deb Compare September 11, 2026 08:00
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from d1ac383 to 9b4b7e3 Compare September 13, 2026 05:51
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 13, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the refactor/workboard-editors branch from 9b4b7e3 to c166ece Compare September 13, 2026 18:12
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. P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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