feat(desktop): add Pro setup checklist and gated mobile settings

Merged
KI
2mo ago
+1787-71

What & why

Add a Get the best out of Pro sidebar checklist for paid organizations. Remote access opens Settings → Remote Access and completes when the relay toggle is enabled. Mobile opens Settings → Mobile, directly below Usage. Automations opens the existing automation screen and completes when an automation exists. Opening a destination does not mark it complete.

The Mobile tab is behind the mobile-launch PostHog flag (off unless explicitly enabled), including navigation, search, the checklist row, and direct route access. Free plans see an upgrade action; paid plans see an App Store QR code, sign-in guidance, a Remote Access link, and an explicit “I've signed in on my phone” confirmation. The QR opens the official iPhone download page; it does not pair or authenticate a phone. Desktop and marketing reuse one App Store QR component, removing the duplicate QR library. Mobile settings also links to the mobile landing page and Remote Access documentation.

Remote and automation progress follows live queries. Mobile confirmation and dismissal remain a bounded local singleton; the persistence migration clears the old session-launch progress. Completing every available step dismisses the card once and persists that choice; later setting changes do not bring it back. Help explicitly reopens it, including when every step is complete. Automations → Create with AI uses the shared agent-session launcher. Includes all 17 shipping locales.

Real desktop CDP screenshots (organization access).

How I tested it

  • Merged current main (058ddd15ec); preserved both cloud-workspace and mobile-launch visibility gates in settings/search and adopted the shared billing helper.
  • Full monorepo typecheck passes: 42/42 tasks. Root lint, check:i18n, and check:plugins pass.
  • 39 focused scenarios passed. Tests using module mocks now run in isolated subprocesses to prevent contamination of other desktop tests.
  • Full repository tests passed 23 tasks before desktop failed. Reran the complete desktop suite on both this branch and clean main: exactly the same 34 Git/shell failures, with no additional PR failures. PR: 3,979 passing; main: 3,975 passing (the isolated test wrappers contain multiple assertions/scenarios). The standalone Git test file passes all 39 tests, indicating suite interaction. These baseline failures remain unresolved.
  • The shared QR and resource links were checked in the running desktop over CDP; updated screenshots are published. Mobile settings tests, full typecheck, lint, and translations pass after this change.
  • Follow-up checks cover persistent completion dismissal, explicit reopening, and disabled/omitted mobile flags redirecting instead of leaving a blank page.
  • Earlier CDP verification on this worktree at localhost:6965 / debugger 9337 covered the remote/mobile/automation destinations, Mobile QR after reload, live completion, and flag-off route/nav behavior. Screenshots are linked above. Phone sign-in was not performed; free/loading plan behavior is covered by tests.

Checklist

  • Conventional commit title
  • Root lint and desktop TypeScript pass
  • Maintainers can edit the repository branch

Summary by CodeRabbit

  • New Features

    • Added a guided Pro onboarding card for remote access, mobile setup, and automations.
    • Added feature-gated Mobile settings with iPhone QR download, App Store access, and setup confirmation.
    • “Create with Agent” now starts an agent session from automation prompts.
    • Added clearer Pro upgrade and mobile-access guidance.
  • Localization

    • Added and updated mobile, Pro, remote-access, and onboarding translations across supported languages.
  • Bug Fixes

    • Improved session creation reliability with duplicate-submission prevention, retries, and error feedback.