Skip to content

Feat/user profile#96

Open
Prateekiiitg56 wants to merge 2 commits intoBDutta18:mainfrom
Prateekiiitg56:feat/user-profile
Open

Feat/user profile#96
Prateekiiitg56 wants to merge 2 commits intoBDutta18:mainfrom
Prateekiiitg56:feat/user-profile

Conversation

@Prateekiiitg56
Copy link

PR Title: Feat: Add comprehensive user profile page

Overview
This pull request introduces a new, feature-rich user profile page (profile.html) that allows logged-in users to view and manage their personal fitness information. This feature enhances the user experience by providing a centralized dashboard for tracking progress and updating details, making the application feel more personalized and interactive.

The implementation continues to use the simple and reliable localStorage system, ensuring the new features work without requiring external services or complex setup.

Key Features Implemented
User Details Display:

The page dynamically displays the user's name, email, and a profile picture.

It also shows mock data for membership type and status (e.g., "Yearly Plan - Active").

Editable Information:

Users can now edit their display name directly on the profile page.

Users can also edit their contact number and fitness goal. Changes are saved and persist across sessions.

Fitness Tracking:

Weight/BMI Tracking: Users can add new weight entries, which are displayed in a reverse chronological list.

Workout History: Users can log their workouts (e.g., "Chest Day"), which are also displayed in a historical list.

Seamless Integration:

The index.html navigation bar has been updated to link directly to this new profile page when a user is logged in.

The page is fully themed to match the existing design of the website.

How to Test
Log in to the application via the login.html page.

On the index.html homepage, click on your "Welcome, [username]!" message in the navigation bar.

You should be redirected to the new profile.html page.

Verify that your name, email, and default profile data are displayed correctly.

Click the "Edit" button next to your name, change it, and click "Save". Verify the name updates.

Click the "Edit" button in the "Personal Information" section, change the contact number and goal, and click "Save". Verify the information updates.

Add a new entry to the "Weight / BMI Tracking" and "Workout History" sections and verify they appear at the top of their respective lists.

Navigate back to the homepage and verify your (potentially new) name is still displayed correctly.

This PR adds significant value to the user experience and provides a solid foundation for future profile-related features.

bodycraft3 bodycraft4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant