Skip to content

fix(desktop): drop post-onboarding walkthrough, pin drag card under Settings - #10343

Merged
kodjima33 merged 5 commits into
mainfrom
fix/desktop-onboarding-walkthrough-and-drag-card
Jul 22, 2026
Merged

kodjima33 merged 5 commits into
mainfrom
fix/desktop-onboarding-walkthrough-and-drag-card

Conversation

@skanderkaroui

@skanderkaroui skanderkaroui commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Desktop onboarding follow-ups on top of the Second Brain redesign — cleanups that missed the #10340 merge window plus live-detection fixes so the flow never asks for what the user already has. Each is its own commit:

  • Remove the post-onboarding coach-mark walkthrough — the tour that ran after onboarding (dimming the window and spotlighting each top-bar nav pill + the Capture control) is deleted: the overlay, its 5-step copy in DesktopHomeView, and the SidebarCoachAnchorKey frame-publishing in DesktopTopBar/SidebarView. A just-onboarded user still lands on Home with the sidebar collapsed (that logic lives in the onboardingJustCompleted trigger, not the walkthrough), so they go straight to chat with no coach-marks.
  • Pin the permission drag-to-grant card under System Settings — the card was x-centered on the Settings window but vertically pinned to the screen's bottom quarter, so it drifted far from the window. It now anchors a fixed gap beneath the live Settings window's bottom edge (flipping to just above the window when Settings sits too low to fit the card below), so it follows the window as it moves and never covers the drop target. Adds unit tests for the under/above/no-anchor placement cases.
  • Remove the mac-lineup illustration from the SB onboarding screen-demo step — the static "computer picture" is gone; the step goes straight to the hold-to-talk prompt.
  • Skip already-granted permission steps — mic, system audio, screen recording, full disk access, accessibility, and automation steps are now skipped entirely (not merely pre-checked and shown) when the permission is already granted, using the same live TCC detection as the legacy onboarding. Wired into both advance and begin, so a resumed session also skips permissions granted while the user was away. The user is never asked for something they've already given.
  • Auto-detect a connected Gmail in the context step — like Calendar, an already-connected Gmail now shows as connected on arrival instead of offering a reconnect.
  • Fix the name-observer deinit — the nameObserver token is marked nonisolated(unsafe) so the nonisolated deinit can remove it; a pre-existing fix(desktop): restore onboarding functionality dropped by Second Brain redesign #10340 issue that only surfaced on a clean cold build under Swift 6 strict concurrency.
  • Ratchet the desktop-swift-mainwindow line-count baseline down for the lines the walkthrough removal drops.

Verification

  • xcrun swift build -c debug — clean cold build from this branch (Build complete!), which is what surfaced and confirms the deinit fix.
  • Unit tests added for the drag-card placement (ScreenRecordingPermissionPolicyTests.dragCardFrame: under / above / no-anchor cases).
  • The skip-granted-permissions and Gmail auto-detect paths reuse the existing live-detection services (isGranted/refreshPermCheck, GmailReaderService.verifyConnection) already exercised by the connect flow.

Product invariants affected

  • INV-INT-1

Failure class (fixes)

Failure-Class: none

skanderkaroui and others added 5 commits July 22, 2026 16:34
Delete the coach-mark tour that ran after onboarding: the overlay, its
5-step copy in DesktopHomeView, and the SidebarCoachAnchorKey frame
publishing in DesktopTopBar and SidebarView. A just-onboarded user still
lands on Home with the sidebar collapsed (that logic lives in the
onboardingJustCompleted trigger, not the walkthrough).
…indow

The drag-to-grant card was x-centered on the System Settings window but
vertically pinned to the screen's bottom quarter, so it drifted far from the
window. Anchor it a fixed gap beneath the window's bottom edge instead, so it
follows the window as it moves and never covers the drop target. Flip to just
above the window when Settings sits too low to fit the card below.
Removing the coach-mark anchorPreference shrank SidebarView.swift; lower the
down-only baseline shard to match.
…n demo

The screen-demo step (reached after picking the summon shortcut) led with the
onboarding_mac_lineup computer illustration; drop it so the step is just the
voice-chord prompt. The shared PNG stays for the legacy floating-bar demo step.
…t Gmail

- Skip any permission step (mic, system audio, screen, full disk, accessibility, automation) the user has already granted, using the same live permission detection as the legacy onboarding, so onboarding never asks for what's already given.

- Auto-detect an already-connected Gmail in the context step (like Calendar), showing it as connected without a reconnect.

- Mark the name-observer token nonisolated(unsafe) so the nonisolated deinit can remove it — fixes a clean cold build under Swift 6 strict concurrency.
@kodjima33
kodjima33 merged commit a538a70 into main Jul 22, 2026
22 of 24 checks passed
@kodjima33
kodjima33 deleted the fix/desktop-onboarding-walkthrough-and-drag-card branch July 22, 2026 20:58
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…ettings (BasedHardware#10343)

## Summary

Two desktop onboarding follow-ups that missed the BasedHardware#10340 merge window
(they were pushed to that branch after it merged, so they never reached
`main`). Each is its own commit:

- **Remove the post-onboarding coach-mark walkthrough** — the tour that
ran after onboarding (dimming the window and spotlighting each top-bar
nav pill + the Capture control) is deleted: the overlay, its 5-step copy
in `DesktopHomeView`, and the `SidebarCoachAnchorKey` frame-publishing
in `DesktopTopBar`/`SidebarView`. A just-onboarded user still lands on
Home with the sidebar collapsed (that logic lives in the
`onboardingJustCompleted` trigger, not the walkthrough), so they now go
straight to chat with no coach-marks.
- **Pin the permission drag-to-grant card under System Settings** — the
card was x-centered on the Settings window but vertically pinned to the
screen's bottom quarter, so it drifted far from the window. It now
anchors a fixed gap beneath the live Settings window's bottom edge
(flipping to just above the window when Settings sits too low to fit the
card below), so it follows the window as it moves and never covers the
drop target. Adds unit tests for the under/above/no-anchor placement
cases.
- **Ratchet** the `desktop-swift-mainwindow` line-count baseline down
for the 2 lines the walkthrough removal drops from `SidebarView.swift`.

## Verification

Unit tests added for `dragCardFrame`
(`ScreenRecordingPermissionPolicyTests`). I could not exercise the
change on a live build in this environment, so the drag-card
repositioning is covered by those tests, not a runtime run — flagging
that explicitly.

## Product invariants affected

- INV-INT-1

## Failure class (fixes)

Failure-Class: none


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10343?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
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.

2 participants