Skip to content

Profile picture dropdown menu front end (not functional)#26

Open
slageyuri wants to merge 2 commits intomainfrom
profile-dropdown-menu
Open

Profile picture dropdown menu front end (not functional)#26
slageyuri wants to merge 2 commits intomainfrom
profile-dropdown-menu

Conversation

@slageyuri
Copy link
Collaborator

@slageyuri slageyuri commented Oct 14, 2025

Added profile picture to the nav-bar + drop down menu when you click on the profile picture. It has 2 options, "My Profile" and "Logout". Logout take you to the login page, but My Profile is not functional yet.

Description by Korbit AI

What change is being made?

Add a profile picture to the top navbar with a dropdown menu containing user info and links (My Profile, Logout), along with a lightweight JavaScript toggle to show/hide the submenu.

Why are these changes being made?

Provide a front-end UI for user profile actions and prepare for authentication wiring; the dropdown is currently non-functional beyond UI toggle and static links.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Design Use Django URL template tag ▹ view ✅ Fix detected
Functionality Empty href in My Profile link ▹ view ✅ Fix detected
Performance Unnecessary DOM query at page load ▹ view ✅ Fix detected
Design Move inline JavaScript to external file ▹ view ✅ Fix detected
Documentation Improve dropdown menu documentation ▹ view ✅ Fix detected
Readability Inline JavaScript Handler ▹ view ✅ Fix detected
Files scanned
File Path Reviewed
resumax_backend/resumax_algo/templates/resumax_algo/index.html

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

<h3>{{ user.username }}</h3>
</div>
<hr>
<a href="" class="sub-menu-link">

This comment was marked as resolved.

Comment on lines +123 to +127
let subMenu= document.getElementById("subMenu");

function toggleMenu(){
subMenu.classList.toggle("open-menu");
}

This comment was marked as resolved.

<p>{{ user.username }}</p>
<div class="user-section">
<p>{{ user.username }}</p>
<!--Profile Picture drop down menu-->

This comment was marked as resolved.

Comment on lines +122 to +128
<script>
let subMenu= document.getElementById("subMenu");

function toggleMenu(){
subMenu.classList.toggle("open-menu");
}
</script>

This comment was marked as resolved.

<p>My Profile</p>
<span>></span>
</a>
<a href="http://127.0.0.1:8000/auth/login/" class="sub-menu-link">

This comment was marked as resolved.

Comment on lines +55 to +56
<!--Profile Picture drop down menu-->
<img src="{% static 'images/profile-pic.png' %}" class="user-picture" onclick="toggleMenu()">

This comment was marked as resolved.

@coveralls
Copy link

coveralls commented Oct 14, 2025

Pull Request Test Coverage Report for Build 18635170695

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 77.093%

Totals Coverage Status
Change from base Build 18298913830: 0.0%
Covered Lines: 663
Relevant Lines: 860

💛 - Coveralls

Copy link
Collaborator Author

@slageyuri slageyuri left a comment

Choose a reason for hiding this comment

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

changes on unnecessary lines, and making the code more clear

@slageyuri
Copy link
Collaborator Author

Corrections on Korbit review made

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.

2 participants