feat(onboarding): remove referral step, drop welcome network gate#765
feat(onboarding): remove referral step, drop welcome network gate#765jwalin-shah wants to merge 1 commit into
Conversation
Onboarding flow is now Welcome -> Skills -> Context. The referral
prefetch (referralApi.getStats()) was the only async gate disabling
Welcome's Next button ("Checking account..."), so removing it also
materially speeds up perceived first-open load.
- Strip referral state, effect, and navigation fork from Onboarding.tsx
- Keep ReferralApplyStep.tsx on disk, unimported (referral may return)
- referralApi untouched (still used by Rewards/Invites/Billing)
Closes tinyhumansai#752. Addresses tinyhumansai#692 for the signed-in first-open path.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoved referral gating and step from onboarding flow in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
withdrawn for review |
Summary
referralApi.getStats()prefetch that was disabling Welcome's Next button with "Checking account…" — the main perceived-load gate on signed-in first-open.ReferralApplyStep.tsxis preserved on disk, just no longer imported, so the step can return later without a rewrite.referralApiis untouched; still consumed by Rewards, Invites, and Billing.Problem
referralApi.getStats()round-trip ("Checking account…"), which is exactly the perceived-load hit users noticed.Solution
Single-file change in
app/src/pages/onboarding/Onboarding.tsx:referralApi/ReferralApplyStepimports.hasReferralFromProfile,resolveOnboardingStep,skipReferralStep,referralStatsToken,skipReferralFromStats,referralAppliedThisSession, andreferralGateReady.useEffect.0Welcome →1Skills →2Context.nextDisabled/nextLoading/nextLoadingLabel— Next is immediately interactive.handleBacksimplified; back/forward navigation through the 3-step flow works as expected.Overlap with #759
None at the file level — #759 touches
WelcomeStep.tsx,ContextGatheringStep.tsx, and privacy components; this PR only editsOnboarding.tsx. The only interaction is that Welcome's optionalnextDisabled/nextLoadingprops are no longer passed. Merge order doesn't matter.Submission Checklist
yarn test:unit src/pages/onboardinggreen (9/9 acrossSkillsStep.test.tsxandLocalAIStep.test.tsx). No referral-specific unit test existed; none removed.yarn compile,yarn lint,prettier --checkall clean.login-flow.spec.ts(touched by feat(onboarding,ui): trust-first onboarding + Button primitive + honest privacy surface #759) does not assert on the referral step. Manual verification pending on a built bundle; deferring to CI.Impact
referralApiis still wired everywhere else).OnboardingOverlay) left for a separate PR to keep this cut minimal.Related
Summary by CodeRabbit