Project

General

Profile

Actions

Feature #31353

closed

Replace user related links in the top menu bar with a proper user menu.

Feature #31353: Replace user related links in the top menu bar with a proper user menu.

Added by Bernhard Rohloff over 7 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Resolution:
Fixed

Description

At the moment the top menu bar offers several user related links which make the top bar look cluttered and which are often confusing for users.
It would be better to have a proper user menu instead of these links. It's a concept users know from many other websites like GitHub, GitLab and Wordpress etc.

Here for example the user menu in wordpress:


Files

wp_user_menu_top.png (27.6 KB) wp_user_menu_top.png Bernhard Rohloff, 2019-05-13 06:50
0001-move-user-accounts-menu-links-under-a-dropdown-wip.patch (14.5 KB) 0001-move-user-accounts-menu-links-under-a-dropdown-wip.patch Marius BĂLTEANU, 2019-09-09 21:41
user_dropdown.png (256 KB) user_dropdown.png Marius BĂLTEANU, 2019-09-28 23:04
search_and_jump_box_in_top_menu.png (251 KB) search_and_jump_box_in_top_menu.png Marius BĂLTEANU, 2019-09-28 23:06
0001-wip.patch (12.9 KB) 0001-wip.patch Marius BĂLTEANU, 2019-09-29 14:51
0001-wip-antonio-edition-0.9em-topbar-fontsize.patch (12.4 KB) 0001-wip-antonio-edition-0.9em-topbar-fontsize.patch Anonymous, 2019-09-29 16:01
0001-wip-antonio-edition.patch (12.4 KB) 0001-wip-antonio-edition.patch Anonymous, 2019-09-29 16:01
profile-and-my-page@2x.png (92.3 KB) profile-and-my-page@2x.png Go MAEDA, 2019-09-30 03:46
planio@2x.png (26.3 KB) planio@2x.png Go MAEDA, 2019-09-30 04:03
usermenu_github.png (13.3 KB) usermenu_github.png Bernhard Rohloff, 2019-09-30 18:11
user_menu_gravatar.png (51.6 KB) user_menu_gravatar.png Bernhard Rohloff, 2021-12-06 17:56
user_menu_no_gravatar.png (48.3 KB) user_menu_no_gravatar.png Bernhard Rohloff, 2021-12-06 17:56
0003-added-hook-to-right-section-of-the-top-menu.patch (908 Bytes) 0003-added-hook-to-right-section-of-the-top-menu.patch Bernhard Rohloff, 2021-12-06 17:58
0001-moved-user-links-under-a-drop-down-menu.patch (10.9 KB) 0001-moved-user-links-under-a-drop-down-menu.patch Bernhard Rohloff, 2021-12-06 17:58
0002-changed-and-added-tests.patch (2.95 KB) 0002-changed-and-added-tests.patch Bernhard Rohloff, 2021-12-06 17:58
0001-Improve-top-menu-navigation-31353.patch (11.2 KB) 0001-Improve-top-menu-navigation-31353.patch Marius BĂLTEANU, 2026-05-25 22:56
clipboard-202605311829-e9j8p.png (52.9 KB) clipboard-202605311829-e9j8p.png Go MAEDA, 2026-05-31 11:29
0001-Improve-top-menu-navigation-31353.patch (10.2 KB) 0001-Improve-top-menu-navigation-31353.patch Marius BĂLTEANU, 2026-06-13 21:55

Related issues 6 (2 open — 4 closed)

Related to Redmine - Feature #31348: Add tabs to switch between Profile and My account pageNewActions
Related to Redmine - Patch #32115: Move search bar and project selector to the top barNewActions
Related to Redmine - Patch #44293: Add a caret to the account menu to indicate it opens a dropdownClosedMarius BĂLTEANUActions
Related to Redmine - Defect #44443: Top menu is thinner than expected when the user is not logged inClosedMarius BĂLTEANUActions
Related to Redmine - Patch #44341: Increase top menu hover highlight by increasing the padding of the elementsClosedMarius BĂLTEANUActions
Related to Redmine - Patch #44452: Remove unused i18n key label_logged_asClosedGo MAEDAActions

Updated by Bernhard Rohloff over 7 years ago Actions #1

@Marius BALTEANU I've added you to the watchers list because I think to remember you already worked on something like this in the past, didn't you?

Updated by Go MAEDA over 7 years ago Actions #2

  • Related to Feature #31348: Add tabs to switch between Profile and My account page added

Updated by Marius BĂLTEANU over 7 years ago Actions #3

Indeed, I've a working patch, I'll try to post it today (at least for testing purposes).

Updated by Bernhard Rohloff about 7 years ago Actions #4

@Marius have you had time to make any progress on this issue in last time?
If yes, I would love to test it. :-)

Updated by Anonymous about 7 years ago Actions #5

@Marius I would also like to test it, and if it's not ready, we could atleast disassemble it and take a look.

Updated by Marius BĂLTEANU about 7 years ago Actions #6

You can test the attached patch, I'm not very happy with the implementation, but for a first round of feedback, it should be good enough.

Updated by Anonymous about 7 years ago Actions #7

Marius BALTEANU wrote:

You can test the attached patch, I'm not very happy with the implementation, but for a first round of feedback, it should be good enough.

I don't know why you re not very happy with current implementation, but I really quite liked it already. I think even if it's not that super perfect it could be fixed up even more later on.

Updated by Marius BĂLTEANU about 7 years ago Actions #8

I made some progress and I would like to share two screenshots:

1. Move only user related links under a user dropdown:

2. Move search and project jump box to top menu:

Updated by Anonymous about 7 years ago Actions #9

Edit: deleted, because dupe

Updated by Anonymous about 7 years ago Actions #10

Marius BALTEANU wrote:

I made some progress and I would like to share two screenshots

I am all for the second implementation, so we could close #32115 but couple of cents from me:
- It feels like links on the left side are too small for the available space, I think they should be at least the size of text in the white fields on the right side. Please see #32115 where I made links to be a bit bigger.
- Avatar on the fly-out is circle now, while it's not a circle everywhere else, it feels like a super minor, but an inconsistency.

P.S. please add #32115 as related, because now it is :D

Updated by Bernhard Rohloff about 7 years ago Actions #11

Version 2 FTW! This search bar in the header annoys me as hell.
I've tried your patch and looked nice already. One thing I would like to change is the drop-down trigger. I'm used to trigger the drop-down menu on click rather then on hover, but I guess you have had me in mind on your latest screenshots. ;-)

Updated by Marius BĂLTEANU about 7 years ago Actions #12

Bernhard, Antonio, I've reworked the entire patch, you can use the new one for testing. It's more complete, but it still need some work to improve the code and of course, fixes. I've tested only one Chrome.

All 3 proposals were been included.

Feel free to review it.

Updated by Anonymous about 7 years ago Actions #13

Marius BALTEANU wrote:

Bernhard, Antonio, I've reworked the entire patch, you can use the new one for testing. It's more complete, but it still need some work to improve the code and of course, fixes. I've tested only one Chrome.
All 3 proposals were been included.
Feel free to review it.

I am happy :)
I took an in-depth look though, and noticed:

#top-menu .profile-menu li.avatar-menu .drdn-content {
  padding-top: 5px;
  padding-bottom: 5px;
}

I don't think this should exist at all, those paddings make the menu look different from the project jump, maybe not padding-top: 5px; but padding-bottom: 5px; absolutely.
#top-menu {
    background: #3E5B76;
    padding: 2px 6px 0px 6px;
    display: flex;
}

I think padding: 2px 6px 0px 6px; should be changed to padding: 0px 6px 0px 6px; to remove 2 unnecessary pixels of padding from up top. This makes things centered even more, and saves us 2 pixels. :D

I also noticed:

#top-menu ul.nav-list li.nav-item > a {
    font-size: 0.9em;
    color: #fff;
}

Here if you remove/disable font-size: 0.9em; entirely, the avatar in the top menu gets more centered and inline with the other white bars, not sure why it's like that though.

Things seem to work just fine and the same in IE11 too.

I'm attaching 2 versions which I think would be perfect, just in case.

Updated by Go MAEDA about 7 years ago Actions #14

Thank you for writing the patch. I have some requests:

  • Change the link text name to "Profile" (label_profile). The name of page /users/999 is "Profile". I think the correct name should be shown in the menu.
  • Add "My page" to the menu. All pages related to the user will be accessible from the menu if "My page" is added. IMHO it would be a nice UX improvement.

Updated by Go MAEDA about 7 years ago Actions #15

Perhaps we can study from Planio, a Redmine based online service. Planio already has account drop-down.

They offer a freemium plan (Bronze plan, 1 project, 2 users, 1GB), so trying Planio is easy.

Updated by Anonymous about 7 years ago Actions #16

Go MAEDA wrote:

Perhaps we can study from Planio, a Redmine based online service. Planio already has account drop-down.

I like the idea, of moving more links inside user menu :D

Updated by Bernhard Rohloff about 7 years ago Actions #17

Go MAEDA wrote:

Thank you for writing the patch. I have some requests:

  • Change the link text name to "Profile" (label_profile). The name of page /users/999 is "Profile". I think the correct name should be shown in the menu.
  • Add "My page" to the menu. All pages related to the user will be accessible from the menu if "My page" is added. IMHO it would be a nice UX improvement.

I'm also in favor of moving user related links inside the user menu. This makes thinks very easy for new users.
Github's user menu is also a nice case study of this practice. I also like the plus menu next to the user menu. <3

Updated by Bernhard Rohloff about 7 years ago Actions #18

By the way...
... display:block; and padding:0; on the avatar link aligns it vertically with the rest. ;-)

#top-menu ul.nav-list li.nav-item > a {
  font-size: 0.9em;
  color: #fff;
  display: block;
  padding: 0;
}

Updated by Marius BĂLTEANU almost 7 years ago Actions #19

  • Assignee set to Marius BĂLTEANU

Updated by Mischa The Evil almost 6 years ago Actions #20

  • Related to Patch #32115: Move search bar and project selector to the top bar added

Updated by Bernhard Rohloff almost 5 years ago Actions #21

I've made new patches for this feature which apply on the latest trunk.
The menu is based on the existing drop down menu structures and has two versions for usage with and without gravatars. Additionally we can add a new hook to the top menu to make it more extendable by plugin developers to add more widgets like for example a punch clock or notification menu.

Updated by Marius BĂLTEANU 6 months ago Actions #22

  • File 0001-Improve-top-menu-navigation-31353.patch added
  • Target version set to Candidate for next major release
I've reworked the patch:
  • use nav html tag instead of div
  • refactor top menu classes for desktop view based on the flyout menu
  • move administration link before user menu as icon only
  • added a new dropdown component based on Stimulus JS (dropdown_controller.js) with the CSS in dropdown.css
  • apply on hover same style from header links.

Before discussing which links to move under the user menu, I would like first to agree on this first patch.

Updated by Marius BĂLTEANU 6 months ago Actions #23

  • File deleted (0001-Improve-top-menu-navigation-31353.patch)

Updated by Go MAEDA 6 months ago Actions #25

Marius BĂLTEANU wrote in #note-22:

I've reworked the patch:
  • use nav html tag instead of div
  • refactor top menu classes for desktop view based on the flyout menu
  • move administration link before user menu as icon only
  • added a new dropdown component based on Stimulus JS (dropdown_controller.js) with the CSS in dropdown.css
  • apply on hover same style from header links.

Thank you for posting this patch to improve the menu. I think the overall direction is good, and the UI looks more modern.

That said, I feel there is still some room for improvement in the following areas.

  • The top menu feels slightly too tall. It might look better if the icon size and padding were reduced a little.
  • I found changing "Administration" to an unlabeled gear icon somewhat unclear. Personally, I prefer keeping the "Administration" label to the left of "Help", as it is now.
  • Also, since the unlabeled gear icon is placed close to the user icon, some users might mistake it for a user settings menu.

Updated by Marius BĂLTEANU 6 months ago Actions #26

Thanks!

Go MAEDA wrote in #note-25:

Marius BĂLTEANU wrote in #note-22:

I've reworked the patch:
  • use nav html tag instead of div
  • refactor top menu classes for desktop view based on the flyout menu
  • move administration link before user menu as icon only
  • added a new dropdown component based on Stimulus JS (dropdown_controller.js) with the CSS in dropdown.css
  • apply on hover same style from header links.

Thank you for posting this patch to improve the menu. I think the overall direction is good, and the UI looks more modern.

That said, I feel there is still some room for improvement in the following areas.

  • The top menu feels slightly too tall. It might look better if the icon size and padding were reduced a little.

I will try to adjust the size, but the height is push by user avatar size.

  • I found changing "Administration" to an unlabeled gear icon somewhat unclear. Personally, I prefer keeping the "Administration" label to the left of "Help", as it is now.
  • Also, since the unlabeled gear icon is placed close to the user icon, some users might mistake it for a user settings menu.

In order to not block the implementation, I will move the "Administration" link back and we postopone this discussion for another ticket.

Updated by Florian Walchshofer 6 months ago Actions #27

Nice step forward, this looks much better

I’m not sure if the administration link/icon is that relevant in the top menu, since not many users have access to it. I could imagine moving it into the user menu (under the avatar) instead. Nothing critical — keeping it as a text link or updating the icon would also be fine.

A couple of minor UI details:
  • The icon hover state looks slightly vertically off / not perfectly centered
  • The avatar might look cleaner with a slightly smaller size (e.g. 22px)
  • The icon padding could also be reduced a bit to better match the avatar
    • due to the reduced icon padding, additional gap was introduced on the top-menu__links container to maintain spacing

diff

Updated by Go MAEDA 6 months ago Actions #28

The following screenshot shows my design idea for 0001-Improve-top-menu-navigation-31353.patch.

  • Move the user's avatar next to `#project-jump` to eliminate the issue where the height of `#top-menu` increases.
  • Keep the "Administration" menu displayed as a text link, as it is today.

Updated by Marius BĂLTEANU 6 months ago Actions #29

Thanks for your reviews!

Go MAEDA, it's very unusual to position the user menu next to project jump and outside the top menu.

In the current version, the top menu height is 22.5px (16.5px + 3px + 3px). Using a 24px Gravatar increases the height to 28px, which adds 5.5px to the top menu. If we change the avatar size to 22px as Florian proposed, we save 2px, and the height only increases by 3.5px, which I think is acceptable. Alternatively, we could replace the avatar with the login name, though I personally prefer keeping the avatar.

Updated by Marius BĂLTEANU 5 months ago Actions #30

  • Target version changed from Candidate for next major release to 7.0.0

Updated by Marius BĂLTEANU 5 months ago Actions #31

  • Status changed from New to Resolved
  • Resolution set to Fixed

Go MAEDA, I've committed this change, please let me know if you still think that is too tall.

Updated by Katsuya HIDAKA 5 months ago Actions #32

It looks like some tests may be failing after r24799:
https://github.com/redmine/redmine/actions/runs/27895488926

Updated by Mizuki ISHIKAWA 5 months ago Actions #33

I maintain several themes and plugins, and the change from <div id="top-menu"> to something like <nav class="top-menu"> will require corresponding updates to those themes and plugins because the selector changes from an ID to a class.
Example: https://github.com/farend/redmine_theme_farend_bleuclair/blob/059534266eefe946eecff17e494432144fb251a6/src/styles/components/_layout.scss#L4

Updated by Mizuki ISHIKAWA 5 months ago Actions #34

Mizuki ISHIKAWA wrote in #note-33:

I maintain several themes and plugins, and the change from <div id="top-menu"> to something like <nav class="top-menu"> will require corresponding updates to those themes and plugins because the selector changes from an ID to a class.
Example: https://github.com/farend/redmine_theme_farend_bleuclair/blob/059534266eefe946eecff17e494432144fb251a6/src/styles/components/_layout.scss#L4

If possible, I would prefer to use <nav id="top-menu"> instead, so that the #top-menu selector can be preserved.

Updated by Marius BĂLTEANU 5 months ago Actions #35

I've added back the missing top-menu id and fixed the failing tests, sorry for that.

Please let me know if you have any other issues.

Updated by Marius BĂLTEANU 5 months ago Actions #36

  • Status changed from Resolved to Closed

Updated by Marius BĂLTEANU 3 months ago Actions #37

  • Related to Patch #44293: Add a caret to the account menu to indicate it opens a dropdown added

Updated by Go MAEDA 3 months ago Actions #38

  • Related to Defect #44443: Top menu is thinner than expected when the user is not logged in added

Updated by Marius BĂLTEANU 3 months ago Actions #39

  • Related to Patch #44341: Increase top menu hover highlight by increasing the padding of the elements added

Updated by Go MAEDA 2 months ago Actions #40

  • Related to Patch #44452: Remove unused i18n key label_logged_as added
Actions

Also available in: PDF Atom