feat: Implemented User Profile Page issue: #143 #150
Merged
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.
Description
This PR introduces several new features and components to the User Profile page, enhancing the user experience and functionality. The following key features have been implemented:
Changes
1. User Profile Page Layout
Address.
2. Account Details Component
3. Wishlist Component
4. Purchased Items Component
5. Payment Methods Component
6. Address Component
7. Prisma Schema Updates
8. Wishlist Controller
addToWishlist
FunctionAdds a product to the wishlist.
Removes the product from the wishlist if it already exists.
getWishlist
Function9. PrivateRoute Component
PrivateRoute
ComponentPrivateRoute
component to protect routes that should only be accessible to logged-in users.##Bug Fixes
user profile page
andlogout
.privateroute
component for preventing user to visitprofile page
,cart page
without login.Before:
After:
How to test
1. Setup:
2. Accessing User Profile Page:
3. Testing Wishlist Functionality:
4. Testing PrivateRoute:
It fixes the issue #143 .