Repository navigation
refactor(ui): render connection commands with Solid - #172376
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
Merged via squash.
|
* refactor(ui): render connection commands with Solid * refactor(ui): share login connection command rendering
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
tabindex; no other diagnostics.18e99d1fb813fc00237f77fbf4d70dfbfbc98470passed in 844.44 seconds, with no findings or new ignores.18e99d1fb813fc00237f77fbf4d70dfbfbc98470run 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
Showbranches, preserving all actual nonempty command callers. The canonical Users fixture fixes46ed68fb425dandbe2dcab11b80have since landed on main; old CI results below are not bound to the replacement head.Build measurements compare merge base
1a86e3e08fe82952dfd7a03372094655dda5d883with final head18e99d1fb813fc00237f77fbf4d70dfbfbc98470.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.
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 parent49563b550c440154f50d9492c271a552132e7302and 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 buttonui/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: falseui/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: trueui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > keeps colliding people, watches, owner exclusion and open cards separate through updatesui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > labels shared owner presence separately from a personal sign-inui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on Enterui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on clickui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on tapui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > opens a person's Activity page directly on tap with loaded previewui/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 faceui/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 linkui/src/e2e/people-activity-card.e2e.test.ts > Control UI mocked Gateway E2E > separates connection duration from active, idle, and unavailable activity