mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# 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:
parent
f4375f6c22
commit
b3a45ca88c
4 changed files with 28 additions and 6 deletions
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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é",
|
||||
|
|
|
@ -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": "モニターが見つかりません",
|
||||
|
|
|
@ -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": "未找到任何监测",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue