mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
Alerting: Rename list view section titles (#93182)
This commit is contained in:
parent
697afc71b4
commit
c8dc4d93d4
@ -2252,8 +2252,7 @@ exports[`better eslint`] = {
|
||||
"public/app/features/alerting/unified/components/rules/CloudRules.tsx:5381": [
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "0"],
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "1"],
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "2"],
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "3"]
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "2"]
|
||||
],
|
||||
"public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx:5381": [
|
||||
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "0"],
|
||||
|
@ -5,6 +5,7 @@ import { useLocation } from 'react-router-dom-v5-compat';
|
||||
|
||||
import { GrafanaTheme2, urlUtil } from '@grafana/data';
|
||||
import { LinkButton, LoadingPlaceholder, Pagination, Spinner, Text, useStyles2 } from '@grafana/ui';
|
||||
import { Trans } from 'app/core/internationalization';
|
||||
import { CombinedRuleNamespace } from 'app/types/unified-alerting';
|
||||
|
||||
import { DEFAULT_PER_PAGE_PAGINATION } from '../../../../../core/constants';
|
||||
@ -56,7 +57,7 @@ export const CloudRules = ({ namespaces, expandAll }: Props) => {
|
||||
<div className={styles.sectionHeader}>
|
||||
<div className={styles.headerRow}>
|
||||
<Text element="h2" variant="h5">
|
||||
Mimir / Cortex / Loki
|
||||
<Trans i18nKey="alerting.list-view.section.dataSourceManaged.title">Data source-managed</Trans>
|
||||
</Text>
|
||||
{dataSourcesLoading.length ? (
|
||||
<LoadingPlaceholder
|
||||
|
@ -64,10 +64,13 @@ export const GrafanaRules = ({ namespaces, expandAll }: Props) => {
|
||||
<div className={styles.sectionHeader}>
|
||||
<div className={styles.headerRow}>
|
||||
<Text element="h2" variant="h5">
|
||||
<Trans i18nKey="alerting.grafana-rules.title">Grafana</Trans>
|
||||
<Trans i18nKey="alerting.list-view.section.grafanaManaged.title">Grafana-managed</Trans>
|
||||
</Text>
|
||||
{loading ? (
|
||||
<LoadingPlaceholder className={styles.loader} text={t('alerting.grafana-rules.loading', 'Loading...')} />
|
||||
<LoadingPlaceholder
|
||||
className={styles.loader}
|
||||
text={t('alerting.list-view.section.grafanaManaged.loading', 'Loading...')}
|
||||
/>
|
||||
) : (
|
||||
<div />
|
||||
)}
|
||||
@ -81,7 +84,7 @@ export const GrafanaRules = ({ namespaces, expandAll }: Props) => {
|
||||
onClick={toggleShowExportDrawer}
|
||||
variant="secondary"
|
||||
>
|
||||
<Trans i18nKey="alerting.grafana-rules.export-rules">Export rules</Trans>
|
||||
<Trans i18nKey="alerting.list-view.section.grafanaManaged.export-rules">Export rules</Trans>
|
||||
</Button>
|
||||
)}
|
||||
{grafanaRecordingRulesEnabled && (
|
||||
@ -94,7 +97,7 @@ export const GrafanaRules = ({ namespaces, expandAll }: Props) => {
|
||||
tooltip="Create new Grafana-managed recording rule"
|
||||
onClick={() => logInfo(LogMessages.grafanaRecording)}
|
||||
>
|
||||
<Trans i18nKey="alerting.grafana-rules.new-recording-rule">New recording rule</Trans>
|
||||
<Trans i18nKey="alerting.list-view.section.grafanaManaged.new-recording-rule">New recording rule</Trans>
|
||||
</LinkButton>
|
||||
)}
|
||||
</Stack>
|
||||
|
@ -16,8 +16,8 @@ import { RuleListGroupView } from './RuleListGroupView';
|
||||
jest.spyOn(analytics, 'logInfo');
|
||||
|
||||
const ui = {
|
||||
grafanaRulesHeading: byRole('heading', { name: 'Grafana' }),
|
||||
cloudRulesHeading: byRole('heading', { name: 'Mimir / Cortex / Loki' }),
|
||||
grafanaRulesHeading: byRole('heading', { name: 'Grafana-managed' }),
|
||||
cloudRulesHeading: byRole('heading', { name: 'Data source-managed' }),
|
||||
};
|
||||
|
||||
setPluginExtensionsHook(() => ({
|
||||
|
@ -123,11 +123,18 @@
|
||||
"contactPointFilter": {
|
||||
"label": "Contact point"
|
||||
},
|
||||
"grafana-rules": {
|
||||
"export-rules": "Export rules",
|
||||
"loading": "Loading...",
|
||||
"new-recording-rule": "New recording rule",
|
||||
"title": "Grafana"
|
||||
"list-view": {
|
||||
"section": {
|
||||
"dataSourceManaged": {
|
||||
"title": "Data source-managed"
|
||||
},
|
||||
"grafanaManaged": {
|
||||
"export-rules": "Export rules",
|
||||
"loading": "Loading...",
|
||||
"new-recording-rule": "New recording rule",
|
||||
"title": "Grafana-managed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mute_timings": {
|
||||
"error-loading": {
|
||||
|
@ -123,11 +123,18 @@
|
||||
"contactPointFilter": {
|
||||
"label": "Cőʼnŧäčŧ pőįʼnŧ"
|
||||
},
|
||||
"grafana-rules": {
|
||||
"export-rules": "Ēχpőřŧ řūľęş",
|
||||
"loading": "Ŀőäđįʼnģ...",
|
||||
"new-recording-rule": "Ńęŵ řęčőřđįʼnģ řūľę",
|
||||
"title": "Ğřäƒäʼnä"
|
||||
"list-view": {
|
||||
"section": {
|
||||
"dataSourceManaged": {
|
||||
"title": "Đäŧä şőūřčę-mäʼnäģęđ"
|
||||
},
|
||||
"grafanaManaged": {
|
||||
"export-rules": "Ēχpőřŧ řūľęş",
|
||||
"loading": "Ŀőäđįʼnģ...",
|
||||
"new-recording-rule": "Ńęŵ řęčőřđįʼnģ řūľę",
|
||||
"title": "Ğřäƒäʼnä-mäʼnäģęđ"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mute_timings": {
|
||||
"error-loading": {
|
||||
|
Loading…
Reference in New Issue
Block a user