Skip to content

feat(guide): a theme step in the setup guide, with the steps listed in its head - #3885

Merged
devswha merged 2 commits into
mainfrom
feat/onboarding-theme
Nov 15, 2026
Merged

devswha merged 2 commits into
mainfrom
feat/onboarding-theme

Conversation

@devswha

@devswha devswha commented Nov 15, 2026

Copy link
Copy Markdown
Owner

What

The setup guide gains a theme step between the coding agent and Done:

  • Pick a look: the mode as Settings → Appearance has it (System, Light, Dark; on System, which mode this computer is in now), then the themes of the side drawn now as a grid of the Settings theme cards, six first and Show all themes for the rest.
  • A pick changes the whole app at once, the dialog and the app behind it; the side panel's Preview is a small live picture of the app in the page's colours.
  • The dialog's head lists the steps (Agent, Theme), the current one marked; Done names the theme chosen.
  • ThemeCard and THEME_NAMES move 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

  • The step's title takes focus as it opens; the mode is a named group ("Theme") of pressed buttons; the cards are a radiogroup named 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.
  • The head's steps are an ol named "Steps", the current one aria-current="step", a done one's check named "Done".
  • The preview is aria-hidden and inert.

Screenshots

Before (main): Continue goes from the agent to Done After: the theme step between them
1920x1080 dark before 1920x1080 dark after theme step 1920x1080 dark
1920x1080 light before 1920x1080 light after theme step 1920x1080 light
1280x720 dark before 1280x720 dark after theme step 1280x720 dark
1280x720 light before 1280x720 light after theme step 1280x720 light
390x844 dark (narrow) before 390 dark after 390 dark

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.ts against main's src/: fails (no step list in the guide's head: getByRole('list', { name: 'Steps' }) [aria-current="step"] times out).
  • The same regression on this branch: passes at 1920x1080 and 1280x720 dark and light and 390x844 (theme step, steps list, Done naming the theme, keyboard and names), with PR 1's cases; the captures above come from this run.
  • bun run check fast through ~/.ovis-toolchain/heavy-run.sh: ok (17314 unit tests pass, typecheck, build).
  • Not run: the full browser suite (CI runs it).

…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.
@devswha

devswha commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Code review of this PR before opening (omo-native-code-reviewer, read-only) and how each finding was resolved:

  • MEDIUM no tab stop when an imported theme is drawn: the first card is the group's tab stop when none is checked (ThemeCard's optional focusable prop).
  • LOW focus lost after Show all themes: the first theme it reveals takes the keyboard.
  • LOW cast in the arrow keys: the ids now come from the shown list.

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.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added a theme-selection step to the setup guide. Choose System, Light, or Dark mode, then pick a theme with color previews; additional themes are available to browse.
    • Review the selected mode and theme on the Done screen, and use the step navigation to move back through setup.
    • Theme choices and setup controls are available in Japanese, Korean, and Simplified Chinese.
  • Documentation
    • Updated setup-guide documentation to describe the new theme-selection flow.

The setup guide adds a Theme step between agent selection and Done. It supports mode and theme selection, previews, keyboard navigation, and a Done summary that includes the selected appearance.

Changes: Setup guide theme selection

Layer / File(s) Summary
Shared theme cards and labels
src/components/ThemeCard.tsx, src/components/SettingsDialog.tsx, src/lib/i18n.*.ts
Theme names and the radio-card component are shared through ThemeCard.tsx. SettingsDialog.tsx imports the component, and theme-label translations move to the base locale catalogs.
Guide navigation and theme selection
src/components/SetupGuide.tsx, src/components/SetupGuide.css, src/lib/i18n/guide.*.ts, DESIGN.md
The guide tracks Agent, Theme, and Done pages. Users can select a mode and theme, view a preview, and see the selection in the Done summary. Styling, translations, and design documentation describe the flow.
Regression checks and release notes
scripts/setup-dialog-demo-regression.ts, changelog.d/setup-guide-theme-step.md
The regression script checks step navigation, theme selection, the Done summary, and Back behavior. The changelog records the theme step.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related issues

  • devswha/ovis#3882 — The PR adds the behavior described in item 6: returning to the Agent step when no agent remains selected.

Possibly related PRs

  • devswha/ovis#3861 — This PR adds a Theme step to the setup guide and extends the regression script introduced for the guide dialog.

Suggested reviewers: duytbp

Merge Risk: Minimal · up to e4e4c

The setup guide gains a theme step between agent selection and Done. No concrete defect was found, and the change is a small, easily reverted UI addition.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a theme step added to the setup guide. It also names the steps-list header. The title matches the changeset and the stated objectives, so it is specific enough for a t…
Description check Passed The description covers the What, Design reference, Keyboard and screen readers, Screenshots, and Validation sections. The template's Change section is present and describes the behavior. The Validatio…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a theme step added to the setup guide. It also names the steps-list header. The title matches the changeset and the stated objectives, so it is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description covers the What, Design reference, Keyboard and screen readers, Screenshots, and Validation sections. The template's Change section is present and describes the behavior. The Validation section lists the commands run, with results, and states that the full browser suite was not run. The template asks for a linked issue for features. The PR links follow-up issue #3882 and says the change is part of it, but it does not link a maintainer-agreed issue for the feature itself. The Review section points to a first comment that is not in the supplied context.

Resolution

Optionally link the issue where a maintainer agreed to the theme step, since the template asks for it on features. The description is otherwise complete.

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6b2a51f and e4e4c4e.

Files selected for processing: 20

  • DESIGN.md
  • changelog.d/setup-guide-theme-step.md
  • scripts/setup-dialog-demo-regression.ts
  • src/components/SettingsDialog.tsx
  • src/components/SetupGuide.css
  • src/components/SetupGuide.tsx
  • src/components/ThemeCard.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.test.ts
  • src/lib/i18n.zh.ts
  • src/lib/i18n/files.ja.ts
  • src/lib/i18n/files.ko.ts
  • src/lib/i18n/files.zh.ts
  • src/lib/i18n/guide.ja.ts
  • src/lib/i18n/guide.ko.ts
  • src/lib/i18n/guide.zh.ts
  • src/lib/i18n/settings.ja.ts
  • src/lib/i18n/settings.ko.ts
  • src/lib/i18n/settings.zh.ts
Files with no reviewable changes: 6

  • src/lib/i18n/files.ja.ts
  • src/lib/i18n/files.ko.ts
  • src/lib/i18n/files.zh.ts
  • src/lib/i18n/settings.ja.ts
  • src/lib/i18n/settings.ko.ts
  • src/lib/i18n/settings.zh.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@devswha
devswha merged commit 9782b4a into main Nov 15, 2026
13 checks passed
@devswha

devswha commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head e4e4c4eed9c1 as 9782b4a64659 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
codex CLEAR

Merged on the owner's OK for the UI change (2026-11-15).

Left open, not blocking (owner PR; LOW):

  • LOW (claude; not run): a saved theme that is not among the drawn side's first six is added as a seventh card; one arrow press moves the pick and that card disappears, so the only way back is Show all themes.
  • LOW (claude; not run): an imported theme is never named on Done or in the Preview caption.
  • LOW (claude; not run): no test covers the mode switch, Show all themes, Home/End, imported themes or the reset for Setup guide follow-ups from #3861's last review round #3882.
  • LOW (codex; not run): a system theme change can drop keyboard focus from the theme picker.

Review reports: ~/.cache/ovis-tmp/reports/

@devswha
devswha deleted the feat/onboarding-theme branch November 15, 2026 11:45
devswha added a commit that referenced this pull request Nov 15, 2026
## 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).
devswha added a commit that referenced this pull request Nov 16, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant