Skip to content

[FE/BE] Seamless Onboarding: Multi-step Registration to Dashboard Redirect #233

Description

@emdevelopa

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions