feat(onboarding): persona-driven swipe onboarding#5991
Open
davidercruz wants to merge 4 commits intomainfrom
Open
feat(onboarding): persona-driven swipe onboarding#5991davidercruz wants to merge 4 commits intomainfrom
davidercruz wants to merge 4 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
689fc74 to
b56d02f
Compare
Combines the swipe onboarding flow with the persona picker and removes the user-facing free-text prompt. Users now pick up to three personas; the prompt sent to onboardingDiscoverPosts is built silently from the persona titles + tags + the user's experienceLevel from registration. The "Show popular posts" fallback is preserved. - PersonaSelector gains a 'seed' mode that emits onSelectionChange instead of immediately following persona tags (the legacy 'follow' mode is unchanged for the EditTag flow). - New buildSwipePrompt utility composes a deterministic prompt string from personas + experience level, with unit-test coverage. - Shared SwipePersonaIntro component renders the pre-swipe panel for both the funnel step and the /onboarding/swipe preview. - featureManagement.ts skip-listed for strict typecheck while the bundler-resolution / @growthbook exports issue is addressed separately.
b56d02f to
8ba6eb0
Compare
Right-swipes (accepts) tick swipesCount toward the 10-post unlock; left swipes still feed handleAdaptiveSwipe so the deck keeps learning the dislike signal but no longer move the bar or trigger the milestone burst.
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.
Changes
Combines the swipe onboarding flow (#5865) with the persona picker (#5939) and removes the user-facing free-text prompt. Users now pick up to three personas; the prompt sent to
onboardingDiscoverPostsis built silently from the persona titles + tags + the user'sexperienceLevelfrom registration. The "Show popular posts" fallback is preserved for users who skip persona selection.Implementation notes:
PersonaSelectorgains amode: 'follow' | 'seed'prop so the swipe path can read the selection without batch-following tags upfront, and the pre-swipe panel is shared betweenFunnelSwipeOnboardingStepand the standalone/onboarding/swipepreview via a newSwipePersonaIntrocomponent.Events
Experiment
Yes — the swipe flow remains gated by the existing
swipe_onboardingGrowthBook flag (defaulttruein code, controlled at the experiment level). No new experiment introduced in this PR.Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
On those affected packages:
Did you test the modified components media queries?
Did you test on actual mobile devices?
Preview domain
https://davidercruz-swipe-personas.preview.app.daily.dev