Skip to content

feat: add dropdown menu with logout to user profile button#403

Closed
Manav5234 wants to merge 1 commit into
MRIARC-08:mainfrom
Manav5234:feat/user-profile-dropdown
Closed

feat: add dropdown menu with logout to user profile button#403
Manav5234 wants to merge 1 commit into
MRIARC-08:mainfrom
Manav5234:feat/user-profile-dropdown

Conversation

@Manav5234

Copy link
Copy Markdown
Contributor

Fixes #299

Problem

Clicking the user's name ("Manav Kumar") in the top right of the dashboard did nothing. There was no way for a user to log out from the dashboard.

Fix

Added a hover dropdown menu to the user profile button with two options:

  • Profile → navigates to /profile
  • Logout → calls /api/auth/signout

Changes

  • src/app/dashboard/page.tsx: Wrapped user name in a group relative div with an absolutely positioned dropdown that appears on hover using Tailwind group-hover:block

How it works

  • User name shows a small chevron arrow indicating it is clickable
  • Hovering over the name reveals a dropdown menu
  • Profile link navigates to the profile page
  • Logout button signs the user out

Note

Could not test locally as dashboard requires database authentication. Code logic verified syntactically with no errors in VS Code.

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

@Manav5234 is attempting to deploy a commit to the Adarsh's projects Team on Vercel.

A member of the Team first needs to authorize it.

@MRIARC-08 MRIARC-08 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Manav5234 Thanks for the PR. The scope is small and it merges cleanly, but I can’t merge this version yet.

  • Focused lint on src/app/dashboard/page.tsx fails with 6 Prettier errors.
  • The dropdown is currently hover-only via group-hover, so it will not work reliably on touch devices or keyboard focus. Please make the profile trigger a real button and support click/focus interaction for opening the menu.

After that, rerun focused lint on src/app/dashboard/page.tsx.

@MRIARC-08

Copy link
Copy Markdown
Owner

@Manav5234 Closing this for now because the requested changes have been pending for more than 3 days without a follow-up commit.

The remaining blockers were the formatter issues and making the dropdown work reliably beyond hover. Since this is UI-facing, it will also need manual design review before merge.

Please reopen or create a fresh PR once those fixes are pushed.

@MRIARC-08 MRIARC-08 closed this Jun 25, 2026
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.

feat: Add dropdown menu with logout option to user profile button

2 participants