Repository navigation
feat(guide): a theme step in the setup guide, with the steps listed in its head - #3885
Conversation
…n its head The guide gains a step between the agent and Done: the mode (System, Light, Dark) and the theme of the side drawn now as a grid of the Settings theme cards, the app changing behind the dialog as you pick, with a live miniature of the app as its preview. The head lists the steps, and Done names the theme chosen. ThemeCard and THEME_NAMES move out of SettingsDialog.tsx into ThemeCard.tsx so both use them; the theme names move to the base dictionaries as two parts now use them.
#3882 item 6: when the picked agent goes away while a later step shows (Look again finds none), the guide stays on that step and the next pick jumps straight to it. With no agent left the steps go back to the agents.
|
Code review of this PR before opening (omo-native-code-reviewer, read-only) and how each finding was resolved:
Also in this PR: #3882 item 6 (back on the agents when no agent is left to start), as its own commit. The other #3882 items go in PR 3/4 where they fit. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
Merged on the owner's OK for the UI change (2026-11-15). Left open, not blocking (owner PR; LOW):
Review reports: ~/.cache/ovis-tmp/reports/ |
## What One Phone and alerts step between the theme and Done (the owner's pick of the one-step form): - **Left, this computer**: Turn on alerts while the browser has not been asked (App's own enableNotifications, so push subscribes where there is push), Settings → Alerts' **Alert me when** chips (one shared list, `alertMeWhenChips`; Stopped on an error stays in Settings), and **Send test**, which shows one alert at once. - **Right, the phone**: the Connect your phone box Done had (the relay, its QR code, Paired), open from the start on a first run on the PC as before. - **Done** lists the phone (the name of a device paired other than this browser, or Later with Connect now) and the alerts chosen. **Send test needs no `app/` change**: it is the page's own notification (`showTestNotification`, service worker or `new Notification`), as an open tab's alerts already are, and the desktop app's window already allows page notifications. It is hidden where the page has none (the phone app's web view). Settings → Alerts' test still goes through the push service. The mock's "this computer blocks alerts" state with Open System Settings is deferred (it would need `app/`); a refused permission says so with how to allow it in the browser. ## Design reference Linear's and Raycast's onboarding put notifications and a test in one step; the phone side keeps Paseo-like relay consent (off until the user turns it on). ## Keyboard and screen readers - The step's title takes focus; the chips are a group named "Alert me when" of pressed buttons; Send test's result is a `role="status"` line; a refused permission is a plain note. - Connect your phone is an `aria-expanded` toggle for its box. ## Also in this PR From follow-up issue #3882 (items 1, 2 and 5), as its own commit: the usage-counts line is not recorded as seen under a native `showModal()` dialog such as Add PC; a failed acknowledgement is tried again on the next paint, return to the tab or focus move; turning counts on again in Settings clears a Turn off made from the line. The dialog regression covers the first two (the native-dialog step fails without the fix). From the #3885 review (LOWs), as its own commit: the theme step keeps the card of a theme saved beyond the first six while it is open (one arrow off it dropped it before), Done and the preview name an imported theme as Settings does, and on System the keyboard stays in the theme cards when the computer switches light and dark (the #3885 Codex LOW); the dialog regression now covers Home and End, Show all themes, the saved theme kept (fails without the fix) and the mode switch. Not covered by a test: the imported theme's name (the demo has no imported theme). ## Screenshots | | Before (main): the theme step goes to Done, the phone box on Done | After: Phone and alerts as one step | |---|---|---| | 1920x1080 dark | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/before-4-done-1920x1080-dark.png" alt="before 1920x1080 dark" width="480"> | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-4-phone-alerts-1920x1080-dark.png" alt="after 1920x1080 dark" width="480"> | | 1920x1080 light | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/before-4-done-1920x1080-light.png" alt="before 1920x1080 light" width="480"> | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-4-phone-alerts-1920x1080-light.png" alt="after 1920x1080 light" width="480"> | | 1280x720 dark | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/before-4-done-1280x720-dark.png" alt="before 1280x720 dark" width="480"> | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-4-phone-alerts-1280x720-dark.png" alt="after 1280x720 dark" width="480"> | | 1280x720 light | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/before-4-done-1280x720-light.png" alt="before 1280x720 light" width="480"> | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-4-phone-alerts-1280x720-light.png" alt="after 1280x720 light" width="480"> | | 390x844 dark (narrow) | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/before-4-done-390x844-dark.png" alt="before 390 dark" width="480"> | <img src="https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-4-phone-alerts-390x844-dark.png" alt="after 390 dark" width="480"> | Done with the phone and alerts rows: [5-done-1920x1080-dark](https://raw.githubusercontent.com/devswha/ovis/evidence/setup-guide-phone-alerts/after-5-done-1920x1080-dark.png). ## Review A code-review agent's findings and how each was resolved are in the first comment. ## Validation Head 5b65ed3, on main 9782b4a (with #3885): - `scripts/setup-dialog-demo-regression.ts` against #3885's code (what main had): **fails** (no "Stay in touch with your agents" step). - The same regression on this branch: **passes** (12 cases: 1920x1080 and 1280x720 dark and light, 390x844, the theme-step keys, the usage-counts consent case); the captures above come from it. - Each review fix was proven by the regression failing without it: the native-modal step (#3882), the kept Nord card and the keyboard on a light/dark switch (#3885). - `scripts/telemetry-regression.ts`: passes. - `bun run check fast` through `~/.ovis-toolchain/heavy-run.sh`: ok (17352 unit tests pass, typecheck, build). - Not run: the full browser suite (CI runs it).
…h, and the guide's words cut short (#3962) ## Summary The setup guide's phone and alerts step as the owner picked it (variant B), and every word of the guide cut down the way Orca's onboarding reads. Follows #3861, #3885, #3894 and #3907; it was shown to the owner before it opened (the "글 다듬기" preview page) and he approved it. **The guide opens on the agent step.** There is no welcome screen, as Orca opens on its first real choice. - Every step but Done has one quiet way out at the foot's left: **Set up later**. It closes the guide without starting an agent. The sidebar's Setup: N left row brings it back, and its tooltip says "Reopen it in Settings → Agents." - The foot is Orca's: Set up later, Back where a step has one, Continue. On Done the primary button reads **Start** and opens the first workspace with the chosen agent. - "Start now" is gone; the owner read it as the same thing as Set up later. The fastest way to a running agent is Continue three times, then Start (four presses). Theme and phone and alerts each pass with one press and nothing chosen. - The head shows Orca's thin segmented step bar and "1 / 4" (agent, theme, phone and alerts, Done; "/ 3" when no agent can start). - The dialog is as tall as its step within the 1200x675 frame, so no step is a half-empty card. **Phone and alerts, variant B:** 1. Get the app (optional): the official App Store and Google Play badges. Each shows that store's QR code and opens it in a new tab (App Store id 6824664162, Google Play sh.ovis.app). 2. Pick how to connect: Anywhere (recommended), Same Wi-Fi or Tailscale, as tabs. 3. Scan with your phone: the chosen way's QR code (168 px) with one line. The connection's other ways (new code, a link without a code, a code to type, this PC's ID) wait behind **Other ways**, which takes the QR code's place. What each way can show: - **Anywhere:** turns on only on its button. - **Tailscale:** shows its served address, the one command to run, or why it is unavailable. - **Same Wi-Fi:** shows a QR code only when the page was opened at a LAN address. The PC tells the page no LAN address, so on the PC itself this way cannot show one without a server change. The alerts side keeps every rule of #3907: one rule says whether alerts can arrive, and the permission is asked only on Turn on alerts. **The words.** One idea per sentence; headings of two to five words; at most one line under a heading; verbs on buttons; no relay, pairing or PC ID before Other ways. Korean, Japanese and Chinese are written to the same standard (Korean in the app's short -해요 voice). Strings other screens share keep their entry; the guide has its own. | | Before | After | |---|---|---| | Korean | 491 eojeol | 253 eojeol | | English | 692 words | 312 words | 87 lines changed. The design follows Orca's onboarding (stablyai/orca): its opening on the first real choice, the Set up later foot, the step bar and its short copy. No code is adapted. ## Validation - `scripts/setup-dialog-demo-regression.ts` passes (19 checks). One run timed out in the usage-counts case, after every guide check had passed; the next run passed in full. - It opens on the agent step with the keyboard on its title, and Tab stays inside. - The fast path is four presses. - Done's one primary button is Start. - Set up later leaves Setup: N left in view at 1280x720 and 390x844. - The phone and alerts step's body never scrolls, and the dialog stays within 1200x675, in every state at 1920x1080 and 1280x720: start, each way's QR code, Other ways, Tailscale's command and its absence, the Wi-Fi line, both store QR codes, and a connection that does not turn on. - The permission is asked once, on the button. - `scripts/setup-row-demo-regression.ts` and `scripts/settings-rows-demo-regression.ts` pass. The welcome sign-in case is removed with the welcome; sign-in stays in Settings. - `scripts/ui-regression.ts`: the More menu's Alerts step passes here. On this PC the run then stops at "Start uses the folder Browse is showing", as main's own code does here, so GitHub's run is the reference. - `bun run check fast`: ok (17643 unit tests pass). One earlier run had a server test time out under load; it passes alone and in the rerun, and this branch changes nothing under server/ or shared/. - The demo can show Tailscale's command or its absence and a relay that does not start (`?demo_tailscale=command|missing`, `?demo_relay_fail=1`), and can say this browser is a paired device (`?demo_via=device`). Follow-ups (low findings of the last review): #3970.
What
The setup guide gains a theme step between the coding agent and Done:
ThemeCardandTHEME_NAMESmove out of SettingsDialog.tsx into ThemeCard.tsx unchanged, apart from an optional tab-stop prop; the theme names move to the base dictionaries since two parts now use them.Also, from follow-up issue #3882 (item 6): when no agent is left to start while a later step shows (Look again finds none), the guide goes back to the agents, so the next pick walks the steps again instead of jumping to where it was. Part of #3882; its other items go in the later PRs where they fit.
Left out from the mock on purpose: its second Dark theme | Light theme switch. The mode already chooses the side, and a theme picked for the side not drawn would have no preview (Settings → Appearance sets both).
Design reference
Orca's and Linear's first-run theme steps (a grid of previews with the app changing behind the dialog); Settings keeps its one sideways row.
Keyboard and screen readers
radiogroupnamed for the side ("Dark theme" or "Light theme"), one tab stop (the checked card, or the first when an imported theme is drawn), arrows, Home and End pick as they move.olnamed "Steps", the current onearia-current="step", a done one's check named "Done".aria-hiddenandinert.Screenshots
Done with the theme listed: 4-done-1920x1080-dark, 4-done-1280x720-light.
Review
A code-review agent's findings and how each was resolved are in the first comment.
Validation
Head e4e4c4e, on main 6b2a51f (with #3861):
scripts/setup-dialog-demo-regression.tsagainst main'ssrc/: fails (no step list in the guide's head:getByRole('list', { name: 'Steps' }) [aria-current="step"]times out).bun run check fastthrough~/.ovis-toolchain/heavy-run.sh: ok (17314 unit tests pass, typecheck, build).