Skip to content

feat: build mentor portal page #64

Description

@EmeditWeb

Problem

There is no mentor portal page in the app. Mentors who click "Mentor" on the Dashboard or "Vouch for Learners" CTA are taken to /vouch which is a vouch management page, not a full mentor dashboard. The product vision requires a dedicated mentor portal with:

  • Mentor profile showing own reputation score and tier
  • Vouch requests list
  • Active vouches list with expiry and repayment status
  • Vouch impact preview
  • Revoke vouch with confirmation
  • Vouch risk warning

Root Cause

The mentor portal was never built. Only the vouch management sub-page exists (Vouch.tsx).

What To Build

  1. Create /mentor route with mentor dashboard layout
  2. Add mentor profile section showing reputation, tier, and stats
  3. Move vouch request list from Vouch.tsx into mentor portal
  4. Add active vouches list with revoke functionality
  5. Add loading, error, and empty states for all sections
  6. Add auth guard to ensure only mentors can access

Files To Touch

  • src/router/index.tsx — add /mentor route
  • src/pages/MentorDashboard.tsx — new file
  • src/services/vouching.service.ts — ensure API calls exist
  • src/hooks/useMentor.ts — new hook for mentor data

Acceptance Criteria

  • Mentor portal accessible at /mentor
  • Profile shows reputation score, tier, and stats
  • Vouch requests list with accept/decline actions
  • Active vouches list with revoke confirmation dialog
  • Loading, error, and empty states for all sections
  • Auth guard blocks non-mentors

Mandatory Checks

  • context/ files read
  • npm run build passes
  • npm test passes, count not decreased
  • PR references this issue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions