Description
The flow from registering to actually using the dashboard is disconnected. We need a seamless redirect path: Register -> Auto-Login (or verify email) -> Redirect to /dashboard.
Requirements and context
- After successful
POST /api/register-merchant, the backend should return a session JWT.
- Frontend should save this JWT and immediately redirect the user to
/dashboard.
- Use a 'Welcome' modal/toast to congratulate the user and point them toward creating their first payment.
Suggested execution
- Fork the repo and create a branch: git checkout -b feature/onboarding-flow
- Implement changes:
- Update
RegistrationForm.tsx to handle post-signup state.
- Integrate with
lib/auth.ts for persistence.
- Test and commit:
- Perform a full registration flow and verify the landing state at
/dashboard.
Example commit message
feat: connect registration to dashboard redirect flow
Guidelines
- Minimum 95 percent test coverage on auth redirects.
- Complexity: High (200 points)
Description
The flow from registering to actually using the dashboard is disconnected. We need a seamless redirect path: Register -> Auto-Login (or verify email) -> Redirect to
/dashboard.Requirements and context
POST /api/register-merchant, the backend should return a session JWT./dashboard.Suggested execution
RegistrationForm.tsxto handle post-signup state.lib/auth.tsfor persistence./dashboard.Example commit message
feat: connect registration to dashboard redirect flow
Guidelines