Bug 2116973 - Multiple navigation items displaying as active
Summary: Multiple navigation items displaying as active
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 4.12.0
Assignee: Yadan Pei
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-09 16:12 UTC by Andrew Block
Modified: 2023-01-17 19:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Styling issue, no docs updates needed.
Clone Of:
Environment:
Last Closed: 2023-01-17 19:54:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Navigation Links (22.10 KB, image/png)
2022-08-09 16:12 UTC, Andrew Block
no flags Details
nav menu (14.00 KB, image/png)
2022-09-01 07:06 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11793 0 None open CONSOLE-3166, Bug 2116973: Refactor nav components and console app nav extensions 2022-08-09 16:15:02 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:54:54 UTC

Description Andrew Block 2022-08-09 16:12:36 UTC
Created attachment 1904527 [details]
Navigation Links

Description of problem:

When adding a navigation item in a Custom Console Plugin, multiple navigation links are displaying as active when an individual item is selected.

How reproducible:

Always


Steps to Reproduce:
1. Create two navigation items similar to the following

  {
    "type": "console.navigation/href",

    "properties": {
      "id": "clusterpolicyreport",
      "name": "%plugin__policy-console-plugin~ClusterPolicyReport%",
      "href": "/clusterpolicyreport",
      "perspective": "admin",
      "section": "policies-section"
    }
  },
  {
    "type": "console.navigation/href",
    "properties": {
      "id": "policyreport",
      "name": "%plugin__policy-console-plugin~PolicyReport%",
      "href": "/policyreport",
      "prefixNamespaced": true,
      "perspective": "admin",
      "section": "policies-section"
    }
  }


Actual results:

When selecting either of the navigation items, both navigation items become active.

Expected results:

Selecting each navigation item would show each item as active individually

Additional info:

None

Comment 2 Yadan Pei 2022-09-01 07:06:20 UTC
Created attachment 1908867 [details]
nav menu

1. there are navigation item definition in our console-demo-plugin
  {
    "type": "console.navigation/href",
    "properties": {
      "id": "demo-test-utility-consumer",
      "perspective": "demo",
      "name": "%plugin__console-demo-plugin~Test Utilities%",
      "href": "/test-utility-consumer"
    }
  },
  {
    "type": "console.navigation/href",
    "properties": {
      "id": "test-list-page",
      "perspective": "admin",
      "section": "admin-demo-section",
      "name": "List Page",
      "href": "/demo-list-page",
      "prefixNamespaced": true
    },
    "flags": {
      "required": ["OPENSHIFT"]
    }
  },
2. deploy console-demo-plugin and check navigation menus in 'Demo Plugin', only one nav menu is highlighted, the reported issue is not reproduced, verified on 4.12.0-0.nightly-2022-08-31-101631

Comment 5 errata-xmlrpc 2023-01-17 19:54:37 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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), 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-2022:7399


Note You need to log in before you can comment on or make changes to this bug.