This repository was archived by the owner on Feb 9, 2026. It is now read-only.
Mobile mentor functionality#572
Merged
Merged
Conversation
Implemented mentor-mentee relationship management, including viewing, requesting, accepting, rejecting, and terminating mentorships. Added a user search bar with dropdown results and profile navigation. Goals are now visible for own profile and for mentees when viewed by their mentor. Updated queries, mutations, and UI to support these features.
Mobile mentor functionality final
Eliminated the user search bar, related state, query logic, and search results modal from the Profile page. This streamlines the component by removing unused or deprecated user search features.
Ayhan-coder
requested review from
abdullahumuth and
yusufakdogan0
and removed request for
yusufakdogan0
November 23, 2025 20:30
Contributor
Author
|
Hi @SouthAscend, @abdullahumuth, |
SouthAscend
approved these changes
Nov 24, 2025
SouthAscend
left a comment
Contributor
There was a problem hiding this comment.
The mentor functionality still needs a lot of work but this branch successfully shows the current mentors and mentees on the profile page. Merging this but an additional branch is needed to comlpete the mentor feature.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corresponding issue
Mobile Mentor-Mentee Functionality Implementation
Description
Implemented complete mentor-mentee relationship management in the mobile app's Profile page, mirroring the web frontend implementation. Users can now send/receive mentor requests, accept/reject relationships, and view their mentors and mentees directly from the mobile profile interface.
Changes Made
Features
API Endpoints
/api/mentor-relationships/: Create new mentor-mentee relationship/api/mentor-relationships/user/: Fetch all relationships for current user/api/mentor-relationships/{id}/status/: Update relationship status (ACCEPTED, REJECTED, TERMINATED)/api/users/: Fetch list of all users/api/user/: Fetch current authenticated user/api/goals/?username={username}: Fetch goals for a specific user/api/profile/: Fetch own profile details/api/profile/other/{username}/: Fetch another user's profile detailsTechnical Details
useMemohooks for efficient relationship state calculationsgetSanitizedAuthHeader()helper to handle optional Authorization headersTesting
Dependencies
@tanstack/react-query: For data fetching and state management (already present)@react-navigation/native: For navigation (already present)react-native-paper: For Material Design UI components (already present)@react-native-cookies/cookies: For CSRF token handling (already present)Documentation
Checklist