Proposal: Grouping the user profile menu into collapsible sections

Context

The left menu of the user profile is a flat list of 8 entries in XWiki Standard (Profile, Preferences, Groups, Network, Notifications, Wikis, Dashboard, Liked pages), and extensions keep adding more: there’s at least 9 outside xwiki-platform. There’s no obvious place for a new preference, and the list keeps growing (XWIKI-22065).

Proposal

Group the entries in collapsible sections, displayed as an accordion like the one of the Administration menu:

The default groups:

Group Entries
Profile Profile, Groups, Wikis
Activity Network, Dashboard, Liked pages
Settings Preferences, Notifications
Other entries without a group, e.g. those of extensions not updated yet

The behaviour is the one of the Administration menu:

  • Only one group is expanded at a time.
  • The group of the displayed entry is expanded on load, and again when going back in the browser history.
  • Clicking a group heading only expands or collapses it, groups have no page of their own.
  • Empty groups are hidden.

Here it is in action: https://github.com/user-attachments/assets/6f5f214d-3d20-41c6-ae41-3f1d7f7a671c
accordion

On the technical side, in short:

  • Groups are UI extensions of a new org.xwiki.platform.user.profile.menuGroup extension point, so an extension can add its own group.
  • Menu entries get an optional group parameter. Existing extensions keep working unchanged and land in Other.
  • The accordion is a new generic #verticalNavigationAccordion skin macro. The Administration menu is not migrated to it right now but it’s an improvement we could do later on.
  • The panes content themselves don’t change.,

The details, the rules and the dropped options are on this design page: https://design.xwiki.org/xwiki/bin/view/Proposal/UserProfileMenuSubsections/
The implementation is in draft PR XWIKI-22065: Add subsections to the preference menu by Sereza5 · Pull Request #7508 · xwiki/xwiki-platform · GitHub

Questions

  1. Do you agree with this accordion for the user profile menu? It takes more space than the previous menu but it matches better what we have in the Admin menu.
  2. Do you agree with the 4 default groups and the entries in each?

Here’s my +1 for both.

I’m fine with the content of the category, but not sure it’s the right naming for the category itself.

I’m wondering if renaming “Preference” to something like “General” (i.e. the general settings, and then other specific ones) would not look better.

+1

+1

Thanks for the proposal @CharpentierLucas !

+0 to group by categories, it could be interesting, but that’s one more discussion to have, and that always takes a lot of time.
-0 to make the categories foldable, currently the list of entries in the profile menu is quite short 8 by default and 9 more if an instance installs all the extensions contributing new entries. Even in this worst case, 17 entries are not that bad. On the contrary, having the entries folded will decrease discoverability.

So overall, I’m not really sure if we need this change unless there is a need I’m not seeing.

IMO 8 is already the limit, going to 17 completely goes over Miller’s law.

That’s why I blocked myself a couple other improvement that involved adding panels to this menu in XS (Loading... or Changing order of notification -> autowatch), imo it would be a big usability regression to just keep adding panels without adding some structure here.
It’s the primary argument behind this proposal.

Of course for people who know it it’s more convenient to just have a small list like today, but I think most newcomers won’t look at or internalize easily the whole list if we just keep adding items to it.

The accordion features are overkill for XS today, I agree we can drop it for now (maybe add it in the future when the number of panels has increased too much again – it would probably be a sign that we need to cut down somewhere else though ^^').
@mleduc are you okay with this grouping and going towards a shared style with the admin menu (less dense)?