Skip to content

Role Selection on Wallet Connect with Adaptive nav and CTAs#55

Merged
johneliud merged 9 commits into
mainfrom
feat/role-based-navigation
Jun 7, 2026
Merged

Role Selection on Wallet Connect with Adaptive nav and CTAs#55
johneliud merged 9 commits into
mainfrom
feat/role-based-navigation

Conversation

@johneliud

Copy link
Copy Markdown
Owner

Description

Replaces the confusing dual client/freelancer navigation with a role selection modal that appears after wallet connect. The entire UI — nav links, hero CTAs, and bottom CTA — adapts to the selected role.

Type of Change

  • New feature
  • Refactor / cleanup

Changes Made

  • RoleContext — stores "client" | "freelancer" in localStorage under milestack_role; exposes setRole and clearRole
  • RoleSelector modal — appears after wallet connect when no role is stored; two cards: "I want to hire" (→ /client) and "I want to work" (→ /freelancer)
  • Navbar — nav links collapse to role-relevant links only (Browse Projects + Dashboard); role chip (with switch icon) lets users change role anytime without disconnecting
  • LandingHeroCta — client sees "Post a project / Go to Dashboard"; freelancer sees "Browse open projects / Go to Dashboard"; no role sees the original defaults
  • LandingBottomCta — client sees "Ready to find top talent?" copy + "Post a project" button; freelancer/no-role sees the original "Your skills deserve global pay" copy
  • layout.tsx — wraps app with RoleProvider and renders RoleSelector globally

Related Issue

Closes #54

Testing

  • Tested locally
  • All existing pages still load correctly
  • No errors in the server log
  • npx tsc --noEmit — 0 errors
  • npm run build — clean production build

Checklist

  • Code follows the existing style
  • No hardcoded secrets or credentials
  • .env.example updated if new env vars were added
  • README updated if setup steps changed

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mile-stack Ready Ready Preview, Comment Jun 7, 2026 11:53am

@johneliud johneliud changed the title feat: role selection on wallet connect with adaptive nav and CTAs Role Selection on Wallet Connect with Adaptive nav and CTAs Jun 7, 2026
@johneliud johneliud self-assigned this Jun 7, 2026
@johneliud johneliud merged commit 125cd28 into main Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: role selection on wallet connect with adaptive navigation and CTAs

1 participant