Open dknoern opened 1 month ago
We'll need to store user profile information that isn't provided by Auth0.
model UserProfile {
id String @id @default(cuid())
userId String @unique
name String?
title String?
interests String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Create an API route to handle profile data operations:
/app/api/profile/route.ts
Create a new profile page under the dashboard:
/app/dashboard/profile/page.tsx
/components/profile/form.tsx
Add a profile link to the app sidebar:
/components/app-sidebar.tsx
:
Enhance the UserButton component to:
Ensure the sidebar automatically closes after navigation for mobile users, as per user preferences.
Based on user preferences:
Add a user "profile" page where the user can set name, title, and interests or hobbies. All the user to save these details. Create a nav link to this new page.