[8.8] [Synthetics] Update nav for app (#158535) (#158933)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[Synthetics] Update nav for app
(#158535)](https://github.com/elastic/kibana/pull/158535)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2023-06-02T14:33:42Z","message":"[Synthetics]
Update nav for app
(#158535)","sha":"48c8aa64195b00e5f309dddc7c90e0653e308f23","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","v8.9.0","v8.8.1"],"number":158535,"url":"https://github.com/elastic/kibana/pull/158535","mergeCommit":{"message":"[Synthetics]
Update nav for app
(#158535)","sha":"48c8aa64195b00e5f309dddc7c90e0653e308f23"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158535","number":158535,"mergeCommit":{"message":"[Synthetics]
Update nav for app
(#158535)","sha":"48c8aa64195b00e5f309dddc7c90e0653e308f23"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
Kibana Machine 2023-06-02 11:45:22 -04:00 committed by GitHub
parent f4375f6c22
commit b3a45ca88c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 6 deletions

View file

@ -168,6 +168,7 @@ export class UptimePlugin
});
registerUptimeRoutesWithNavigation(core, plugins);
registerSyntheticsRoutesWithNavigation(core, plugins);
core.getStartServices().then(([coreStart, clientPluginsStart]) => {});
@ -301,13 +302,37 @@ function registerUptimeRoutesWithNavigation(
path: '/certificates',
matchFullPath: true,
},
],
},
];
}
return [];
})
)
);
}
function registerSyntheticsRoutesWithNavigation(
core: CoreSetup<ClientPluginsStart, unknown>,
plugins: ClientPluginsSetup
) {
plugins.observabilityShared.navigation.registerSections(
from(core.getStartServices()).pipe(
map(([coreStart]) => {
if (coreStart.application.capabilities.uptime.show) {
return [
{
label: 'Synthetics',
sortKey: 499,
entries: [
{
label: i18n.translate('xpack.synthetics.overview.headingBetaSection', {
defaultMessage: 'Synthetics',
label: i18n.translate('xpack.synthetics.overview.SyntheticsHeading', {
defaultMessage: 'Monitors',
}),
app: 'synthetics',
path: OVERVIEW_ROUTE,
matchFullPath: false,
matchFullPath: true,
ignoreTrailingSlash: true,
isNewFeature: true,
},

View file

@ -37021,7 +37021,6 @@
"xpack.synthetics.overview.groupPopover.project.label": "Projet",
"xpack.synthetics.overview.groupPopover.tag.label": "Balise",
"xpack.synthetics.overview.heading": "Moniteurs",
"xpack.synthetics.overview.headingBetaSection": "Synthetics",
"xpack.synthetics.overview.monitors.label": "Moniteurs",
"xpack.synthetics.overview.noMonitorsFoundContent": "Essayez d'affiner votre recherche.",
"xpack.synthetics.overview.noMonitorsFoundHeading": "Aucun moniteur trouvé",

View file

@ -37002,7 +37002,6 @@
"xpack.synthetics.overview.groupPopover.project.label": "プロジェクト",
"xpack.synthetics.overview.groupPopover.tag.label": "タグ",
"xpack.synthetics.overview.heading": "監視",
"xpack.synthetics.overview.headingBetaSection": "Synthetics",
"xpack.synthetics.overview.monitors.label": "監視",
"xpack.synthetics.overview.noMonitorsFoundContent": "検索を更新してください。",
"xpack.synthetics.overview.noMonitorsFoundHeading": "モニターが見つかりません",

View file

@ -36995,7 +36995,6 @@
"xpack.synthetics.overview.groupPopover.project.label": "项目",
"xpack.synthetics.overview.groupPopover.tag.label": "标签",
"xpack.synthetics.overview.heading": "监测",
"xpack.synthetics.overview.headingBetaSection": "Synthetics",
"xpack.synthetics.overview.monitors.label": "监测",
"xpack.synthetics.overview.noMonitorsFoundContent": "请尝试优化您的搜索。",
"xpack.synthetics.overview.noMonitorsFoundHeading": "未找到任何监测",