diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 47ea67851e02..15fd19b101af 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -964,7 +964,7 @@ playwright.storybook.config.ts @grafana/grafana-frontend-platform /public/app/core/utils/isOnPrem.ts @grafana/grafana-frontend-navigation /public/app/core/utils/isRecord.ts @grafana/dashboards-squad /public/app/core/utils/kbn* @grafana/grafana-frontend-platform -/public/app/core/utils/navBarItem-translations* @grafana/grafana-frontend-navigation +/public/app/core/utils/navBarItem-translations.ts @grafana/grafana-frontend-navigation /public/app/core/utils/object* @grafana/grafana-frontend-platform /public/app/core/utils/query* @grafana/grafana-datasources-core-services /public/app/core/utils/richHistory* @grafana/datapro diff --git a/public/app/core/utils/navBarItem-translations.test.ts b/public/app/core/utils/navBarItem-translations.test.ts deleted file mode 100644 index 742547d3a38f..000000000000 --- a/public/app/core/utils/navBarItem-translations.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { getNavSubTitle, getNavTitle } from './navBarItem-translations'; - -describe('navBarItem-translations', () => { - describe('getNavTitle', () => { - it('returns the title for the Alerting Watchers nav item', () => { - expect(getNavTitle('standalone-plugin-page-assistant-watchers')).toBe('Watchers'); - }); - - it('returns undefined for an unknown nav ID', () => { - expect(getNavTitle('not-a-real-nav-id')).toBeUndefined(); - }); - - it('returns undefined when no nav ID is given', () => { - expect(getNavTitle(undefined)).toBeUndefined(); - }); - }); - - describe('getNavSubTitle', () => { - it('returns the subtitle for the Alerting Watchers nav item', () => { - expect(getNavSubTitle('standalone-plugin-page-assistant-watchers')).toBe( - 'Let the Assistant watch your data and notify you when something needs attention' - ); - }); - - it('returns undefined for an unknown nav ID', () => { - expect(getNavSubTitle('not-a-real-nav-id')).toBeUndefined(); - }); - - it('returns undefined when no nav ID is given', () => { - expect(getNavSubTitle(undefined)).toBeUndefined(); - }); - }); -}); diff --git a/public/app/core/utils/navBarItem-translations.ts b/public/app/core/utils/navBarItem-translations.ts index 3dd764cf686d..97f65c9b07b0 100644 --- a/public/app/core/utils/navBarItem-translations.ts +++ b/public/app/core/utils/navBarItem-translations.ts @@ -77,8 +77,6 @@ export function getNavTitle(navId: string | undefined) { return t('nav.alerting-list.title', 'Alert rules'); case 'alert-list-legacy': return t('nav.alert-list-legacy.title', 'Alert rules'); - case 'standalone-plugin-page-assistant-watchers': - return t('nav.alerting-watchers.title', 'Watchers'); case 'receivers': return t('nav.alerting-receivers.title', 'Contact points'); case 'am-routes': @@ -252,11 +250,6 @@ export function getNavSubTitle(navId: string | undefined) { ); case 'alert-list': return t('nav.alerting-list.subtitle', 'Rules that determine whether an alert will fire'); - case 'standalone-plugin-page-assistant-watchers': - return t( - 'nav.alerting-watchers.subtitle', - 'Let the Assistant watch your data and notify you when something needs attention' - ); case 'receivers': return t( 'nav.alerting-receivers.subtitle', diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 0a1d9c018171..255f87f60ec7 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -12208,10 +12208,6 @@ "subtitle": "Upgrade your existing legacy alerts and notification channels to the new Grafana Alerting", "title": "Alerting upgrade" }, - "alerting-watchers": { - "subtitle": "Let the Assistant watch your data and notify you when something needs attention", - "title": "Watchers" - }, "alerts-and-incidents": { "subtitle": "Alerting and incident management apps", "title": "Alerts & IRM"