Skip to content

ux: No way to switch between creator and business dashboards after onboarding #126

Description

@codeX-james

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

  • Creator sidebar has a link to switch to business dashboard
  • Business sidebar has a link to switch to creator dashboard
  • Clicking the link updates the role in localStorage (so /dashboard redirects correctly)
  • User lands on the correct dashboard after switching
  • Link is visually subtle — not a primary CTA, more like a utility link

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions