Skip to content

refactor(ui): render approval rows and countdowns directly in Solid - #172008

Merged
steipete merged 6 commits into
mainfrom
solid2/w-polish-approval-row
Oct 14, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-polish-approval-row

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Sidebar approval rows and approval countdowns still created separate custom-element bridge roots even though every production caller renders with Solid.

User Impact

No intended user-visible change. Existing host tags, selectors, timer accessibility attributes, expiry behavior, modal-description updates, and lazy loading remain intact.

Why This Change Was Made

Render the sidebar row and countdown directly under their Solid callers, remove the nested props wrapper, and let the existing Solid owner dispose their clocks. Preserve the main approval-card bridge and the outer dialog's imperative show()/dialogOpen API.

The chat-footer fixture installs its clock mock before rendering. Direct Solid rendering samples time synchronously; the retired custom-element countdown waited for a microtask. This preserves the existing expiry assertion without depending on that retired scheduling behavior.

Production LOC across the three production files: 1,174 → 1,163 (−11). Test LOC across the three coupled files: 830 → 826 (−4).

Evidence

Signed head c6c563407f362a75e56e026c36c172a2ffe411dd merges pinned main 7367b5b07f109fd56f7bf070688e40b5c295e354 to incorporate the shared jsdom tracker repair 5e4a1bed3a86187d42997946f62d5c2518be89d5. There was no active merge request to cancel. The source change remains exactly six files, with every reviewed file and the full authored patch byte-identical to independently reviewed f7610dc. Production LOC remains 1,174 → 1,163 (−11) and test LOC 830 → 826 (−4).

The direct approval owners/imports, rendering and mounting helpers, projections, translations, Solid compiler/configuration, and dependency inputs are unchanged. The separately inspected gateway-page-controller update changes only its host/controller types. The existing owned frozen install and source-only review are reusable; broad runtime proof remains tied to the new head.

Check Result
Current full CI Run 38646016884 completed for exact head c6c5634 with ci:full. All three UI unit shards, all nine browser shards, Gateway shard 2, type/lint and strict performance passed. Gateway shard 1 failed the managed-image ordering case, so the aggregate gate is failed. The sole case and decode signature match newest scheduled main run 38648053570. Native inherited-failure admission is being prepared; failed CI is not relabeled green.
Clean-checkout UI typecheck Passed once on prior clean head 8499012 in 107 seconds; reused after inspection of unchanged authored and determining UI/compiler inputs.
Production Knip Passed once on final head c6c5634, tree 93662a34e22043f4480b0b7047da9e88e3898c06: exit 0 in 15m22s. All 10 captured scan/wrapper PIDs are absent; head/tree remained unchanged and the checkout is clean. Heavy slot released. Existing frozen dependencies were reused; no repeated install or new lease.
Independent Codex review Corrected-candidate source review was scoped-clean through P2, with no findings. Current six-file/full-patch equivalence was verified before the signed merge commit. Full-index binary patch SHA-256: 416f36987e01fb3be1ac6acb5b7398d86ca68a2b518f90a9cbf068bcba5bf80a.
Formatting and whitespace Authored file bytes remain identical to the formatted reviewed source; scoped git diff --check passed.
Approval card, dialog, and chat footer Passed on current head: 8 approval-card, 15 approval-dialog, and 2 chat-footer cases (25 total), with each module recorded as passed. The repaired UI shard 3 passed all 608 files / 7,185 tests (2 skipped), including the previously failing usage-retention assertion; no teardown failure. The earlier local approval-card attempt was inconclusive under filesystem contention and remains recorded as such.
Build and strict performance Current-head check passed, job 116134073571 in run 38646016884. The same runner built tested merge ddc255c3fa06790b95c76528cd2f02dc0285207d and base b00ea8bab3529ccc7120795d06637bec64e21bbb: startup JS 349,476 B gzip / 8 requests; CSS 45,993 B gzip / 1 request. Chat boot 1,763,357 → 1,763,409 B (+52 B); new-session boot 1,349,668 → 1,349,709 B (+41 B). Request counts and CSS bytes are unchanged; no new eager import or lazy-boundary change. No separate base startup-JS total is printed. No extra local build.
Visual contract Existing host DOM and styles are preserved. No visible markup change or extra local build/capture battery under the polish wave's lighter proof rule. Existing synthetic CI failure captures were inspected locally.
Native landing Prior mergeability timeout stopped before intent or dispatch. The failed head had no active merge request. Final-head Knip and source verification passed; fresh native review/preparation is running, followed by the authorized inherited-only admin route with exact-checkout and source evidence.

Current Gateway Failure

Managed image ordering through real chat.send and history > keeps headings, managed images and trailing prose ordered live and after reload without duplicates is the only failing case in real-Gateway shard 1 (116134073524). The supported classifier initially marked the job pre-existing by job name only; the exact-test comparison is now complete.

Newest scheduled main run 38648053570, job 116140126251, at f62dd8e0c29fc8acd3836e604da97a280e4fa053 fails that same sole case with locator.evaluateAll: EncodingError: The source image cannot be decoded, at assertDecoded:325:64 and the initial live decode at 348:15, before ordering assertions. Both jobs report 1 failed / 19 passed files and 1 failed / 24 passed tests. Earlier scheduled main 38640790586 has the same failure.

The current failed job's retained log records checkout ddc255c3fa06790b95c76528cd2f02dc0285207d, whose ordered parents are baseline b00ea8bab3529ccc7120795d06637bec64e21bbb and exact PR head c6c5634. Its tree reconstructs exactly from those parents, and its actual baseline-to-merge diff is only the six authored files. All 27 inspected test/media input files or trees are identical between that baseline and tested merge, and also match earlier failing main eaa6938. Newest main differs within those inputs only in an unrelated models-list annotation and unit-test expectations; its image test, rendering/media owners, helpers, workflow and dependencies are unchanged.

All 64 current-attempt jobs are terminal; only Gateway shard 1 and the downstream aggregate failed. Security passed independently. This evidence qualifies the scoped, native inherited-failure route; CI remains failed and no product, review or security gate is waived.

Investigated CI Failure and Repair

Run 38640069953 on previous head 561bcbb6 passed all nine browser E2E shards, both real-Gateway shards, both other UI unit shards, type/lint, and strict performance. UI unit shard 3 failed in 29 suite teardowns with an invalid native EventTarget receiver at test/jsdom-resources.ts:102. Its one failing assertion was UsagePage detail requests > releases a loaded overview when its Gateway identity is replaced, where the disposed overview payload remained reachable. All 25 directly changed tests passed.

The shared tracker used mutable global window during cleanup and retained document-listener callbacks after their owner explicitly removed them. The landed repair captures the original window, forgets explicitly removed prototype and window registrations, and retires a snapshot. The repair owner reproduced both mechanisms on the exact CI base and passed 55 focused Bun tests with unchanged assertions. That owner proof explains the integration; this PR's new CI still supplies final-head evidence.

The latest scheduled main comparison had 13 matching failure identities and 17 PR-only identities. A shared exception signature was insufficient for the campaign's same-test rule, so no inherited-failure/admin waiver was used. The new head includes the repair through an ordinary main merge, without a duplicate fix, rebase, or rerun-for-green.

Earlier Uncertainty

The earlier widget-sandbox failure on 65e5652 remains unattributed: collapse timed out in the trusted-pointer helper after expansion. Subsequent complete browser passes do not establish a causal repair; the integrated widget change supplied diagnostics only. The exact-base diagnostic attempt reached its allocation limit without running a test. The local approval-card attempt likewise produced no assertion result before its authorized drain. These historical conditions are retained without being relabeled passes. All prior diagnostic leases are stopped and settled; this refresh uses local Knip and PR CI.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 14, 2026
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T22:15:23.188508Z c6c5634 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Pin the fixture clock before synchronous Solid rendering samples it. This preserves the existing expiry assertion after removing the deferred countdown bridge.
Merge origin/main at 2ab4a04 to refresh persistent UNKNOWN mergeability. The six authored files remain byte-identical to the reviewed f7610dc candidate. Production LOC remains 1,174 to 1,163.
@steipete
steipete merged commit cc1b001 into main Oct 14, 2026
119 of 122 checks passed
@steipete
steipete deleted the solid2/w-polish-approval-row branch October 14, 2026 23:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…penclaw#172008)

* refactor(ui): render approval rows and countdowns directly in Solid

* test(ui): set approval clock before rendering footer

Pin the fixture clock before synchronous Solid rendering samples it. This preserves the existing expiry assertion after removing the deferred countdown bridge.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant