Opened 5 months ago

Closed 5 months ago

#35475 closed Cleanup/optimization (wontfix)

In admin sidebar, hide empty app headers

Reported by: Alex Coates Owned by: Alex Coates
Component: contrib.admin Version: dev
Severity: Normal Keywords: sidebar
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description (last modified by Alex Coates)

In the admin sidebar, when a filter is applied, app headers, that don't have any matching models, are still visible.
In project with a lot of apps, these app titles can consume all vertical space, leaving relevant models out of sight,
or just clutter the sidebar.



To improve user experience, I suggest that the headers for apps, that have no remaining models, should be hidden:


Attachments (3)

all-models.png (59.7 KB ) - added by Alex Coates 5 months ago.
empty-app.png (49.3 KB ) - added by Alex Coates 5 months ago.
proper.png (46.1 KB ) - added by Alex Coates 5 months ago.

Download all attachments as: .zip

Change History (6)

by Alex Coates, 5 months ago

Attachment: all-models.png added

by Alex Coates, 5 months ago

Attachment: empty-app.png added

by Alex Coates, 5 months ago

Attachment: proper.png added

comment:1 by Alex Coates, 5 months ago

Description: modified (diff)

comment:2 by Alex Coates, 5 months ago

Has patch: set
Version: 5.0dev

comment:3 by Sarah Boyce, 5 months ago

Resolution: wontfix
Status: assignedclosed

Hi Alex! There may be reasons why these headers have been kept when #32204 was developed. Things that come to mind:

  • the headers have an active state (with yellow and bold text) to indicate the region you are in - this could be lost when that header is hidden - do we mind?
  • we need to define an empty state when nothing returns (having a completely blank sidebar is perhaps not so nice)

So next steps here would be to create a topic on the forum to discuss your idea with the community and gain consensus. There you'll reach a wider audience and likely get extra feedback.

I'll close the ticket for now, but if there is a community agreement on this, you are welcome to come back to the ticket and point to the forum topic, so we can then re-open it. For more details, please see the documented guidelines for requesting features.

Note: See TracTickets for help on using tickets.
Back to Top