Repository navigation
refactor(ui): share Workboard selection and appearance controls - #144748
vyctorbrzezowski merged 8 commits into
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. |
34cae92 to
3527f03
Compare
|
Codex review: blocked before merge. Reviewed September 13, 2026, 3:47 PM ET / 19:47 UTC (Revision 17). ClawSweeper reviewWhat this changesThe PR exposes shared agent, selection, and appearance controls to browser plugins and updates session menus to reuse their styling and keyboard behavior. Merge readiness⛔ Blocked before merge - 1 item remains This PR remains useful: current main lacks the added shared controls, and the related merged fixes do not replace them. No actionable introduced defect was found. The previous compatibility concern is addressed by the explicitly accepted matching-version deployment contract. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI supplies reusable controls to native browser plugins such as Workboard. These controls consume agent identities and appearance values, render interactive elements, and return selections to the owning view. flowchart TD
A[Workboard views] --> B[Host component contract]
C[Agent roster and identities] --> B
B --> D[Shared selection controls]
B --> E[Shared appearance controls]
F[Session menus] --> E
D --> G[Selection callbacks]
E --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +408, Tests +235, Docs +3. Total +646 across 25 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one host-owned control implementation and ship adopting Workboard layers with the matching host under the documented coordinated package contract. Do we have a high-confidence way to reproduce the issue? Not applicable to the primary refactor: source establishes the duplicated presentation boundary, and no introduced bug was identified. Runtime tests were not executed in this read-only review. Is this the best way to solve the issue? Yes: adapting the existing host controls preserves a single implementation for selection, identity loading, and appearance rendering without adding competing plugin-owned behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 19d1e824ada8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
3527f03 to
659f5cf
Compare
659f5cf to
b0898c1
Compare
b0898c1 to
5be2663
Compare
d96baff to
f4f6972
Compare
f4f6972 to
d6615c2
Compare
d6615c2 to
043c4aa
Compare
043c4aa to
96ccfa9
Compare
…claw#144748) * refactor(ui): share agent and appearance controls * style(ui): apply the pinned formatter to shared controls * test(ui): keep shared control proof independent of Workboard details * refactor(workboard): defer adapters to their first consumers * fix(ui): hydrate shared avatars and apply appearance colors * fix(control-ui): isolate appearance colors by component * fix(ui): retain shared agent selection styles * test(ui): await appearance glyph import before assertions
What Problem This Solves
Workboard and session menus expose inconsistent agent and appearance controls. Appearance glyphs mounted in the same container can also overwrite one another’s colors.
Layer 2 of the eight-PR Workboard stack, split from #143728; based on
refactor/workboard-mock-lifecycle.Why This Change Was Made
Expose host-owned agent and appearance controls through the plugin component contract, with shared option states and keyboard/touch behavior. Refresh resolved agent identities, including agents absent from the roster, and use one private host-owned color resolver for palette, custom, and cleared colors. Resolve colors through the existing host component contract and apply each glyph’s color to its own element, preserving independent updates and selected tint. The host contract stays within the existing SDK surface budget.
User Impact
Operators use consistent controls across Workboard and session menus.
Evidence
96ccfa94e00b7e786cb246ccda48aa9add61da33; 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 independent glyph mounts and updates, preserved tint, color clearing, and SDK exports/surface. The bundled Workboard assets and required host components must ship together under the existing one-installation, one-version contract. A new Workboard bundle on an older host is unsupported; the published-release upgrade proof above covers the matching package after stable lifecycle reconciliation. Board appearance persistence and enclosing-form Enter behavior belong to editors (#144754).
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.