New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serverless] make parent nav item into breadcrumb link #183189
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pinging @elastic/appex-sharedux (Team:SharedUX) |
/ci |
💚 Build Succeeded
Metrics [docs]Canvas Sharable Runtime
Page load bundle
History
To update your PR or re-run it, just comment with: |
@@ -80,6 +81,7 @@ export const navigationTree: NavigationTreeDefinition = { | |||
defaultMessage: 'Anomaly detection', | |||
}), | |||
link: 'ml:anomalyDetection', | |||
id: 'ml:anomalyDetection', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added an ID to this link because now that we have more than one link in the same page, the test-subj values end up being the same as it uses the link
value. The wrong link then gets clicked. I used the same value as the "deepLinkId" in link
which I hope isn't confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Currently the breadcrumb of the parent navigation item isn't a link:
This change makes it so the breadcrumb of parent navigation item is linkable:
The links will go to the first item in the list of child links.
The merging of this PR depends on #183508 allows for this functionality to work without making the left side parent collapsible link, also a href link - only the breadcrumb.
Testing
Start a serverless kibana instance
Navigate to a child link of an accordion using the left side navigation