arch-atlas

Profile Routes + Providers

core/routing/app_router.dart · /profile-menu, /profile, /manage-profile, /profile-setup

di

Overview

Four GoRoutes: /profile-menu (ProfilePage menu), /profile (ProfileDetailsPage), /manage-profile (editor), /profile-setup (legacy wizard, OUTSIDE the ShellRoute for full-screen wizard UX).

User Flow

  1. Auth redirect (see auth feature) bounces incomplete-profile users to /profile-setup or /onboarding_register based on isPendingSellerRegistration.
  2. Profile menu pushes to /manage-profile or /settings.
  3. /profile-setup is outside the ShellRoute → no nav bar.

Cases & Edge Cases

  • Direct deep-link to /profile-setup with profile already complete bounces back to /home via the auth guard.
  • /profile-menu is the route name 'profileMenu' even though the URL is /profile-menu — keep the name in sync with go_router consumers.

Code References

  • lib/src/core/routing/app_router.dart:326 // /profile-setup (outside ShellRoute)
  • lib/src/core/routing/app_router.dart:354 // /profile-menu
  • lib/src/core/routing/app_router.dart:358 // /profile
  • lib/src/core/routing/app_router.dart:384 // /manage-profile

API Calls

Empty — fill this in later. Open the manifest and add content here.

Notes

If you migrate the legacy wizard out, also update the redirect's pendingOnboardingPath fallback in app_router.dart.