Repository navigation
feat(mobile): let people listen before signing up - #14834
Merged
Merged
Conversation
|
dylanjeffers
force-pushed
the
claude/mobile-guest-listening
branch
from
December 5, 2026 17:36
3ef6739 to
2382502
Compare
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
force-pushed
the
claude/mobile-guest-listening
branch
from
December 5, 2026 19:12
c522bf5 to
614e455
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_upflag 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
Plays never prompt. A play-count prompt can be added later by dispatching
openSignOn(false)from wherever plays are counted;watchOpenSignOnSaga.tsdoes the rest.How
RootScreenkeeps the app mounted for people without an account and registersSignOnStackas 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.openSignOnfrom 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.window.location.pathname, which doesn't exist on mobile, soopenSignOnwould 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./signupand/signinlinks still open sign-up.Hedgehog, the password, the emailed code and account creation are unchanged.
Test plan
Notes
SignOnScreen.tsxuses the same plain icon style as the redesign's back button, top right over the glass backdrop. Also touchesAppTabsScreen.tsxandBottomTabBar.tsx, which the Duo PRs change, andActionsBar.tsxin now playing.useFollowUserdirectly (suggested follows, some recommendation rows) and downloads don't prompt yet.Generated by Claude Code