Skip to content

refactor(ui): render connection commands with Solid - #172376

Merged
steipete merged 2 commits into
mainfrom
solid2/rest-connect
Oct 14, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/rest-connect

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The machine-connection dialog still renders its copyable command through a Lit template, while the login gate maintains a near-identical private renderer.

User Impact

The command keeps the same appearance, keyboard access, and copy action. No user action is required.

Why This Change Was Made

Move the command renderer to Solid and use it directly from both the machine-connection dialog and login gate. Delete the duplicate private login implementation. The remaining chat caller keeps a small adapter to that same renderer until its own port. The owned tooltip host preserves its existing lazy presentation load, and the existing copy-button owner retains clipboard feedback and cancellation.

Production code decreases from 751 to 718 lines (−33). Six focused interaction cases add 75 test lines (751 → 793 total lines across the affected production/test files; six logical files including the assertion baseline). The old renderer and its two assertion exceptions are removed.

Evidence

Check Result
Codemod dry run Completed on the original command renderer; its child-rendering marker is resolved with the owned CopyButton.
Focused command tests Six passed once with one worker: wrapper click, Enter, Space, copy icon, changed command, unrelated key.
UI typecheck Passed after correcting the installed Solid JSX attribute to tabindex; no other diagnostics.
Targeted lint / formatting Original four TypeScript paths passed; the added login cutover passed fresh targeted lint and formatting. Diff check passed.
Independent Codex review Complete. One P2 claim about a click-stopping dialog boundary was rejected after inspecting actual modal, tooltip, and caller source: the claimed boundary does not exist on either production path.
Production Knip Final exact 18e99d1fb813fc00237f77fbf4d70dfbfbc98470 passed in 844.44 seconds, with no findings or new ignores.
Same-machine production build / strict performance Both passed with zero strict violations: 349,339 → 349,334 B startup JavaScript gzip (−5 B), unchanged 1,061,947 raw bytes, 8 JavaScript requests, and 1 CSS request. CSS remains 46,374 B gzip.
Broad CI Exact final 18e99d1fb813fc00237f77fbf4d70dfbfbc98470 run 38628391897 completed successfully: 46 jobs passed and 24 unrelated jobs were skipped. Passing jobs include the aggregate gate, all 3 UI unit shards, all 9 UI E2E shards, both real-Gateway shards, performance, types, lint, and security.

The login cutover received a fresh scoped-clean P0–P2 review, passing UI typecheck, targeted lint, formatting, and final production build. The shared renderer is unchanged, so the six focused tests and inspected component captures are reused. Dynamic login commands are guarded by existing Show branches, preserving all actual nonempty command callers. The canonical Users fixture fixes 46ed68fb425d and be2dcab11b80 have since landed on main; old CI results below are not bound to the replacement head.

Build measurements compare merge base 1a86e3e08fe82952dfd7a03372094655dda5d883 with final head 18e99d1fb813fc00237f77fbf4d70dfbfbc98470.

Before/after proof uses synthetic inline and hero commands, real renderer/styles, and the same 1100 × 780 viewport. This is component appearance proof; it is not a whole-route E2E run. Both captures were inspected and contain only synthetic data. The PNG files are byte-identical. The images are attached below.

Before: synthetic inline and hero connection commands

After: Solid connection commands with the same appearance

Historical inherited CI failures (old head 3693)

The 12 failing test names and assertions match scheduled main run 38607531526: the rail test expects Users to collapse on its second click, and 11 people-card cases seek the former Online accessible name. Canonical change 4fa4e7e (#172243) intentionally renamed the rail to Users and keeps it open on a second click. Failing tests, rail renderer, and English catalog are byte-identical between that scheduled main, tested main parent, and actual CI merge. The automatic table used older completed main run 38599255839, so it called these new; the newer direct comparison establishes inheritance. No failed CI is described as passing.

Latest scheduled comparison: run 38607531526, failed jobs rail and people. The actual tested merge is a3f9a5798c0ccb50d2effe71399238d006ebded7, with main parent 49563b550c440154f50d9492c271a552132e7302 and the reviewed PR head.

  • ui/src/e2e/sidebar-rail-toggles.capture.e2e.test.ts > Control UI session management mocked Gateway E2E > selects only visible rail panels and restores them without a separate expand button
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > keeps a same-ID peer visible and typing enabled for profile self: false
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > keeps a same-ID peer visible and typing enabled for profile self: true
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > keeps colliding people, watches, owner exclusion and open cards separate through updates
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > labels shared owner presence separately from a personal sign-in
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on Enter
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on click
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on tap
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on tap with loaded preview
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens focused details inside a narrow touch viewport and follows the session's saved face
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens person details on hover, preserves focus on updates, and follows the card activity link
  • ui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > separates connection duration from active, idle, and unavailable activity

@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-14T20:03:19.765686Z 18e99d1 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3693e245b8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@steipete
steipete merged commit 62957e9 into main Oct 14, 2026
130 checks passed
@steipete
steipete deleted the solid2/rest-connect branch October 14, 2026 21:35
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
* refactor(ui): render connection commands with Solid

* refactor(ui): share login connection command rendering
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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant