I found out recently about the issue XWIKI-10498: Implement collapsing & expanding panels on Flamingo. I decided to make a quick prototype to see if that’s really something we want in XWiki.
The idea of this PR is to add a collapsing behaviour to navigation panels.
<1> In my opinion, if we add it to navigation panels, we should add it to any panel. The navigation category is pretty loosely defined in my opinion and this might be difficult for users to understand why some panels can be collapsed and not others.
<2> In order to have clear controls, and consistency with other places where we have dropdowns, in my implementation I decided to add collapse buttons. From what I could see, it used to just be toggled from a click on the header a long time ago.
This gives the following prototype:
(Implementation so far is here)
The idea is that a click on the caret buttons would:
A. Rotate the caret so that it faces the left
B. Collapse the content of the panel
Another click afterwards would toggle OFF those changes.
In my opinion this clutters the UI for minimal user improvements and this shouldn’t be something we implement in a standard XWiki flavor.
Moreover there’s other solutions to fix the issue the reporter indicated:
- move the very long
Navigationpanel to the end of the panel list, so that there’s no need to scroll.
- custom panel augmentation for the users who’d still need it.
Do you think it would be alright to close XWIKI-10498: Implement collapsing & expanding panels on Flamingo as a