Skip to content

feat: Add Profile button and navigation route#934

Open
pujaux wants to merge 2 commits into
Charushi06:mainfrom
pujaux:fix-profile-button
Open

feat: Add Profile button and navigation route#934
pujaux wants to merge 2 commits into
Charushi06:mainfrom
pujaux:fix-profile-button

Conversation

@pujaux
Copy link
Copy Markdown

@pujaux pujaux commented May 29, 2026

Related Issue

Closes #928

Summary

This pull request introduces a new "Profile" page to the application. It includes a navigation button in the header and the necessary server-side routing to handle requests to the new page.

Changes Made

UI: Added a "Profile" button to the main dashboard header to improve user navigation.

Routing: Implemented a new app.get('/profile', ...) route in server.js to serve the profile.html file.

File Addition: Created public/profile.html to display user profile information.

Testing

Verification: Confirmed that clicking the "Profile" button correctly navigates to the /profile route.

Server: Tested locally to ensure the server correctly identifies the route and serves the static HTML file without 404 errors.

Screenshots

Before:
Screenshot (1775)
After:
Screenshot (1826)
-"My Profile" heading, confirming the page successfully loaded.

-"This is your profile page!" text, confirming the HTML content is rendering correctly.

-"Back to Dashboard" link, confirming the user has a way to navigate back.

Checklist

  • Code follows project style
  • Tested locally
  • No unrelated changes included
  • Documentation updated (if applicable)

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.

bug: Profile button non-functional due to JavaScript error in app.js

1 participant