mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[ObsUX][Infra][APM] Hide Settings from serverless navigation (#225436)
## Summary Closes [#222240](https://github.com/elastic/kibana/issues/222240) This PR adds the prop `sideNavStatus: 'hidden'` to the settings links to prevent them from appearing in the nav bar, but keeping them in the breadcrumbs. It also fixes the `Application` breadcrumb not being clickable. ## Screenshots | Description | Before | After | |--------|--------|--------| | Classic Infra |  |  | | Classic APM |  | | | Serverless Infra |  |  | | Serverless APM |  |  |
This commit is contained in:
parent
2e2576fbf5
commit
76642fbf16
2 changed files with 6 additions and 7 deletions
|
@ -69,10 +69,6 @@ function createNavTree({ streamsAvailable }: { streamsAvailable?: boolean }) {
|
|||
defaultMessage: 'AI Assistant',
|
||||
}),
|
||||
},
|
||||
{
|
||||
link: 'inventory',
|
||||
spaceBefore: 'm',
|
||||
},
|
||||
...(streamsAvailable
|
||||
? [
|
||||
{
|
||||
|
@ -90,6 +86,7 @@ function createNavTree({ streamsAvailable }: { streamsAvailable?: boolean }) {
|
|||
: []),
|
||||
{
|
||||
id: 'apm',
|
||||
link: 'apm:services',
|
||||
title: i18n.translate('xpack.observability.obltNav.applications', {
|
||||
defaultMessage: 'Applications',
|
||||
}),
|
||||
|
@ -151,6 +148,7 @@ function createNavTree({ streamsAvailable }: { streamsAvailable?: boolean }) {
|
|||
},
|
||||
{
|
||||
id: 'metrics',
|
||||
link: 'metrics:inventory',
|
||||
title: i18n.translate('xpack.observability.obltNav.infrastructure', {
|
||||
defaultMessage: 'Infrastructure',
|
||||
}),
|
||||
|
|
|
@ -78,7 +78,6 @@ export const createNavigationTree = ({
|
|||
defaultMessage: 'AI Assistant',
|
||||
}),
|
||||
},
|
||||
{ link: 'inventory', spaceBefore: 'm' },
|
||||
...(streamsAvailable
|
||||
? [
|
||||
{
|
||||
|
@ -99,6 +98,7 @@ export const createNavigationTree = ({
|
|||
: []),
|
||||
{
|
||||
id: 'apm',
|
||||
link: 'apm:services',
|
||||
title: i18n.translate('xpack.serverlessObservability.nav.applications', {
|
||||
defaultMessage: 'Applications',
|
||||
}),
|
||||
|
@ -114,7 +114,7 @@ export const createNavigationTree = ({
|
|||
},
|
||||
{ link: 'apm:traces' },
|
||||
{ link: 'apm:dependencies' },
|
||||
{ link: 'apm:settings' },
|
||||
{ link: 'apm:settings', sideNavStatus: 'hidden' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -151,6 +151,7 @@ export const createNavigationTree = ({
|
|||
},
|
||||
{
|
||||
id: 'metrics',
|
||||
link: 'metrics:inventory',
|
||||
title: i18n.translate('xpack.serverlessObservability.nav.infrastructure', {
|
||||
defaultMessage: 'Infrastructure',
|
||||
}),
|
||||
|
@ -168,7 +169,7 @@ export const createNavigationTree = ({
|
|||
),
|
||||
},
|
||||
{ link: 'metrics:hosts' },
|
||||
{ link: 'metrics:settings' },
|
||||
{ link: 'metrics:settings', sideNavStatus: 'hidden' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue