Skip to content

feat(mobile): let people listen before signing up - #14834

Merged
dylanjeffers merged 4 commits into
mainfrom
claude/mobile-guest-listening
Dec 5, 2026
Merged

dylanjeffers merged 4 commits into
mainfrom
claude/mobile-guest-listening

Conversation

@dylanjeffers

@dylanjeffers dylanjeffers commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Before: opening the mobile app without an account shows the sign-up screen. Nothing can be played until someone gives an email, a password and an emailed code.

After: with the mobile_listen_before_sign_up flag on, people without an account land on Trending and can play, browse, search and open shared links. Sign-up opens over the app, with a close button, the moment they do something that needs an account. Once they finish, they're back where they were, and the music never stopped.

The flag defaults to on in every environment (a code default in flagDefaults). People without an account have no user id, so Optimizely can't target them and the code default is what they get; switching it off for them takes a code change and an OTA. Once someone starts without an account, they stay in listen-first mode for the session, so if Optimizely reads the flag as off after they sign in (it returns off for a flag it doesn't know), the app isn't swapped out mid sign-up.

What opens sign-up

  • Favorite (track tile, track page, now playing, overflow menu), repost, follow, add to playlist or album
  • Commenting (tapping the comment field), reacting to or replying to a comment
  • Message, Send Coins, and buying (mobile has no guest checkout, so the purchase drawer hands off to sign-up instead of showing a blank sheet)
  • The Feed, Library and Notifications tabs, and the header avatar

Plays never prompt. A play-count prompt can be added later by dispatching openSignOn(false) from wherever plays are counted; watchOpenSignOnSaga.ts does the rest.

How

  • RootScreen keeps the app mounted for people without an account and registers SignOnStack as a full-screen modal over it. The app stays mounted until sign-up finishes, then the modal goes away. With the flag off, the screens are exactly as before.
  • Repost and follow already dispatch openSignOn from the shared sagas, which on mobile did nothing. A new mobile saga opens the sign-on stack when the app and sign-on are both mounted.
  • The sign-on reducer read window.location.pathname, which doesn't exist on mobile, so openSignOn would throw there. It now falls back to the current value.
  • useRequiresAccountHandler / useOpenSignOn (mobile) wrap the tan-query and UI-only actions that never went through those sagas.
  • Content deep links open directly for people without an account; /signup and /signin links still open sign-up.

Hedgehog, the password, the emailed code and account creation are unchanged.

Test plan

  • Fresh install or signed out, flag on: app opens on Trending, tracks play, search and track/profile pages work.
  • Favorite, repost, follow, comment, message and buy each open sign-up over the app; the close button returns to the same screen with playback still going.
  • Feed, Library, Notifications tabs and the header avatar open sign-up.
  • Finish sign-up from one of those prompts: you land back in the app with the welcome drawer, not on a blank screen.
  • Sign in to an existing account from the prompt.
  • Open a shared track link while signed out: the track opens.
  • Flag off: signed-out flow is the same as today.
  • Signed-in users: nothing changes.

Notes

  • Rebased onto the sign-up redesign (feat(mobile): glass redesign of the sign-up flow and Harmony inputs #14835). The close button on SignOnScreen.tsx uses the same plain icon style as the redesign's back button, top right over the glass backdrop. Also touches AppTabsScreen.tsx and BottomTabBar.tsx, which the Duo PRs change, and ActionsBar.tsx in now playing.
  • After signing out with the flag on, people stay in the app as listeners rather than seeing sign-in.
  • Follow-ups, not in this PR: follow buttons that call useFollowUser directly (suggested follows, some recommendation rows) and downloads don't prompt yet.

Generated by Claude Code

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 614e455

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers
dylanjeffers force-pushed the claude/mobile-guest-listening branch from 3ef6739 to 2382502 Compare December 5, 2026 17:36
Behind the new mobile_listen_before_sign_up flag (on in development, off
in production), people without an account land in the app on Trending
instead of the sign-up screen. Sign-up opens over the app, with a close
button, when they do something that needs an account:

- favorite, repost, follow, add to playlist, comment, react or reply
- message, send coins or buy
- open the Feed, Library or Notifications tab, or tap the header avatar

The app stays mounted under sign-up until it finishes, so playback keeps
going and people land back where they were. Content deep links open
directly instead of redirecting to sign-up.

The shared sagas already dispatch openSignOn for repost and follow; a
mobile saga now handles it by opening the sign-on stack. The sign-on
reducer no longer reads window.location, which doesn't exist on mobile.

Hedgehog and authentication are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename the mobile hook to useRequiresAccountHandler so eslint doesn't treat
it like web's deps-taking useRequiresAccountCallback, and guard the root
navigation state in the open-sign-on saga.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Default mobile_listen_before_sign_up to on in every environment. People
without an account have no user id, so the code default is what they get.
Once someone starts without an account, keep them in listen-first mode for
the session so a signed-in flag read can't swap the app out mid sign-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dylanjeffers
dylanjeffers force-pushed the claude/mobile-guest-listening branch from c522bf5 to 614e455 Compare December 5, 2026 19:12
@dylanjeffers
dylanjeffers merged commit 298927b into main Dec 5, 2026
28 checks passed
@dylanjeffers
dylanjeffers deleted the claude/mobile-guest-listening branch December 5, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants