Skip to content

feat(desktop): onboarding improvements from live user-interview rounds - #9847

Merged
Git-on-my-level merged 141 commits into
mainfrom
fix/onboarding-improvements
Jul 20, 2026
Merged

Git-on-my-level merged 141 commits into
mainfrom
fix/onboarding-improvements

Conversation

@skanderkaroui

@skanderkaroui skanderkaroui commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Onboarding UX improvements + fixes for the macOS desktop app.

  • Navigation: Back button on every step past the first + arrow-key step nav (OnboardingStepScaffold, OnboardingView, all step views).
  • Floating-bar demo: one-line prompt, keycaps light up while the shortcut is physically held, white glow on the bar (reuses the voice glow), removed the up-arrow.
  • Reach-error card: actionable "Couldn't reach Omi — Error " card on the floating bar with Retry / Skip (UI + seam; not yet wired to the live exhausted-retry path).
  • Memory-log import: capture recency tiers ([recent]/[earlier]/[long-term]) not just exact dates, matching how ChatGPT/Claude actually export.
  • How-did-you-hear: keep first-selection auto-advance.
  • Apple name (display side): refresh the onboarding name when it arrives async instead of freezing "there"; persist Apple first-auth name server-side.
  • Merges feat/desktop-drag-to-grant (#9742) and latest main.

Product invariants affected

  • INV-AUTH-1
  • INV-CHAT-1
  • INV-INT-1 (CalendarReaderService/GmailReaderService reader-service surfaces pulled in via merged main)
  • INV-MEM-1 (memory adapter test files touched by the frozen-clock fixes merged with main)

Verification

  • xcrun swift build -c debug green after each change.
  • Built + ran the named bundle omi-onb-arrow throughout; verified the reach-error card via the debug_reach_error bridge action (in-process PNG capture).

Known follow-ups (not in this PR)

  • Apple name root cause is backend: POST /v1/auth/callback/apple drops Apple's user (name) form field, so the desktop display fix alone won't populate the name for Apple sign-ups. Backend fix tracked separately.
  • Regression tests for the name refresh + reach-error.
  • Wire the reach-error card to the real exhausted-retry path.

Failure-Class: none

…dvance, clickable dots

- Arrow-key back/forward now runs off a local NSEvent monitor instead of
  SwiftUI .onKeyPress, so it works on the Ask-a-question steps (which take key
  focus via their own key monitor / the floating Ask Omi panel). Guarded to not
  hijack arrows while typing in a text field or the floating bar.
- Permission steps no longer auto-advance on grant; they show a Continue button
  so the user chooses when to move on.
- Progress dots are clickable (onboardingJumpTo) to jump to any step, and now
  also render on the floating-bar shortcut/demo steps (10, 11).
…ent fits

Permission steps (e.g. Screen Recording) felt scrollable due to ScrollView
elastic bounce. Add .scrollBounceBehavior(.basedOnSize) so steps only scroll
when content actually overflows.
- Track furthest step reached in @AppStorage (survives the permission-step
  restart). A step is 'cleared' once advanced past (answered/granted/skipped).
- Progress dots are clickable only up to the furthest cleared step — no skipping
  ahead past an unanswered required question.
- Forward nav is automatic behind the frontier (already-cleared steps) and
  defers to each step's Continue gating at the frontier.
…turn

Store the selected source in @AppStorage instead of @State, so revisiting the
step shows the previous selection pre-highlighted.
goalDraft now writes to UserDefaults on change and re-hydrates on init, so the
Goal step shows the user's entered goal when they come back (name, language, and
data-source imports already restore this way).
Root cause of 'can't skip past permission pages / can't reach every page':
navigation gating lived in three places with two different models, and the
dots row only covered 13 of 18 steps (introStepCount vs steps.count).

- OnboardingFlow.canJump(to:furthestStep:) is now the single policy: backward
  and cleared steps always allowed; forward jumps allowed over skippable steps
  (equivalent to pressing their Skip buttons); only the four required intro
  steps (Name/Language/HowDidYouHear/Trust) block until answered.
- Progress dots, dot-jump, and forward-arrow all route through canJump.
- Dots now cover all 18 steps (introStepCount removed; steps 13-17 were
  unreachable and showed no active dot).
- Frontier tracking hardened: clamped to the migrated step range, never
  written by the export preview, reset with resetOnboardingRequested.
- Tests: canJump backward/forward/blocking/out-of-range + a tripwire pinning
  unskippableSteps to the flow layout (12/12 pass).
…anted permissions

- Voice shortcut/demo (12, 13) and Tasks (17) now render the clickable
  progress dots like every other step — they were dot-less dead ends.
- Granted permission steps bind Continue as the default action so Return /
  forward-arrow advances automatically once the permission is granted.
…steps

Shared OnboardingKeyCapView: bigger caps (64pt), modifier keys show the symbol
with the key name written under it (⌘ over 'command') like a physical Mac key,
and Return/Space render as wide caps. Replaces the duplicated keyCap helpers on
the Ask-a-question and voice shortcut steps; preset/Custom chips slightly
bigger on both.
…version

CI installs latest black (26.5.1), which formats apps.py and
test_verify_pusher_config_references.py differently than the older local
black (25.12.0) that the pre-commit hook had applied during merges — CI's
check failed on both files. Reformat with 26.5.1; apps.py returns to
byte-identical with main, so its baseline bump is reverted. Local black
upgraded to 26.5.1 so the hook and CI stop fighting.
The fixtures froze now at 2026-06-19 while the production short-term TTL
(DEFAULT_SHORT_TERM_TTL_DAYS=30) evaluates against wall clock, so the
"fresh" short-term items aged out exactly 30 days later and three tests
started failing on every branch at once. Anchor now dynamically; no
assertion embeds a literal date.

Verification: pytest tests/unit/test_chat_memory_adapter.py — 11 passed
(was 8 passed / 3 failed).
Unpinned black drifts from local/pre-commit formatting on every black
release, failing CI on files the PR never touched (black 26.x re-hugged
multiline strings that 25.x split). Pin to the version local hooks use.
…pter tests

Same class as the chat adapter fix: developer/MCP adapter and product memory
router tests froze now at 2026-06-19 while production short-term TTL uses
wall clock, so their fresh short-term fixtures expired 30 days later and the
tests failed on every branch at once. Anchor now dynamically in the three
files CI's full-suite run identified as affected; the remaining frozen
anchors elsewhere passed today's full run, proving they don't depend on the
wall clock.

Verification: pytest on the four adapter/router files — 78 passed.
# Conflicts:
#	backend/tests/unit/test_chat_memory_adapter.py
#	backend/tests/unit/test_developer_memory_adapter.py
#	backend/tests/unit/test_mcp_memory_adapter.py
#	backend/tests/unit/test_product_memory_router.py
Replace the 18 per-page progress dots with 4 phase segments (Profile,
Permissions, Shortcuts, Your memory), each sized by its page count and
filled page by page:

- Fill counts completed pages, so the tip always stands at the start of
  the current page's slot; the first page shows an empty bar.
- Clicking any part, in any segment, puts the tip at the end of that
  part (page after it); a segment's last part rolls into the next
  segment. Jumps stay gated by OnboardingFlow.canJump.
- Hovering a segment reveals background-colored ticks at its page
  boundaries.
- Page transitions animate exactly one slice (snappy 0.2s), growing
  forward and draining backward, via a static last-rendered-step handoff
  between the per-page bar instances.

Verified live on a named bundle (omi-progress-bar): clicked slices via
the accessibility tree and confirmed the persisted onboardingStep landed
per the tip model (part+1 in-segment, cross-segment, backward), and that
a fresh user (furthestStep=1) gets exactly 2 clickable slices.
OnboardingFlowTests: 20/20 pass, including the new phase-tiling test.
The onboarding exports step description becomes "Export Omi context to
the tools you already use." and the per-destination row button says
Export instead of Connect (still toggles to Close when open).

Verified live on the omi-progress-bar named bundle by jumping to the
exports step and reading the rendered copy and buttons in a window
capture.
Five app/lib files entered the branch diff as formatting-only churn from an
earlier merge resolution (old dart format style vs main's newer formatter).
Restore main's exact bytes so they leave the PR diff entirely. Committed with
--no-verify because every locally available dart (3.9.2 and 3.12.2) formats
differently than CI's floating `channel: stable` — pinning the Dart version
in repo-checks.yml is the follow-up fix for this drift class, same as the
black pin.
…ements

# Conflicts:
#	backend/tests/unit/test_chat_memory_adapter.py
#	backend/tests/unit/test_developer_memory_adapter.py
#	backend/tests/unit/test_mcp_memory_adapter.py
#	backend/tests/unit/test_product_memory_router.py
The pre-restore copies of the five merge-carried app/lib files returned via a
local lineage that predated bba3836; restore main's exact bytes again so
they stay out of the PR diff (local dart versions cannot reproduce CI's
floating-stable formatting).
…ements

# Conflicts:
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-floatingcontrolbar.json
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-root.json
…to Connect

Title becomes "Use Omi memory where you work." and the per-destination
row button reverts from Export to Connect (still toggles to Close when
the panel is open). The description keeps the exporting frame.

Verified live on the omi-progress-bar named bundle by opening the
exports step and reading the rendered title and buttons.
# Conflicts:
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-providers.json
# Conflicts:
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-floatingcontrolbar.json
#	backend/tests/unit/test_developer_memory_adapter.py
#	desktop/macos/Desktop/Sources/Onboarding/OnboardingGoalStepView.swift
#	desktop/macos/Desktop/Sources/Onboarding/OnboardingPermissionStepView.swift
Every file in the PR diff with zero non-merge branch commits is churn carried
by merge lineages (old-formatter Dart/Swift/TS copies of files main has since
reformatted) — restore main's bytes so they leave the diff. Re-apply the three
justified line-count baseline raises the sweep clobbered. Verified: ratchet OK
against origin/main, CI-matching black (26.5.1) clean on all changed backend
files, zero Dart diff vs main. Committed with --no-verify because local dart
format cannot reproduce CI's floating-stable formatting.
…yte sweep

The lineage-churn sweep restored APIClient+Settings.swift to main's bytes,
but that file carried a real branch change (f24e6a8's acquisition-source
endpoint) whose call sites remained — the package stopped compiling. The
mini gauntlet's build gate caught it; every other swept file was verified
semantically identical to main via same-formatter normalization.
# Conflicts:
#	.github/scripts/product_file_line_count_ratchet_baseline/desktop-swift-providers.json
…t merge

Byte-restore commits register as branch-side edits, so when main reformats
the same files a later merge silently auto-merges old and new formatting
into hybrid content matching neither side — six dart files re-entered the
diff that way and failed CI's Formatting job. Restore main's exact bytes
again (zero dart diff vs main verified). --no-verify: local dart cannot
reproduce CI's floating-stable formatter.
…BUG-seam suites

The PR-only release-mode notification regression step (swift test -c release
--filter UserNotificationCallbackBridgeTests/) compiles the whole test bundle,
and twelve suites reference DEBUG-only seams (ownerBoundarySnapshot,
resetForTests, DEBUG-guarded fixtures) unguarded — all byte-identical to main,
so the breakage is latent there and fires for any PR touching the
notification-boundary trigger paths. Wrap the affected suites (and the
owner-boundary block of PushToTalkStateMachineTests) in #if DEBUG: a no-op in
every configuration where tests execute.

Verification:
- CI's exact release step command now compiles and passes (2 tests, 0 failures)
- Full debug suite: 2801 tests, 0 failures — every guarded suite still runs
- CI formatting replica clean (dart diff vs main: zero; pinned black clean)

Failure-Class: none
The release-compile guards inserted header lines in 13 test files, shifting
the grandfathered force-unwrapping violations off their baselined line
numbers. Update the 15 affected entries in place (same violations, same
count — pinned SwiftLint 0.65.0 lint passes and the down-only baseline
guard approves).
…he DEBUG guards

The guard insertions shifted baselined force-unwrap/IUO violations off their
exact line numbers, and the down-only policy allows neither baseline edits
nor new suppressions — so fix the violations themselves: guard-let in the
URLProtocol stubs, try XCTUnwrap in throwing token-refresh closures and UUID
literals, non-optional/lazy properties for the implicitly-unwrapped ones.
SwiftLint baseline stays byte-identical to main and shrinks by 15 live
violations.

Verification: pinned SwiftLint lint exit 0 (zero violations);
check-swiftlint-baseline OK; debug test bundle compiles; affected suites
94 passed / 0 failed.
…ements

# Conflicts:
#	desktop/macos/Desktop/Sources/Onboarding/OnboardingFlow.swift
#	desktop/macos/Desktop/Tests/AuthSessionCoordinatorTests.swift
#	desktop/macos/Desktop/Tests/OnboardingPersistenceClearingTests.swift
… bridge baseline

Eight dart files hybridized by the merge (zero non-merge branch commits each)
restored to main's exact bytes; DesktopAutomationBridge baseline set to the
measured merged count (4251) with merged justification. --no-verify: local
dart cannot reproduce CI's floating formatter.
@Git-on-my-level
Git-on-my-level merged commit 932bec2 into main Jul 20, 2026
35 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/onboarding-improvements branch July 20, 2026 16:06
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
BasedHardware#9847)

## Summary

Onboarding UX improvements + fixes for the macOS desktop app.

- **Navigation:** Back button on every step past the first + arrow-key
step nav (`OnboardingStepScaffold`, `OnboardingView`, all step views).
- **Floating-bar demo:** one-line prompt, keycaps light up while the
shortcut is physically held, white glow on the bar (reuses the voice
glow), removed the up-arrow.
- **Reach-error card:** actionable "Couldn't reach Omi — Error <code>"
card on the floating bar with Retry / Skip (UI + seam; not yet wired to
the live exhausted-retry path).
- **Memory-log import:** capture recency tiers
(`[recent]`/`[earlier]`/`[long-term]`) not just exact dates, matching
how ChatGPT/Claude actually export.
- **How-did-you-hear:** keep first-selection auto-advance.
- **Apple name (display side):** refresh the onboarding name when it
arrives async instead of freezing `"there"`; persist Apple first-auth
name server-side.
- Merges `feat/desktop-drag-to-grant` (BasedHardware#9742) and latest `main`.

## Product invariants affected

- INV-AUTH-1
- INV-CHAT-1
- INV-INT-1 (`CalendarReaderService`/`GmailReaderService` reader-service
surfaces pulled in via merged `main`)
- INV-MEM-1 (memory adapter test files touched by the frozen-clock fixes
merged with `main`)

## Verification

- `xcrun swift build -c debug` green after each change.
- Built + ran the named bundle `omi-onb-arrow` throughout; verified the
reach-error card via the `debug_reach_error` bridge action (in-process
PNG capture).

## Known follow-ups (not in this PR)

- **Apple name root cause is backend:** `POST /v1/auth/callback/apple`
drops Apple's `user` (name) form field, so the desktop display fix alone
won't populate the name for Apple sign-ups. Backend fix tracked
separately.
- Regression tests for the name refresh + reach-error.
- Wire the reach-error card to the real exhausted-retry path.

Failure-Class: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-maintainer-review Needs a human maintainer to sign off before merge needs-tests PR introduces logic that should be covered by tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants