Skip to content

feat(desktop): Home redesign — Today hub + first-win surface (data-driven) - #10144

Closed
kodjima33 wants to merge 9 commits into
mainfrom
kodjima33/desktop-dashboard-redesign
Closed

kodjima33 wants to merge 9 commits into
mainfrom
kodjima33/desktop-dashboard-redesign

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Home redesign: show users why Omi is valuable the moment the window opens

Why (data)

Mined PostHog (project 302298, $os=macOS), Mixpanel, prod Firestore, and the interview-derived PRs before designing (full analyst reports in the session workspace; summary below):

  • Top users' Omi is an ambient memory machine, not a chat app. Top cohort (630 users, ≥15 active days/30d): 81% record via mic daily, 68% system audio, 68% PTT; Firestore ground truth for the top 25: median 2,400 conversations, ~3,000 memories, 846 lifetime transcription hours — but only 655 chat messages ever.
  • Home is the least-visited page in the app: 91 users/month (2% of actives; 5% of even top users) — it showed a wordmark, zeroed counters, and three generic prompts.
  • Retention is decided in the first 48h by proof-of-delivery: a real conversation captured = 8.9× retained-vs-churned lift; the median churned user sends zero queries; a clicked proactive notification = 10.9× (the strongest marker) — yet that advice is delivered on a surface with 0.69% CTR / 99.4% dismissed (floating-bar notifications), and heavy users click it less.
  • Onboarding's value steps get skipped (VoiceDemo 37%, FloatingBar demo 35%); permission steps get done. 1 in 3 users asked for Screen Recording never grants it.

What changed

Existing users — the "Today" hub (was: wordmark + zeroed stat ribbon + 3 generic prompts):

  • Greeting + one ambient proof line: "1 conversation · 226 memories · 24 tasks · 141 screens today" — each segment navigates; the morning case leads with lifetime memory ("Quiet so far today — 2,401 conversations remembered"); never a row of zeros. Replaces the 4-cell stat ribbon.
  • "What Omi noticed" is the single hero: What-Matters-Now recommendations (full feedback contract kept) merged with today's local proactive insights — the 3-per-day advice stream finally reaching a surface where it can be read, as quiet hover-action rows instead of bordered 3-button cards.
  • "Today in Rewind" filmstrip: sampled real frames of the user's day (the deepest hands-on feature, median 46 views/user among its users); click opens Rewind at that moment (one-shot seek handoff, RewindSeekRequestStore).
  • Suggestion rows collapsed to one row of compact chips (personalized-first; chips never truncate — fewer render when tight).

New users — the "first win" surface (until activation = first conversation captured + first question asked, the two 48h retention markers):

  • Hero: "Omi already knows you." — real onboarding-derived memories (quality-gated: file-scan spam shapes filtered) + total count line.
  • Live Ask-Omi shortcut keycaps read from ShortcutSettings (never hardcoded), one ask affordance, guaranteed-answerable first chips ("What do you already know about me?" first).
  • Honest permission-aware pipeline pills: mic/screen missing → the real fix (Permissions page), never a fake checkmark; completed pill shows the real captured conversation.
  • Nil-safe gating: renders only after lifetime counts load; accounts with conversation history auto-graduate (a veteran on a fresh Mac never sees it); 48h/5-visit time-box so permission-skippers are never parked. Try-Asking popup suppressed while first-win owns the moment.

Hygiene: Home stage glow + hover tint neutralized and wordmark shadow removed (INV-UI-1 ratchet down — the old glow literal predated the check); stat-ribbon components removed with their usage. No screens deleted: sidebar, all pages, legacy home, and the 18-step onboarding flow (fresh #9847 interview work) are untouched.

Screenshots

(attached below: before, Today hub, first-win — all captured from a running named bundle with real seeded data; plus the HTML mockup used for design review)

Verification

  • xcrun swift build --build-tests clean; clean-release build (rm -rf .build && swift build -c release) clean.
  • Focused suites green: HomeTodayModelTests (10) · ActivationProgressStoreTests (9) · HomeTodayStoreTests (3) · HomeStatusStoreTests (incl. new today-counts test) · RewindSeekRequestTests.
  • Real path exercised on named bundle omi-today-home (dev backend, seeded account): Today hub renders live counts, real personalized chip ("How do I fix ShipBob payment failure?"), real Rewind filmstrip frames (after fixing RewindStorage.initialize() ordering found during this verification); noticed-feed rows verified with two locally-seeded insight rows; first-win surface rendered via the new non-prod bridge action activation_force_first_win showing real account memories, live ⌘O keycaps, and the honest "Screen memory — Turn on →" pill (bundle genuinely lacks the TCC grant).
  • UNVERIFIED (labeled honestly): the filmstrip → Rewind seek click-through was verified by unit test (nearestScreenshotIndex) + code path review, not a live cursor click (no-cursor policy on this machine); a genuinely fresh account's first-win (vs the forced QA state + gating unit tests) and the live first-conversation/first-query activation marks were not exercised end-to-end with a virgin account.
  • python3 .github/scripts/check_brand_ui.py → OK: INV-UI-1 no purple increase across 19 changed UI files. check_desktop_test_quality.py → at/below baseline. make preflight green.
  • Adversarial multi-agent review of the diff ran before opening; confirmed findings fixed.

Invariants

Path-matched invariant IDs (all held; none behaviorally changed):

  • INV-UI-1: neutral accents only — this PR reduces the violation surface (violet stage-glow literal → neutral, wordmark shadow removed). Brand ratchet check passes.
  • INV-CHAT-1: one shared transcript across surfaces — chat write path untouched; the Home ask bar still sends through the same ChatProvider.mainInstance; the only additions are read-only stores and a product-side activation mark adjacent to existing send sites. No second transcript store.
  • INV-AUTH-1: session death still owned by AuthSessionCoordinator — the diff touches AppState+ListenEvents.swift (one adjacent activation mark) and reads AuthService.givenName for the greeting; no auth/session transitions added or changed.
  • INV-MEM-1: memory pipeline untouched — MemoryStorage gains a read-only createdAfter count filter; no memory writes, deletes, or sync-path changes.

Failure-Class: none

Notes for reviewers

  • Advice/insight rows come from local ProactiveStorage (type .insight); dismissing syncs the existing isDismissed flag. The notification pipeline is unchanged — this adds the surface the data says was missing, it does not remove notifications (volume reduction is a separate track).
  • "Memories today" can be inflated on import-heavy day-one accounts (known memory-spam issue, separate cleanup track); on the first-win surface that number is intentionally the "learned during setup" count.
  • Follow-up candidates (out of scope, from the design review): once-daily synthesized "Today recap" bullets via the existing HomeSuggestionsStore Gemini seam; hour-tick density timeline for Rewind.

🤖 Generated with Claude Code

Review in cubic

kodjima33 and others added 6 commits July 20, 2026 13:42
MemoryStorage.getLocalMemoriesCount gains createdAfter, RewindDatabase gains
getScreenshotCount(since:), and HomeStatusStore loads/publishes today's
conversation/memory/task/screenshot counts alongside the lifetime ones
(nil-safe apply preserved; knowledgeCountsKnown exposed for the first-win
gate). Verified: HomeStatusStoreTests incl. new
testTodayCountsLoadAndSurviveNilRefresh.

Co-Authored-By: Claude Fable 5 <[email protected]>
ActivationProgressStore tracks the two first-48h retention markers from the
July 2026 usage study (first conversation captured 8.9x lift, first question
asked — churned median is zero): per-owner persisted, auto-graduates accounts
with conversation history so veterans on a fresh Mac never see the new-user
surface, 48h/5-visit time-box so permission-skippers are never parked.
Product-side marks live adjacent to (never inside) the telemetry call sites.

HomeTodayStore loads today's proactive insights (the advice stream that
previously only surfaced as 99.4%-dismissed floating-bar notifications),
today's sampled Rewind frames, and quality-gated first-win memories
(FirstWinMemoryFilter drops the file-scan spam shapes). HomeGreetingComposer
builds the ambient proof line with a no-zeros contract.

Verified: ActivationProgressStoreTests, HomeTodayModelTests,
HomeTodayStoreTests all green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Home now proves the second brain is working the moment the window opens:

- Greeting + one ambient proof line ("3 conversations · 12 memories ·
  214 screens today"; morning case leads with lifetime memory, never a row
  of zeros). Replaces the four-cell stat ribbon.
- "What Omi noticed" is the single hero: What-Matters-Now recommendations
  (feedback contract intact) merged with today's local proactive insights as
  quiet hover-action rows instead of bordered three-button cards.
- "Today in Rewind" filmstrip: sampled real frames of the user's day,
  click-through opens Rewind at that moment (one-shot seek handoff).
- New-user first-win surface until activation: "Omi already knows you."
  with real onboarding-derived memories, the live Ask-Omi shortcut keycaps,
  honest permission-aware pipeline pills, and guaranteed-answerable first
  chips; Try-Asking popup suppressed while it owns the moment.
- Suggestion rows collapsed to one row of compact chips (never truncating —
  fewer chips render when tight).
- Home stage glow neutralized (INV-UI-1 ratchet down); wordmark shadow
  removed; sidebar, legacy home, and all existing pages untouched.

Verified on named bundle omi-today-home (dev backend, seeded account): Today
hub with live counts/filmstrip/noticed rows and first-win surface screenshots
in PR; focused suites green; INV-UI-1 ratchet check OK.

Co-Authored-By: Claude Fable 5 <[email protected]>
…-win, hero data on late gate, off-main thumbnail decode

- A first conversation landing WHILE first-win is on screen now completes the
  capture step (keeping the ask step + celebration) instead of silently
  graduating the user; veterans with pre-first-win history still graduate.
- The first-win surface can only appear after counts load; its hero data +
  time-box now start at that flip (onChange), not just on page appear, and
  HomeTodayStore.refresh no longer skips a caller's pass when a different
  refresh was in flight.
- Filmstrip thumbnails decode/downscale off the main thread (ten frames
  decode at once on Home appear).

Verified: ActivationProgressStoreTests (10, incl. new
testFirstConversationDuringFirstWinCompletesStepWithoutGraduating), all
redesign suites green; named bundle re-launched and recaptured.

Co-Authored-By: Claude Fable 5 <[email protected]>
…, day-scoped visits, owner fencing, refresh throttle

- Try-Asking popup now posts only once lifetime counts are known (the
  popup-vs-first-win decision is undecidable before that) and yields via
  hideTryAskingPopup when the first-win surface appears — no more double ask
  surfaces for fresh users.
- First-win pipeline pills receive honest pipeline state instead of raw
  permission bits: paused listening/capture render a truthful resume action,
  never a pulsing 'capturing' dot while zero frames land.
- First-win visits count distinct calendar days — six Home tab switches in
  one session no longer graduate a brand-new user; the 48h time-box is the
  only age gate.
- HomeTodayStore: generation fencing so an in-flight refresh can never
  publish into the next owner's content after an account switch, plus a
  60s activation cooldown so cmd-tab spam stops resampling the filmstrip
  (10 video-chunk decodes per pass); first-win upgrade passes always run.

Verified: all redesign suites green (42 tests incl. new same-day-visit and
throttle tests); named bundle relaunched, both surfaces recaptured.

Co-Authored-By: Claude Fable 5 <[email protected]>
- Raise line-count ratchet baselines for the four touched oversized files
  with justifications (net growth +2 to +35; new logic lives in
  MainWindow/Dashboard/ files).
- home-stage e2e flow covers the new Dashboard surface files and exercises
  the first-win bridge actions (force + state + release).
- ActivationProgressStoreTests: lazy per-test defaults with teardown block
  (Xcode 16.4 @mainactor async lifecycle hook contract), no force unwrap.

Verified: make preflight — 18 checks passed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@kodjima33

Copy link
Copy Markdown
Collaborator Author

Evidence — before / after (captured from the running named bundle omi-today-home)

1. Before — wordmark, zeroed counters, three generic prompts (the page 91 users/month visited):

before

2. After — Today hub (existing users): greeting + one clickable proof line, "What Omi noticed" feed (rows shown are two locally-seeded insights), Today-in-Rewind filmstrip with real frames of the day, ask bar + personalized chips (the ShipBob chip is genuinely generated from the account's data):

after — Today hub

3. After — first-win (new users, until first conversation + first question): real setup-derived memories, live shortcut keycaps (read from ShortcutSettings), honest permission pills — the screen-memory pill correctly says "Turn on" because this bundle genuinely lacks the TCC grant:

after — first win

4. HTML design mockup (before + both after states, used by the design-review panel):

mockup

kodjima33 and others added 3 commits July 20, 2026 15:00
The home-stage flow's activation_force_first_win / activation_state steps
failed T0 because desktop-flow-lint only scans a fixed source list for
registered action names. Verified: desktop-core-harness.sh --self-check
--skip-backend-contracts passes locally (56 flows, 134 actions).

Co-Authored-By: Claude Fable 5 <[email protected]>
swift-format's OnlyOneTrailingClosureArgument rejects mixed trailing
closures; both HomeNoticedRowChrome call sites now pass icon/content/actions
as labeled arguments. No behavior change; lint on all Dashboard files clean,
36 focused tests green, bundle relaunched + evidence recaptured.

Co-Authored-By: Claude Fable 5 <[email protected]>
…etes the ask step

- reloadForCurrentOwner resets transient celebrationPending so an in-place
  account switch never shows the previous owner's 'second brain is live'
  greeting (PR #9821 bleed class); same-store owner-switch regression test
  posts .runtimeOwnerDidChange and asserts B inherits nothing and A's
  restored progress carries no celebration.
- ChatPage main_chat send marks askedOmi (adjacent to its telemetry call,
  same contract as the floating-bar and home ask sites) so a first question
  asked from the Chat page completes first-win activation.

Verified: ActivationProgressStoreTests 11/11 green; changed-file swift-format
lint clean; bundle relaunched and Home evidence recaptured.

Co-Authored-By: Claude Fable 5 <[email protected]>
@undivisible undivisible added human Human-authored pull request desktop macOS workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior privacy-review Touches user-data persistence, permissions, or privacy-sensitive surfaces labels Aug 10, 2026
@aryanorastar

Copy link
Copy Markdown
Collaborator

Closing as a maintainer.

This is still ba61288 (Jul 20), CONFLICTING against current main, with Desktop Swift Build & Tests red. The conflict set includes DesktopHomeView, DashboardPage, ChatPage, Rewind, AppState, and the old product_file_line_count_ratchet_baseline JSON that no longer exists.

Home on main is no longer a widget hub. QueryShellHome is the signed-in surface: search absorbs the hub, and the standalone Chat page is gone (INV-NAV-1). HomeTodayModel / ActivationProgressStore / first-win are not on main. Same-day #10146 was reverted (#10147); #10184 then shipped chat-with-history as Home. Landing this Today-hub rewrite on that tree would fight the current shell.

The retention diagnosis can still be right. A new PR would have to compose with QueryShellHome — not this branch.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @kodjima33 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop human Human-authored pull request macOS privacy-review Touches user-data persistence, permissions, or privacy-sensitive surfaces workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants