Problem
Once a user completes onboarding and selects a role (creator or business), there is no UI anywhere to switch to the other dashboard. The role is persisted to localStorage via RoleContext and /dashboard redirects accordingly — but the user is permanently locked into one role.
A business owner who also creates content, or a creator who later starts a brand, has no way to access the other dashboard without clearing browser storage.
Expected Behavior
Both dashboard sidebars should include a role-switch option — either:
Option A (recommended): A small link at the bottom of the sidebar, above the Help/Logout section:
Switch to Creator Dashboard → (in business sidebar)
Switch to Business Dashboard → (in creator sidebar)
Clicking it navigates to the other dashboard and updates the role in RoleContext so /dashboard redirects correctly on next visit.
Option B: A dropdown in the sidebar header (where it says "AdsBazaar Creator" or "AdsBazaar Business") that lets users toggle.
Files to Change
components/dashboard/creator/sidebar-nav.tsx — add switch link
components/dashboard/business/sidebar-nav.tsx — add switch link
- Both links should call
setRole() from useRole() context + router.push()
Acceptance Criteria
Problem
Once a user completes onboarding and selects a role (creator or business), there is no UI anywhere to switch to the other dashboard. The role is persisted to
localStorageviaRoleContextand/dashboardredirects accordingly — but the user is permanently locked into one role.A business owner who also creates content, or a creator who later starts a brand, has no way to access the other dashboard without clearing browser storage.
Expected Behavior
Both dashboard sidebars should include a role-switch option — either:
Option A (recommended): A small link at the bottom of the sidebar, above the Help/Logout section:
Clicking it navigates to the other dashboard and updates the role in
RoleContextso/dashboardredirects correctly on next visit.Option B: A dropdown in the sidebar header (where it says "AdsBazaar Creator" or "AdsBazaar Business") that lets users toggle.
Files to Change
components/dashboard/creator/sidebar-nav.tsx— add switch linkcomponents/dashboard/business/sidebar-nav.tsx— add switch linksetRole()fromuseRole()context +router.push()Acceptance Criteria