Skip to content

feat: add mentor portal at /mentor with profile, vouch requests, and … - #95

Merged
EmeditWeb merged 2 commits into
StepFi-app:mainfrom
Emeka-12:feat/mentor-portal
Jul 29, 2026
Merged

feat: add mentor portal at /mentor with profile, vouch requests, and …#95
EmeditWeb merged 2 commits into
StepFi-app:mainfrom
Emeka-12:feat/mentor-portal

Conversation

@Emeka-12

Copy link
Copy Markdown
Contributor

Summary

This PR introduces the new /mentor route and protects it behind an authentication guard to ensure only authorized mentors can access the dashboard. It implements src/hooks/useMentor.ts alongside API extensions in src/services/vouching.service.ts to manage profile data, reputation scores, and vouch workflows. The core UI component, MentorDashboard.tsx, features a comprehensive mentor profile overview, an interactive vouch request manager with accept/decline actions, and an active vouches tracker complete with repayment monitoring, risk warnings, and a revoke confirmation modal. Finally, all sections include robust loading, error, and empty states, with all changes passing npm run build and npm test cleanly without reducing code coverage.
Closes #64

What changed

  • Add /mentor route with RoleGuard for mentor role
  • Create MentorDashboard page with profile section showing reputation score, tier, and stats
  • Create useMentor hook for mentor data fetching
  • Add vouch requests list with accept/decline from Vouch.tsx
  • Add active vouches list with revoke confirmation dialog and vouch risk warning
  • Loading, error, and empty states for all sections
  • Update role.store.ts mentor route to /mentor
  • Update Dashboard.tsx redirect to /mentor
  • Update Navbar navigation link from Vouch to Mentor
  • Fix existing build errors by adding lucide-react type declarations

…active vouches

- Add /mentor route with RoleGuard for mentor role
- Create MentorDashboard page with profile section showing reputation score, tier, and stats
- Create useMentor hook for mentor data fetching
- Add vouch requests list with accept/decline from Vouch.tsx
- Add active vouches list with revoke confirmation dialog and vouch risk warning
- Loading, error, and empty states for all sections
- Update role.store.ts mentor route to /mentor
- Update Dashboard.tsx redirect to /mentor
- Update Navbar navigation link from Vouch to Mentor
- Fix existing build errors by adding lucide-react type declarations

Closes #PR_REFERENCE
@Emeka-12
Emeka-12 requested a review from EmeditWeb as a code owner July 29, 2026 23:00
@EmeditWeb

Copy link
Copy Markdown
Member

@Emeka-12 please fix conflict

@EmeditWeb EmeditWeb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix merge conflicts and we're good to merge it

@EmeditWeb
EmeditWeb dismissed their stale review July 29, 2026 23:19

merge conflicts solved

@EmeditWeb
EmeditWeb merged commit 663514d into StepFi-app:main Jul 29, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 29, 2026
10 tasks
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: build mentor portal page

3 participants