Bug 2255426

Summary: [RFE] Expanding a section should collapse other expanded sections
Product: Red Hat Satellite Reporter: Taft Sanders <tasander>
Component: NavigationAssignee: Maria <magaphon>
Status: CLOSED ERRATA QA Contact: Pavel Novotny <pnovotny>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.15.0CC: aruzicka, magaphon, pnovotny, rlavi, zhunting
Target Milestone: 6.15.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-3.9.1.2-1,foreman-3.9.1.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-23 17:16:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Taft Sanders 2023-12-20 17:40:27 UTC
Description of problem:
To reduce navigation and provide better ease of use, the left navigation bar 'id="page-sidebar"' should collapse any expanded sections when expanding a new collapsed section.

Version-Release number of selected component (if applicable):
Satellite 6.15 snap 3

How reproducible:
n/a

Steps to Reproduce:
1.
2.
3.

Actual results:
Navigation bar is static and previously expanded sections stay expanded upon expanding a new section

Expected results:
Previously expanded sections should collapse to reduce navigation for users

Additional info:
I believe it would also help to collapse child sections upon collapsing parent sections as well.
IE: If I expand parent section "Monitor" and child section "Reports", then expand parent section "Content", parent section "Monitor" should collapse. Upon expanding "Monitor" section again, child section "Reports" should not be expanded.

Comment 2 Maria 2024-01-04 14:56:40 UTC
Connecting redmine issue https://projects.theforeman.org/issues/37025 from this bug

Comment 3 Bryan Kearney 2024-01-04 16:03:04 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/37025 has been resolved.

Comment 6 Pavel Novotny 2024-01-17 12:52:52 UTC
Satellite 6.15 snap 6:
satellite-6.15.0-2.el8sat.noarch
foreman-3.9.1.2-1.el8sat.noarch

Moving from one main section to another now collapses the previous section. 


This applies only to main sections. Any expanded child sections stay expanded when moving between main sections. This is in contradiction with a case from comment 0:

> I believe it would also help to collapse child sections upon collapsing parent sections as well.
> IE: If I expand parent section "Monitor" and child section "Reports", then expand parent section "Content", parent section "Monitor" should collapse. Upon expanding "Monitor" section again, child section "Reports" should not be expanded.

@magaphon What should be the "correct" behavior for the child sections?

Comment 7 Maria 2024-01-19 14:58:05 UTC
Made a fix to address secondary menus as well

Comment 10 Pavel Novotny 2024-02-01 21:31:47 UTC
Verified in Sat 6.15 snap 8:
satellite-6.15.0-2.el8sat.noarch
foreman-3.9.1.5-1.el8sat.noarch

Collapsing other sections now works also for child sections - in the same main menu as well as moving to another main menu and going back.

Comment 13 errata-xmlrpc 2024-04-23 17:16:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:2010