diff --git a/.betterer.results b/.betterer.results index 12d1729d2e1..867fddaac20 100644 --- a/.betterer.results +++ b/.betterer.results @@ -3049,19 +3049,12 @@ exports[`better eslint`] = { [0, 0, 0, "No untranslated strings. Wrap text with ", "0"] ], "public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx:5381": [ - [0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"], + [0, 0, 0, "No untranslated strings. Wrap text with ", "0"], [0, 0, 0, "No untranslated strings. Wrap text with ", "1"], [0, 0, 0, "No untranslated strings. Wrap text with ", "2"], [0, 0, 0, "No untranslated strings. Wrap text with ", "3"], [0, 0, 0, "No untranslated strings. Wrap text with ", "4"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "5"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "6"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "7"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "8"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "9"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "10"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "11"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "12"] + [0, 0, 0, "No untranslated strings. Wrap text with ", "5"] ], "public/app/features/dashboard/components/Inspector/PanelInspector.tsx:5381": [ [0, 0, 0, "Do not use any type assertions.", "0"] diff --git a/public/app/features/dashboard/components/HelpWizard/HelpWizard.test.tsx b/public/app/features/dashboard/components/HelpWizard/HelpWizard.test.tsx index 26f51c03999..8fdc82a5dd8 100644 --- a/public/app/features/dashboard/components/HelpWizard/HelpWizard.test.tsx +++ b/public/app/features/dashboard/components/HelpWizard/HelpWizard.test.tsx @@ -30,6 +30,6 @@ function setup() { describe('SupportSnapshot', () => { it('Can render', async () => { setup(); - expect(await screen.findByRole('button', { name: /Dashboard \([\d\.]+ KiB\)/ })).toBeInTheDocument(); + expect(await screen.findByRole('button', { name: /Download snapshot \([\d\.]+ KiB\)/ })).toBeInTheDocument(); }); }); diff --git a/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx b/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx index 3b511c024be..f6058b74d61 100644 --- a/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx +++ b/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx @@ -2,7 +2,7 @@ import { css } from '@emotion/css'; import { useMemo, useEffect } from 'react'; import AutoSizer from 'react-virtualized-auto-sizer'; -import { PanelPlugin, GrafanaTheme2, FeatureState } from '@grafana/data'; +import { PanelPlugin, GrafanaTheme2 } from '@grafana/data'; import { config } from '@grafana/runtime'; import { Drawer, @@ -11,17 +11,16 @@ import { CodeEditor, useStyles2, Field, - HorizontalGroup, InlineSwitch, Button, Spinner, Alert, - FeatureBadge, Select, ClipboardButton, Icon, Stack, } from '@grafana/ui'; +import { Trans } from 'app/core/internationalization'; import { contextSrv } from 'app/core/services/context_srv'; import { PanelModel } from 'app/features/dashboard/state'; import { AccessControlAction } from 'app/types'; @@ -76,7 +75,6 @@ export function HelpWizard({ panel, plugin, onClose }: Props) { subtitle={ - - To request troubleshooting help, send a snapshot of this panel to Grafana Labs Technical Support. The - snapshot contains query response data and panel settings. + + To request troubleshooting help, send a snapshot of this panel to Grafana Labs Technical Support. The + snapshot contains query response data and panel settings. + {hasSupportBundleAccess && ( - You can also retrieve a support bundle containing information concerning your Grafana instance and - configured datasources in the support bundles section. + + You can also retrieve a support bundle containing information concerning your Grafana instance and + configured datasources in the support bundles section. + )} @@ -150,10 +152,10 @@ export function HelpWizard({ panel, plugin, onClose }: Props) { {currentTab === SnapshotTab.Support && ( <> - + service.onToggleRandomize('values')} /> - + - Copy to clipboard + Copy Github comment diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 424473b35e3..deec9871d8b 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -1093,6 +1093,13 @@ }, "title": "Shortcuts" }, + "help-wizard": { + "download-snapshot": "Download snapshot", + "github-comment": "Copy Github comment", + "preview-snapshot": "Preview snapshot", + "support-bundle": "You can also retrieve a support bundle containing information concerning your Grafana instance and configured datasources in the <1>support bundles section.", + "troubleshooting-help": "To request troubleshooting help, send a snapshot of this panel to Grafana Labs Technical Support. The snapshot contains query response data and panel settings." + }, "inspector": { "query": { "collapse-all": "Collapse all", diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 04ea3c6e2ac..3fc58f3e489 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -1093,6 +1093,13 @@ }, "title": "Ŝĥőřŧčūŧş" }, + "help-wizard": { + "download-snapshot": "Đőŵʼnľőäđ şʼnäpşĥőŧ", + "github-comment": "Cőpy Ğįŧĥūþ čőmmęʼnŧ", + "preview-snapshot": "Přęvįęŵ şʼnäpşĥőŧ", + "support-bundle": "Ÿőū čäʼn äľşő řęŧřįęvę ä şūppőřŧ þūʼnđľę čőʼnŧäįʼnįʼnģ įʼnƒőřmäŧįőʼn čőʼnčęřʼnįʼnģ yőūř Ğřäƒäʼnä įʼnşŧäʼnčę äʼnđ čőʼnƒįģūřęđ đäŧäşőūřčęş įʼn ŧĥę <1>şūppőřŧ þūʼnđľęş şęčŧįőʼn.", + "troubleshooting-help": "Ŧő řęqūęşŧ ŧřőūþľęşĥőőŧįʼnģ ĥęľp, şęʼnđ ä şʼnäpşĥőŧ őƒ ŧĥįş päʼnęľ ŧő Ğřäƒäʼnä Ŀäþş Ŧęčĥʼnįčäľ Ŝūppőřŧ. Ŧĥę şʼnäpşĥőŧ čőʼnŧäįʼnş qūęřy řęşpőʼnşę đäŧä äʼnđ päʼnęľ şęŧŧįʼnģş." + }, "inspector": { "query": { "collapse-all": "Cőľľäpşę äľľ",