-
Notifications
You must be signed in to change notification settings - Fork 2
Add Basic Mentorship Request UI (MVP Version) #386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces a complete mentorship feature enabling users to discover, filter, and request connections with approved mentors. It includes backend API routes for fetching and seeding mentor data, new UI components for displaying mentor profiles with filtering capabilities, and a page orchestrating the mentorship discovery experience. Changes
Sequence DiagramsequenceDiagram
participant User
participant MentorshipPage as Mentorship Page
participant API as /api/mentors
participant Supabase
participant RequestDialog
User->>MentorshipPage: Land on page / Update search/filters
MentorshipPage->>MentorshipPage: Debounce search & filter state
MentorshipPage->>API: GET /api/mentors?search=...&expertise=...&type=...
API->>Supabase: Query mentor_applications (approved, filtered)
Supabase-->>API: Return mentor records
API-->>MentorshipPage: JSON list of mentors
MentorshipPage->>MentorshipPage: Set mentors state, stop loading
MentorshipPage->>MentorshipPage: Render MentorCard grid (animated)
User->>MentorshipPage: Click "Request Mentorship" on card
MentorshipPage->>RequestDialog: Open dialog with mentor details
User->>RequestDialog: Enter message & click Submit
RequestDialog->>RequestDialog: Simulate API call (loading)
RequestDialog->>RequestDialog: Show success toast
RequestDialog->>RequestDialog: Close dialog & reset
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR introduces the initial MVP of the Mentorship Request feature.
The current implementation focuses purely on the frontend workflow, without any backend integration.
What’s Included
“Request Mentorship” button now opens a dialog box.
Students can type a custom message for the mentor.
“Send Request” triggers:
No actual request is stored or sent — this is purely UI-level functionality.
What’s NOT Included (intentionally for now)
Why this MVP?
This keeps the build lightweight and allows us to validate:
Before investing in a full backend pipeline.
Next Steps (Planned for Future PRs)
mentorship_requeststableAuthored by: @akshay0611
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.