feat: savings goals questionnaire for new and returning users - #157
Open
brendaasfjnso wants to merge 10 commits into
Open
feat: savings goals questionnaire for new and returning users#157brendaasfjnso wants to merge 10 commits into
brendaasfjnso wants to merge 10 commits into
Conversation
Add a hero banner at the top of the dashboard per Figma 4055:26607: a
photo background with a branded blue wash, a large uppercase title
("Save money together faster"), a subtitle, and two buttons — a primary
"Create new Stack" (links to /new) and a secondary "How does it work"
(opens the onboarding modal).
Uses the existing /hands.jpg asset for the background.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Wire the hero banner's "How does it work" button to a new modal showing 7 onboarding steps and an accordion FAQ section, matching the Figma design (node 3985-25761). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Icon lines use #1c5bb9 (primary blue), icon backgrounds use #f6f3eb - Modal widens to 35.5rem on desktop, text scales down on mobile - Content hugs naturally via ModalContainer (no fixed height) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add stepped onboarding modals for two occasions: - First-time visitor (6 steps): account creation through claiming rounds - Logged-in user (5 steps): wallet funding through claiming rounds Test via query params: ?onboarding=visitor or ?onboarding=logged-in Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4-step onboarding questionnaire shown on first login: 1. What are you saving for? (multi-select cards) 2. How much are you looking to save? (single-select chips) 3. What's your timeline? (single-select chips) 4. How much can you save per month? (single-select chips) Includes progress indicator, Skip for now, and API route to persist responses to Supabase savings_goals table. Test via: ?onboarding=savings-goals Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
New users: questionnaire appears after alias setup, transitions to wallet funding on completion. Returning users without a completed questionnaire see it on login. Adds GET /api/savings-goals endpoint for completion checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for app-stacks ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Drop multi-step financial questions (timeline, amount, monthly) - Keep only "What are you saving for?" with card UI, single select - Show inline on /new page (between tutorial and stack creation form) - Show as popup after accepting a stack invite (?joined=true) - Create /account page with "Your saving goals" module (view/edit) - Add "My Account" nav link - Simplify API to single goal field - Remove savings goals trigger from LoginTracker Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ccount page - Replace 8 icon-card goals with 12 text-based chip options matching design - Bring account page structure from development (/account/[address]) - Add "Your saving goals" section between Profile and Stacks overview - Show selected goals as tags with icons on account page - Add Set Alias modal, profile API route, and supporting hooks - Update useUserStacksMetadata to use wallet address instead of privy ID Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
GET /api/savings-goals; shows the questionnaire if not yet completedPOST /api/savings-goalswith partial/complete tracking?onboarding=savings-goals(returning user flow) and?onboarding=savings-goals-new(new user flow with funding next)Test plan
/?onboarding=savings-goals— questionnaire should appear and close on completion/?onboarding=savings-goals-new— questionnaire should appear, then transition to wallet funding modal on completionGET /api/savings-goals?privyUserId=Xreturns{ completed: false }for users without goalssavings_goalstable in Supabase before testing API routes🤖 Generated with Claude Code
Closes #102