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.
Summary
Implement a feature to display the user's profile page skeleton and update the header component to include the user's profile link.
Details
feat: profile page skeleton
pull request aims to introduce a feature that displays the user's profile page skeleton and update the header component to include the user's profile link.AddIcon
import from the@repo/ui/icons
package in theheader.tsx
file.userId
prop to theHeader
functional component in theheader.tsx
file.Header
component to include aLink
element that navigates to the user's profile page.page.tsx
file under theapps/web/app/(dash)/user/[userId]
folder, which defines a functional component for rendering the user's profile page skeleton.getUserData
function in thefetchers.ts
file to fetch the logged-in user's data.Layout
functional component in thelayout.tsx
file is updated to pass theuserId
prop to theHeader
component.Link
element in theheader.tsx
file is updated to construct the user's profile URL dynamically using theuserId
prop.getUserData
function in thefetchers.ts
file is designed to fetch the logged-in user's data using the Drizzle ORM query interface. It returns an object containing the fetched user data or an error message, along with a success status indicator.Original Description