Repository navigation
feat(setup): show Connect your phone on a first run on the PC, and drop the desktop app's false alerts notice - #2801
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
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. |
|
Review round (omo: CLEAR at 7cc58f4; Codex Terra 6.1 xhigh: no HIGH). Fixed in the one fix round:
Validation: |
|
Final self-check (one gate reviewer, read-only): APPROVE, no blockers. It re-ran the related tests (92 pass), confirmed that the new pushHealth test fails on main's omo re-review at a2f5a6b: CLEAR. LOW notes, left as they are:
Theme: the change adds no CSS and reuses the guide's existing parts, so the dark captures cover it. Ovis uses its own theme setting, not the system's light/dark preference. |
|
Screenshots reviewed (1280 desktop app, setup guide with the phone box open): approved for merge (owner delegated picture OKs to the lead on 2026-11-05). |
What
The desktop app's first launch already goes connection screen -> Ovis -> the setup guide (agents found on this PC, Start with one). Adding the phone, though, sat behind a closed Connect your phone button under Start, so a new user had to know to look for it.
On a first run on the PC itself (the desktop app, or a browser on the PC's loopback), the guide now shows the Connect your phone box open from the start. It leads with the Ovis relay, and the relay is still off until Turn on the Ovis relay is tapped (the tap is the consent). Then the same pairing QR code Settings shows (
RelayPairing, already on main) appears there.phoneBoxOpensFirst(state, onThisPc): open from the start on a first run on the PC only. A guide reopened from Settings and a page another device opened (a phone) keep the closed button.phoneBoxStays(opening, way): a box that came open by itself leads with the relay only. Where the relay cannot lead (phoneWaysaysother), it closes again instead of sending the page to Settings -> Phone without a tap. A tapped box behaves as before, and so does "Use Tailscale or Wi-Fi instead".app/electron/renderer/*) already hands over (Opening Ovis..., then the server's page), so it is unchanged.Design reference: Paseo keeps its relay off until Enable relay (Settings -> host -> Pair a device, https://paseo.sh/docs/connectivity), and so do we. Unlike Paseo, which leaves pairing in Settings, our first run on the PC shows it, because a phone is the next device to add. The DESIGN.md setup guide entry says so.
Screenshots (isolated hc session, fresh state folder, demo HOME)
Connection screen, unchanged, handing over:
On the phone nothing changes: the page is not on the PC, so the box stays closed.
Validation
bun test src/lib/setupGuideFlow.test.ts: 38 pass (2 new cases).bun test src/lib/pushHealth.test.ts src/lib/push.test.ts src/lib/push-removal.test.ts src/components/PushHealthNotice.test.tsx: 59 pass; the new desktop-app case failed first on main's code.bun run check fast: passed (workflow syntax, generated types/themes, typecheck, build, unit tests).app/electron,bun scripts/build.ts stage, thenelectron .under Xvfb with a fresh--user-data-dir,HC_SESSIONand XDG folders). After I'm new to Ovis, the box is open with Turn on the Ovis relay, and no alerts notice shows (it did before). The PR screenshots come from the same build served by an isolated server (freshOVIS_STATE_DIR, ownHC_SESSION, temporaryHOME), at 1280 on loopback and 390 on the tailnet address.RelayPairing); macOS.Fix: a false alerts error on the desktop app's first launch
On its first launch the desktop app showed a red "This device's push subscription is missing. Turn alerts on again." notice, the first thing a new user saw. Alerts are on by default, and Electron grants the server's page the notification permission (
allowPermissionsinapp/electron/src/main.ts). ItsPushManagerhas no push service behind it, though, sosubscribealways fails, and the health check read that as a lost subscription.pushSupported()(src/lib/push.ts) is now false in the desktop app (Electron/in the user agent). The app then behaves as a browser without push: no notice, and the open window's own notifications carry the alerts. The window stays loaded in the tray when closed, so those still arrive. The newpushHealth.test.tscase failed before the change ("missing") and passes after it.Known wording gap (LOW, not changed): in the desktop app, Settings -> Alerts' push hint still says push alerts need HTTPS or the iPhone home-screen app.