diff --git a/packages/core/chrome/core-chrome-browser/src/project_navigation.ts b/packages/core/chrome/core-chrome-browser/src/project_navigation.ts index 38317cfc1e0f2..b2a0384e3a1a9 100644 --- a/packages/core/chrome/core-chrome-browser/src/project_navigation.ts +++ b/packages/core/chrome/core-chrome-browser/src/project_navigation.ts @@ -45,7 +45,7 @@ export type AppDeepLinkId = | ObservabilityLink; /** @public */ -export type CloudLinkId = 'userAndRoles' | 'performance' | 'billingAndSub'; +export type CloudLinkId = 'userAndRoles' | 'performance' | 'billingAndSub' | 'deployment'; export type GetIsActiveFn = (params: { /** The current path name including the basePath + hash value but **without** any query params */ diff --git a/packages/shared-ux/chrome/navigation/src/cloud_links.tsx b/packages/shared-ux/chrome/navigation/src/cloud_links.tsx index 4efd73b8e3a97..fd1909551888b 100644 --- a/packages/shared-ux/chrome/navigation/src/cloud_links.tsx +++ b/packages/shared-ux/chrome/navigation/src/cloud_links.tsx @@ -17,7 +17,7 @@ export type CloudLinks = { }; export const getCloudLinks = (cloud: CloudStart): CloudLinks => { - const { billingUrl, performanceUrl, usersAndRolesUrl } = cloud; + const { billingUrl, deploymentUrl, performanceUrl, usersAndRolesUrl } = cloud; const links: CloudLinks = {}; @@ -54,5 +54,17 @@ export const getCloudLinks = (cloud: CloudStart): CloudLinks => { }; } + if (deploymentUrl) { + links.deployment = { + title: i18n.translate( + 'sharedUXPackages.chrome.sideNavigation.cloudLinks.deploymentLinkText', + { + defaultMessage: 'Project', + } + ), + href: deploymentUrl, + }; + } + return links; }; diff --git a/x-pack/plugins/serverless_search/public/layout/nav.tsx b/x-pack/plugins/serverless_search/public/layout/nav.tsx index fd460f8c95066..568b3e8ca5cdf 100644 --- a/x-pack/plugins/serverless_search/public/layout/nav.tsx +++ b/x-pack/plugins/serverless_search/public/layout/nav.tsx @@ -134,6 +134,13 @@ const navigationTree: NavigationTreeDefinition = { defaultMessage: 'Management', }), }, + { + id: 'cloudLinkDeployment', + cloudLink: 'deployment', + title: i18n.translate('xpack.serverlessSearch.nav.performance', { + defaultMessage: 'Performance', + }), + }, { id: 'cloudLinkUserAndRoles', cloudLink: 'userAndRoles',