Skip to content

refactor(ui): port time labels and small controls to Solid - #169246

Merged
steipete merged 4 commits into
mainfrom
solid2/w-sweep-3
Oct 11, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/w-sweep-3

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Completes the remaining registered time labels and small controls in W-SWEEP-3 of the Control UI Solid migration.

User Impact

Preserves host tags, selectors, timing, selection, save status, keyboard focus, and one-time-secret dismissal behavior. The Lit classes are replaced by one Solid implementation per tag; cron pagination renders directly in its two Solid consumers.

Why This Change Was Made

The existing bridge and visibility timer own interop and lifecycle. Keyboard shortcuts remain lazy. Stateless Lit helpers with remaining Lit callers stay for the final sweep; browser and terminal panels were already Solid and keep their intentional terminal DOM islands.

Main's startup grouping is retained unchanged. The temporary chunk-group adjustment and full boot-manifest regeneration were discarded after main supplied the owning fix. No budget was raised by this PR.

Evidence

Proof Result
Focused component/page tests 257 tests across 10 files passed, serial single-worker runs
UI typecheck/build Testbox passed; pinned same-host base/head builds passed
Keyboard focus E2E Chromium Linux/Mac modifier cases passed; WebKit overlay outcomes passed
Notifications autosave E2E Reproduced Saved-timer regression, fixed, exact case passed
Visual parity All six synthetic pairs below are pixel-identical
Review Independent reviews clean; substantive ClawSweeper finding resolved
Exact-head CI Passed on c7a68fe; merged as ed684fc
Performance Strict metadata-pinned check passed; 8 startup requests unchanged

Metadata-pinned startup gzip measured 420,642 → 420,658 B (+16 B) against merge base a81bb54f094f0bb5df760b4fe7e100c791c757d1. Startup module membership is identical; the small difference is compressed references to changed lazy chunks, not an added eager import. This is a 16-byte caveat to the requested literal zero-growth target. Follow-up trimming experiments did not reduce initial code and were discarded. The strict repository gate passes.

Converted component production LOC: 1,011 → 1004, including extracted shortcut CSS. Domain owners are unchanged; no new dependencies. No changelog edit (release-owned).

CI first found nine stale Lit teardown assertions. The two consumer tests now await bridge disposal and assert actual card interval handles are cleared; 19/19 update-card tests and 148/148 people tests passed after reproducing the failures. A later exact E2E exposed same-status props refresh canceling the Saved timer. The effect now reads a status memo; its regression and the Notifications E2E failed before and passed after the fix. That lesson is recorded in the Solid playbook.

Focused test process wall times: elapsed 3.62s, vitals 3.92s, option card 3.43s, save indicator 2.95s, keyboard 5.20s, devices 6.85s, cron 6.34s, agents 5.97s; sidebar update/people 2.76s/42.11s. Testbox lease tbx_01m4nyccfwr4ac0gmmx1c3ax9v stopped after proof.

Before is left, after right; all data is synthetic.

Before (left) and after (right): elapsed and relative time, sparklines and option cards

Before (left) and after (right): sparkline hover

Before (left) and after (right): save states and cron pagination

Before (left) and after (right): keyboard shortcuts

Before (left) and after (right): synthetic one-time key

Before (left) and after (right): refused dismissal keeps synthetic key visible

@clawsweeper

clawsweeper Bot commented Oct 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces shared Lit time labels, sparklines, controls, and dialogs with Solid implementations and updates their consumers.

Example: A completed task took 125 seconds.

  • Before: The Lit elapsed-time element displays “2m 5s”.
  • After: The Solid elapsed-time element displays “2m 5s”.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused cutover and prior repairs look correct; confidence rests on component parity screenshots and browser harness coverage rather than a supplied shipped-entry-point demonstration.
Proof confidence 🦐 gold shrimp (3/6) The supplied MEMBER association exempts this PR from the contributor proof gate; inspected synthetic browser screenshots support visual parity, while interaction coverage comes from reported Chromium/WebKit tests and passing reviewed-head browser CI.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Shared Control UI controls still retain Lit implementations during the approved Solid migration.
Reason: Maintainer direction supports this bounded migration, and the patch preserves existing controls, permissions, and domain ownership.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR advances the approved Solid migration, and both previous findings are resolved in source; no remaining actionable code defect was found.

Priority: P3
Reviewed head: c7a68fefd9316e5b570b3ea6ae50efb5889adea2

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The latest timer regression has no supplied base-fail/head-pass replay, although reviewed-head browser E2E passes.
Agent review details

How this fits together

Shared Control UI components receive timestamps, metric samples, settings status, and callbacks from existing owners and produce labels, controls, and modal outcomes.

flowchart LR
  A[Existing state owners] --> B[Component properties]
  B --> C[Solid bridge]
  C --> D[Solid components]
  E[Visibility timer] --> D
  D --> F[Control UI DOM]
  F --> G[Existing action owners]
Loading

Technical review

Best possible solution:

Complete this focused Solid cutover while retaining the existing state, polling, modal, and action owners.

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

This is a renderer migration; prior defect triggers were checked against the repaired source, and no target code or tests were executed during this review.

Is this the best way to solve the issue?

The existing bridge, visibility-aware polling, and modal host provide a coherent cutover without introducing competing domain owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Elapsed-time polling keeps the original intent (e857fba: Pause hidden-tab polling and avoid DOM updates when displayed duration text is unchanged.)
  • Relative notification ages keeps the original intent (318fc3c: Display recorded event ages with visible-page refresh and disconnect cleanup.)
  • Shared sparkline rendering keeps the original intent (b86bcb7: Share activity graphs between Connection settings and diagnostics.)
  • Option-card focus keeps the original intent (d6edf57: Preserve existing input focus when onboarding recommendations arrive.)
  • Settings save feedback keeps the original intent (d885f91: Show Saved briefly in the sidebar footer, then expose pending Apply changes without shifting page layout.)
  • Keyboard-shortcut modal handoff keeps the original intent (c5cddb2: Release shortcut help before New Session navigation focuses the composer.)
  • One-time secret outcomes keeps the original intent (7025da8: Keep issued secrets visible until acknowledgement and allow ordinary dismissal when no secret was issued.)
  • Shared cron pagination keeps the original intent (c75e435: Make jobs beyond the first page reachable through one shared pagination renderer.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Approved migration and remaining main implementation: The migration tracker Control UI: migrate from Lit + Web Awesome to Solid 2 #168114 and scoped UI policy support this cutover; fetched main still contains the replaced Lit components. (ui/AGENTS.md:5, 8fc091038f24)
  • Previous timer finding resolved: The status effect now consumes an equality-gated memo, and the existing regression replaces saved props before verifying that Saved expires and Apply changes appears. (ui/src/components/settings-save-indicator.tsx:56, c7a68fefd931)
  • Imported reactive contract: The changed components import Solid signals and effects. Inspected source gives computed nodes an equality comparator, while effect nodes disable equality, supporting the memo boundary used by the timer repair. (packages/signals/src/core/core.ts:1038, 5efaf260becb)
  • Previous teardown finding resolved: Consumer tests await the bridge disconnect boundary and verify interval release instead of expecting disposed Solid DOM to retain its text. (ui/src/test-helpers/app-sidebar-cases/presence.ts:472, c7a68fefd931)
  • Visual evidence inspected: Four prepared before/after pairs show matching time labels, option cards, sparkline hover, save states, pagination, and shortcut help. The two secret-dialog images were absent from the prepared artifacts, and direct retrieval returned Cache miss. (c7a68fefd931)
  • Reviewed-head checks: Both browser E2E shards and control-ui-performance passed on the reviewed head; other checks remained in progress. Latest REST mergeability was unknown, so no conflict is asserted. (c7a68fefd931)

Likely related people:

  • Peter Steinberger: Raw commit e32292e adds ui/src/components/option-card.test.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e32292e534ec; files: ui/src/components/option-card.test.ts)
  • Vincent Koc: Raw commit 318fc3c adds ui/src/components/sidebar-notification-card.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 318fc3c41f71; files: ui/src/components/sidebar-notification-card.ts)
  • Vyctor H. Brzezowski: Raw commit 7025da8 adds ui/src/pages/devices/devices-page.ts:424 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 7025da83e830; files: ui/src/pages/devices/devices-page.ts)

PR surface

Source -16, Tests +22, Docs +1. Total +7 across 46 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 36 1040 1056 -16
Tests 9 73 51 +22
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 46 1114 1107 +7

Labels

Label changes:

  • add P3: This is a behavior-preserving renderer refactor with no remaining demonstrated user-facing regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a behavior-preserving renderer refactor with no remaining demonstrated user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-11T17:42:02.134Z sha 3acb0b8 :: needs changes before merge. :: none
  • reviewed 2026-10-11T17:49:24.632Z sha 3acb0b8 :: needs changes before merge. :: none
  • reviewed 2026-10-11T18:10:37.774Z sha e098af4 :: needs changes before merge. :: [P2] Adapt sidebar teardown tests to the Solid bridge lifecycle
  • reviewed 2026-10-11T18:47:27.319Z sha 6f9c138 :: needs changes before merge. :: [P1] Preserve the saved timeout when props change without a status change

Reviewed October 11, 2026, 3:53 PM ET / 19:53 UTC (Revision 5).

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@steipete
steipete enabled auto-merge (squash) October 11, 2026 19:57
@steipete
steipete merged commit ed684fc into main Oct 11, 2026
94 checks passed
@steipete
steipete deleted the solid2/w-sweep-3 branch October 11, 2026 19:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…169246)

* refactor(ui): port time labels and small controls to Solid

* test(ui): await Solid time-label teardown in sidebar tests
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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