Dashboard: Schema V2 - Improve warning when saving v1 dashboard to v2 dashboard (#106492)

* Dashboard: Improve warning when saving v1 to v2 dashboard

* Extract i18n
This commit is contained in:
Alexa Vargas 2025-06-10 19:04:32 +02:00 committed by GitHub
parent a4ef05b52b
commit 4519d79406
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -161,15 +161,16 @@ export function SaveDashboardForm({ dashboard, drawer, changeInfo }: Props) {
<Alert
title={t(
'dashboard-scene.save-dashboard-form.title-dashboard-drastically-changed',
'Dashboard drastically changed'
'Dashboard irreversibly changed'
)}
severity="warning"
>
<p>
<Trans i18nKey="dashboard-scene.save-dashboard-form.body-dashboard-drastically-changed">
Because you're using new dashboards features only supported on new Grafana dashboard schema format, the
dashboard will be saved in the new format. Please make sure you want to perform this action or you prefer
to save the dashboard as a new copy.
The dashboard will be saved using the new experimental Grafana dashboard schema. This action cant be
reverted and could result in the irreversible loss of data. We recommend that you save this dashboard as a
copy instead. If youre seeing this message in a production environment, contact Support to have the
feature disabled.
</Trans>
</p>
</Alert>

View File

@ -5244,7 +5244,7 @@
},
"save-dashboard-form": {
"aria-label-message": "message",
"body-dashboard-drastically-changed": "Because you're using new dashboards features only supported on new Grafana dashboard schema format, the dashboard will be saved in the new format. Please make sure you want to perform this action or you prefer to save the dashboard as a new copy.",
"body-dashboard-drastically-changed": "The dashboard will be saved using the new experimental Grafana dashboard schema. This action cant be reverted and could result in the irreversible loss of data. We recommend that you save this dashboard as a copy instead. If youre seeing this message in a production environment, contact Support to have the feature disabled.",
"cancel-button": {
"cancel": "Cancel"
},
@ -5260,7 +5260,7 @@
},
"schema-v2-library-panels-export": "The dynamic dashboard functionality is experimental, and has not full feature parity with current dashboards behaviour. It is based on a new schema format, that does not support library panels. This means that when exporting the dashboard to use it in another instance, we will not include library panels. We intend to support them as we progress in the feature <2>life cycle</2>.",
"schema-v2-library-panels-export-title": "Dashboard Schema V2 does not support exporting library panels to be used in another instance yet",
"title-dashboard-drastically-changed": "Dashboard drastically changed"
"title-dashboard-drastically-changed": "Dashboard irreversibly changed"
},
"save-dashboard-form-common-options": {
"save-refresh-description-current-refresh-default": "Will make the current refresh the new default",