-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/create user profile page #126
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a user profile feature that displays detailed information about individual users. The implementation includes a new service function, React hook, page route, and a comprehensive profile component with user details and their recent tricks.
- Created
getUserservice function to fetch individual user data from the API - Implemented
useUserhook with React Query for optimized data fetching and caching - Added dynamic user profile page at
/user/[id]route - Built
UserProfilecomponent displaying user avatar, category, location, social links, bio, and recent tricks
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/services/getUser.ts | New service to fetch single user by ID with populated relations |
| src/hooks/useUser.ts | React Query hook for managing user data fetching with caching |
| src/pages/user/[id]/index.tsx | Dynamic route page component for user profiles |
| src/features/user/profile/index.tsx | Full user profile UI component with avatar, info, and tricks gallery |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This pull request has been deployed to Vercel.
|
No description provided.