feat(mobile): gate the app behind a paid plan and flatten settings
Mobile is a Pro surface. Unpaid sessions land on a paywall screen instead of home, and the authenticated layout keeps them on home and settings so the App Review escape hatches stay reachable: sign out, switch to an org that has a plan, and delete the account (5.1.1(v), grace period disclosed in the confirm dialog).
The gate is UI-only — an earlier revision also walled the trpc protectedProcedure with a mobile-specific allowlist, and that has been removed along with its shared error constant, the client link that watched for the rejection, and the session-refresh registry. This PR now touches no server-side package; the diff is entirely apps/mobile. Tradeoff: this is a UX gate, not an entitlement boundary.
Settings
Rebuilt as one profile page instead of a hub with sub-screens — avatar, name, email, and a Free · Joined <month year> line, then Organization, Plan, Support, More, and Danger Zone groups. Sign out and Delete Account are inline. A version footer sits just above the home-indicator inset.
- Account and Billing sub-screens, their routes, and the
useActivePlanquery are deleted; plan comes fromsession.session.plan, whichcustomSessionalready computes. Manage Planopens a disclosure alert ("managed on the web at superset.sh") with a link to web billing, rather than a bare instruction to use another app.- Support rows link to docs, support email, and Discord.
Sign-in
- Apple mark replaced with the canonical simple-icons path — the old one filled ~70% of its viewBox and rendered visibly smaller than the GitHub and Google marks.
- Dev-only sign-in buttons sit above the review email link (they compile out of release builds).
- Email/password sign-in link retained for the App Review demo account; sign-up stays disabled in production.
Fix
Stack.SearchBar placement="integratedButton" with allowToolbarIntegration={false} evicted the custom left toolbar view (the org switcher) a few seconds after mount on iOS 26. Moved to placement="stacked" with hideWhenScrolling={false}, which coexists with it.
Verified on an iOS 26 simulator against a local stack: paywall renders for a free org, the switcher sheet still reaches Settings and Log out, and the flattened settings page renders end to end.
Summary by CodeRabbit
- New Features
- Added email/password sign-in alongside social sign-in.
- Added account deletion with confirmation and grace-period messaging.
- Added a subscription paywall for accounts without a paid plan.
- Redesigned Settings with organization, plan, support, and danger-zone sections.
- Changes
- Billing and account management are now consolidated into Settings, with billing managed on the web.
- Unpaid accounts are limited to Home and Settings access.
- Home search now focuses on workspaces and remains visible while scrolling.
- Bug Fixes
- Improved social sign-in button alignment and spacing.