Repository navigation
refactor(workboard): refine card and board editors - #144754
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. |
22f1681 to
675504e
Compare
675504e to
e7a8937
Compare
e7a8937 to
a44d17e
Compare
8e6e09a to
8e490e5
Compare
8e490e5 to
65aecac
Compare
4a6e22b to
7da0e69
Compare
|
Codex review: blocked before merge. Reviewed September 13, 2026, 3:52 PM ET / 19:52 UTC (Revision 16). ClawSweeper reviewWhat this changesRefines 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 Review scores
Verification
How this fits togetherWorkboard 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +818, Tests +470, Docs +14. Total +1302 across 26 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
7da0e69 to
d4e7deb
Compare
d1ac383 to
9b4b7e3
Compare
9b4b7e3 to
c166ece
Compare
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
2cb77541526bc297e9b6e87316caa5983c27471e; stack baseac59d5e09eb468dc23cf95e447608b57e71b52af. The stack includes the upstream fixes in #147240 and #147293. All eight rebased trees match their expected merges with main.d67457dfpassed 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.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./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.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.openclaw/ci-gatepassed. All eight candidate heads have passing CI; preflight logs confirm that each actual checkout contains its expected head, mainac59d5e0, 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 bundle58771ec, 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
Product Operations on mobile
List layout: priority first, session and status together
Responsive and interaction stress cases
Group header disclosure
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
Card details on mobile
Session tab
New card with the Release template
Board appearance
Unsaved draft confirmation
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.