You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(machines): show a stage bar while adding a PC over SSH - #4811
Adding a PC over SSH (sidebar → Add PC, the MachineDialog) showed only a line of text while it
connected, checked, installed and started the PC; a bar appeared only while a bundle download
reported byte progress. Now every wait in that dialog shows a stage bar:
Setup job: the stage's own words, "Step n of 4" beside them, and a thin bar filled halfway into
that stage (connect → check → install → start). While a bundle travels, the bar stays on the
install stage and the transfer's own words and bytes are told under it (it used to swap in a
second "Step 1 of 4" transfer bar). A failed, cancelled or connected setup, a herdr choice, the
Windows sign-in wait and an ssh password or fingerprint prompt show no bar.
Install over SSH ("Install Ovis there"): the same over its five stages, named in the reader's
language, with the server's own words under the bar.
The account add after an SSH connection ("Adding it to your account…"): a short sliding bar.
The bar and its step line move into one shared component, ProgressBar.tsx (ProgressBar, ProgressLine, StageProgress), which the sidebar's bridge-update progress and the Settings
update progress now use as well; their markup and class names are unchanged, the CSS moved from Machines.css to ProgressBar.css. The step count no longer wraps on a phone.
No new buttons, no new rows: the bar sits inside the existing progress card. The QR/code and
account add sheets already have their own step bars and are unchanged. The "Add this PC to my
account" wait in Settings (up to 30 minutes, waiting on a person) gets no bar: an endless sliding
animation there is what src/motion.test.ts keeps out.
Design reference: Zed's SSH remote connection modal names the stage it is in while it connects and
sets up the server; this adds a stage count and a bar to the same idea, reusing the bridge-update
bar Ovis already draws.
Before/after captures were reviewed by the maintainer privately.
(tailnet only).
The maintainer saw the before/after page and approved the look.
Reviews
Codex (gpt-6.2-sol-fast, xhigh) and an omo gate review on the first commit. Fixed in the second
commit: the transfer bar replacing the stage bar (Codex MEDIUM, gate HIGH), the bar during a
password prompt, a full bar while the last stage still runs, English install stage words beside
a localized count (gate MEDIUM), and the browser regression's 750 ms race (gate MEDIUM: the
failure is now answered only after the installing bar was seen). Kept as is: the fingerprint
prompt shows its question without a bar, like the password prompt.
Validation
bun run check fast (TMPDIR set): passed.
bun test src/components/MachineDialog.progress.test.tsx (new: the bar follows connecting →
checking → installing → a bundle download → starting, none at a password prompt or once connected), plus the existing MachineDialog,
MachineSidebar, motion, conventions and i18n tests.
bun scripts/machine-dialog-regression.ts (browser, 1280 and 390): passed; it now checks the
installing stage's bar ("4단계 중 3") and that the failure shows none.
Skipped locally: scripts/update-notice-regression.ts (via ui-contexts-checks; markup unchanged),
left to CI.
The Add PC dialog showed a line of text alone while a setup connected,
checked, installed and started the PC. Each stage now shows its words,
'Step n of 4' and a thin bar; an install over SSH shows its five stages,
and the account add after it a short sliding bar.
The bar and its step line move into one ProgressBar component, which the
sidebar's bridge-update progress and the Settings update progress use too.
…all stages
A bundle download replaced the setup's 'Step 3 of 4' bar with its own
transfer steps, so the count went back to step 1. The setup stage now stays
the bar and the transfer's words and bytes are told under it. No bar shows
while ssh asks for a password, a stage under way fills half its share, the
install over SSH names its stages in the reader's language with the server's
words under the bar, and the browser regression answers the failure only
after it saw the installing bar.
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
New Features
PC setup now shows a progress bar and current step while connecting, checking the environment, installing, and starting.
Setup and update progress can display transfer amounts and additional details.
Progress messages are available in Japanese, Korean, and Simplified Chinese.
Bug Fixes
Progress indicators are hidden when setup reaches an authentication challenge or a connected state, and when an older installation fails.
The change adds reusable progress components and uses them in existing update displays. MachineDialog now shows staged progress during PC setup and installation, with localized progress messages and tests for progress and non-progress states.
New components render determinate or indeterminate bars, progress details, and stage counts. Bridge update progress and update controls use these components.
PC setup stage progress src/components/MachineDialog.tsx, src/components/MachineDialog.progress.test.tsx, scripts/machine-dialog-regression.ts, src/lib/i18n/machines.*.ts, changelog.d/add-pc-progress-bar.md
MachineDialog maps setup and installation phases to progress stages. Translations cover installation messages. Tests check stage values, transfer details, and states without a progress bar.
This change adds stage-based progress bars to the Add PC dialog and moves the shared progress styling into reusable components. No merge-blocking issue was found. The change is limited to the UI and is easy to roll back, so any visual regression would be low impact.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a stage progress bar shown while adding a PC over SSH. It matches the changeset (MachineDialog stage bars, shared ProgressBar component). It is specific and concise, u…
Description check
The description follows the template. It has a Change section that describes the problem and resulting behavior, and it links the Zed design reference. It has a Validation section that lists the comma…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: a stage progress bar shown while adding a PC over SSH. It matches the changeset (MachineDialog stage bars, shared ProgressBar component). It is specific and concise, uses a conventional prefix, and a teammate scanning history would understand the primary change.
Full details: Description check
Explanation
The description follows the template. It has a Change section that describes the problem and resulting behavior, and it links the Zed design reference. It has a Validation section that lists the commands run (bun run check fast, the named bun test file, the browser regression) and the skipped check (update-notice-regression, left to CI). It does not link a maintainer-agreed issue, which the template asks for on features. The template's contract-test note for HTTP/WS changes does not clearly apply, and the description does not say whether it applies. The description is long, but it covers the required sections.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 7751232 and 1d4974a.
Files selected for processing: 12
changelog.d/add-pc-progress-bar.md
scripts/machine-dialog-regression.ts
src/components/MachineDialog.progress.test.tsx
src/components/MachineDialog.tsx
src/components/MachineSidebar.tsx
src/components/Machines.css
src/components/ProgressBar.css
src/components/ProgressBar.tsx
src/components/UpdateControls.tsx
src/lib/i18n/machines.ja.ts
src/lib/i18n/machines.ko.ts
src/lib/i18n/machines.zh.ts
Files with no reviewable changes: 1
src/components/Machines.css
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Merged through pr-merge at head b5ae2969d. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.
main had moved since the checks of dc39d6a7d: pr-merge --update merged it in (5046fd7f9), and every required check was green at this head.
main moved but untouched: merged without update. Its new commits up to dca77c670 change no file of this pull request, none imported by one, nothing that decides which checks run, and no core path.
Reviews: Codex CLI (gpt-6.2-sol-fast, xhigh) and an omo gate reviewer on fa9798a; every MEDIUM/HIGH fixed in 1d4974a, which CodeRabbit reviewed; later commits only merge main in. The maintainer approved the UI from the before/after page (via Dori, 'ok'); Dori (lead) asked for this merge after the 0.5.11 release.
…er and drop it (#4831)
## What
Last of four PRs moving the `src/` tests off the deprecated
`react-test-renderer` (after #4815, #4816 and #4829, all merged). It
moves the 37 component tests from `PromptCard` to `review-client-p12`,
plus `MachineDialog.progress` (#4811), `RelayPanel.compact` (#4615),
`FileViewer.save` (#4073) and `RecentFolderChips`, all added on
react-test-renderer while this series was under way,, to the happy-dom
page and **removes `react-test-renderer` and
`@types/react-test-renderer`** from package.json and bun.lock. Nothing
in the repository names react-test-renderer any more.
## Test meaning
Every file keeps its test names, order and test count (checked per file
against origin/main); `expect()` counts are equal or higher where the
review added checks. Across all 175 migrated files the series keeps
**2762 tests, file for file the same as current main**. Shifts worth a
look:
- `StrictModePanel`: nothing forbidden may show anywhere in the
document, portals included (the old renderer drew portals inline).
- `WorktreeDialog`: a fresh create request must start before the
repository changes, and only that request is answered.
- `Visualization`: pending work runs while the fake transport is
installed before checking that no request went out.
- `RelayShell`: three notice components are checked through DOM markers;
link taps through `defaultPrevented` on the real click. Includes main's
newer offline test from #4810, and #4614's check that the pairing-code
field is wired to `typePairCode`/`endPairCodeComposition` (read through
the fixture's `reactProps`, as those are props the DOM cannot show; also
in `RelayShellScreens`).
- `RelayPanel.compact`: `KeyId`'s id and label are read from its
rendered group (`role="group"`, `aria-label`, the group spans); the
pairing window's `CustomEvent` announcements dispatch through the page's
own event classes.
- `VoiceInput`: #4793's shortcut test presses Ctrl+Shift+Space as real
KeyboardEvents on the page's window.
- `TextFileEditor`: the unsaved-changes warning is checked as a
cancelled `beforeunload` event.
## Validation
- `bun run typecheck`: pass.
- All 175 migrated files, one process per file, on this branch and on
origin/main: 175/175 pass on both, 2762 tests on both, equal file for
file. No file in the repository names react-test-renderer.
- This PR's 37 files in one bun process: 735 pass, 0 fail. `PortalAuth`
then `SettingsControls` in one process, both orders: pass (the order
case the Codex review reproduced).
- Codex adversarial review (gpt-6.2-sol-fast, xhigh) ran once on the
whole series: 13 findings, all fixed in this series (see each PR).
- Skipped locally: `bun run check fast` (this PC above 85% CPU); CI's
Fast checks runs it.
No user-visible change, so no changelog fragment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adding a PC over SSH (sidebar → Add PC, the
MachineDialog) showed only a line of text while itconnected, checked, installed and started the PC; a bar appeared only while a bundle download
reported byte progress. Now every wait in that dialog shows a stage bar:
that stage (connect → check → install → start). While a bundle travels, the bar stays on the
install stage and the transfer's own words and bytes are told under it (it used to swap in a
second "Step 1 of 4" transfer bar). A failed, cancelled or connected setup, a herdr choice, the
Windows sign-in wait and an ssh password or fingerprint prompt show no bar.
language, with the server's own words under the bar.
The bar and its step line move into one shared component,
ProgressBar.tsx(ProgressBar,ProgressLine,StageProgress), which the sidebar's bridge-update progress and the Settingsupdate progress now use as well; their markup and class names are unchanged, the CSS moved from
Machines.csstoProgressBar.css. The step count no longer wraps on a phone.No new buttons, no new rows: the bar sits inside the existing progress card. The QR/code and
account add sheets already have their own step bars and are unchanged. The "Add this PC to my
account" wait in Settings (up to 30 minutes, waiting on a person) gets no bar: an endless sliding
animation there is what
src/motion.test.tskeeps out.Design reference: Zed's SSH remote connection modal names the stage it is in while it connects and
sets up the server; this adds a stage count and a bar to the same idea, reusing the bridge-update
bar Ovis already draws.
Before/after captures were reviewed by the maintainer privately.
(tailnet only).
The maintainer saw the before/after page and approved the look.
Reviews
commit: the transfer bar replacing the stage bar (Codex MEDIUM, gate HIGH), the bar during a
password prompt, a full bar while the last stage still runs, English install stage words beside
a localized count (gate MEDIUM), and the browser regression's 750 ms race (gate MEDIUM: the
failure is now answered only after the installing bar was seen). Kept as is: the fingerprint
prompt shows its question without a bar, like the password prompt.
Validation
bun run check fast(TMPDIR set): passed.bun test src/components/MachineDialog.progress.test.tsx(new: the bar follows connecting →checking → installing → a bundle download → starting, none at a password prompt or once connected), plus the existing MachineDialog,
MachineSidebar, motion, conventions and i18n tests.
bun scripts/machine-dialog-regression.ts(browser, 1280 and 390): passed; it now checks theinstalling stage's bar ("4단계 중 3") and that the failure shows none.
scripts/update-notice-regression.ts(via ui-contexts-checks; markup unchanged),left to CI.