-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SharedUxChromeNavigation] Use deeplink id instead of href #159125
[SharedUxChromeNavigation] Use deeplink id instead of href #159125
Conversation
a05679e
to
92784b8
Compare
so it seems we need to update kibana/x-pack/plugins/apm/public/plugin.ts Line 323 in ad2593b
|
Yeah it is strange. From the file you point it seems that deeplink are active. Something else is disabling them but not seeing any |
Pinging @elastic/apm-ui (Team:APM) |
So it seems that by default deeplinks are hidden (https://github.com/elastic/kibana/blob/main/packages/core/application/core-application-browser-internal/src/utils/get_app_info.ts#L47) and you need to manually set it to visible. I've done it for the "Apm" services (7686eb2) For the logs, it is probably something like this (https://github.com/elastic/kibana/blob/main/x-pack/plugins/infra/public/plugin.ts#L178) that hides the link in the side nav. You will have to see with the infra team how to enable them in serverless for Observability. |
This reverts commit 7686eb2.
@gbamparop I had to revert my change to mark the deeplink as visible as it was failing a test "APM specs feature controls security global apm all privileges shows apm navlink". I think it is better that you mark the link(s) as visible in a following PR if they are meant to be seen in the navigation. |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @sebelga |
Thanks for looking into this, we'll create a follow-up. |
In this PR I removed the use of
href
for the serverless side navigation definition and replace them withlink
which points to either the root of an app or a deeplink id.Autocomplete
Now that all the deeplinks types are exposed, TS autocomplete is available when building a side navigation.
href
supportIt is still possible to pass an
href
to a navigation node definition but only for external links. For internal link a deeplink id must be used. If an externalhref
is added in the navigation tree, it is marked as external in the UIPackages created
Instead of creating a separate package for each of the app and its deeplinks I've decided to group the deeplink by domain, the same way we group them in the navigation. It is thus expected that there will be multiple team owning those packages. As we don't plan to add frequently new deeplinks I think that the trade off of fewer packages with a bit more "noise" on PR ownership should be OK.
### Deeplinks
@kbn/deeplinks-devtools
@kbn/deeplinks-analytics
@kbn/deeplinks-ml
@kbn/deeplinks-management
@kbn/deeplinks-search
@kbn/deeplinks-observability
Navigations "presets"
It is possible to add default navigation for certain domain in the navigation tree by simply loading a "preset".
Those "default" are now owned by the teams owning those domain. If we don't feel the need to expose a "default" navigation for a certain domain we can remove the preset and its corresponding package.
@kbn/default-nav-analytics
@kbn/default-nav-ml
@kbn/default-nav-devtools
@kbn/default-nav-management
Fixes #158658
Fixes #158376