-
Notifications
You must be signed in to change notification settings - Fork 23
feat: add user profile page with organizations and mock recent activity #392
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
base: main
Are you sure you want to change the base?
Conversation
|
@ayusub is attempting to deploy a commit to the Opcotech Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for opening this pull request! 🥳 |
|
Hey @ayusub, First of all, thank you for the PR! Unfortunately it slipped through the cracks and I've just seen it now, sorry for that. I'm going to give it a review later this week 😊 |
| const user = { | ||
| name: 'Demo User', | ||
| username: 'demo', | ||
| role: 'Senior Software Developer', | ||
| email: 'demo@elemo.app', | ||
| memberSince: 'August 7, 2025', | ||
| status: 'active', | ||
| languages: ['en', 'es'], | ||
| phone: '+12345678900', | ||
| location: '2900 S Congress Ave, Austin, TX', | ||
| links: ['example.com', 'elemo.app'], | ||
| } | ||
|
|
||
| const orgMemberships = [ | ||
| { | ||
| name: 'Acme Corporation', | ||
| email: 'info@acme.com', | ||
| website: 'acme.com', | ||
| members: 3, | ||
| joined: 'Jan 2024', | ||
| role: 'Admin', | ||
| }, | ||
| { | ||
| name: 'TechStart Inc', | ||
| email: 'hello@techstart.io', | ||
| website: 'techstart.io', | ||
| members: 12, | ||
| joined: 'Mar 2024', | ||
| role: 'Developer', | ||
| }, | ||
| ] |
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.
User and org memberships are already available, no need to mock them.
Description
This PR adds a user profile page to the frontend. The page did not previously exist; this implementation includes:
/users/$userIdroute and loaderv1UserGetandv1OrganizationsGetAPIsScreenshots
Testing instructions
Manual verification in the browser
pnpm dev
Open the app in the browser (default Vite dev URL, e.g., http://localhost:5173).
Log in with a test/demo user.
Navigate to /users/:userId (or via the UI if there is a link).
Verify:
Avatar and user name render correctly.
Status badge, username (@handle), title, and “Member since” date show when data is present.
“About”, “Contact Information”, and “Additional Details” sections display the expected fields.
“Organization Memberships” card lists organizations from the API (name, email/website, status, member count, joined date).
“Recent Activity” sidebar shows the static activity timeline.
Checklist
added
Signed-off-by: <YOUR NAME>to the commit trail where<YOUR NAME>ismy name.