From 463e3143ab16591c81ec16bf29e77bf71f3f6db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 6 Mar 2025 11:39:45 +0100 Subject: [PATCH] Dashboards: Rename layout display names: Default grid => Custom, Responsive grid => Auto (#101673) Dashboards: Rename layout display name --- .../scene/layout-default/DefaultGridLayoutManager.tsx | 4 ++-- .../ResponsiveGridLayoutManager.tsx | 4 ++-- public/locales/en-US/grafana.json | 8 ++++---- public/locales/pseudo-LOCALE/grafana.json | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/app/features/dashboard-scene/scene/layout-default/DefaultGridLayoutManager.tsx b/public/app/features/dashboard-scene/scene/layout-default/DefaultGridLayoutManager.tsx index 22452f73c61..0688e0d0c92 100644 --- a/public/app/features/dashboard-scene/scene/layout-default/DefaultGridLayoutManager.tsx +++ b/public/app/features/dashboard-scene/scene/layout-default/DefaultGridLayoutManager.tsx @@ -47,10 +47,10 @@ export class DefaultGridLayoutManager public static readonly descriptor: LayoutRegistryItem = { get name() { - return t('dashboard.default-layout.name', 'Default grid'); + return t('dashboard.default-layout.name', 'Custom'); }, get description() { - return t('dashboard.default-layout.description', 'The default grid layout'); + return t('dashboard.default-layout.description', 'Manually size and position panels'); }, id: 'default-grid', createFromLayout: DefaultGridLayoutManager.createFromLayout, diff --git a/public/app/features/dashboard-scene/scene/layout-responsive-grid/ResponsiveGridLayoutManager.tsx b/public/app/features/dashboard-scene/scene/layout-responsive-grid/ResponsiveGridLayoutManager.tsx index 0823498bccf..3861971b535 100644 --- a/public/app/features/dashboard-scene/scene/layout-responsive-grid/ResponsiveGridLayoutManager.tsx +++ b/public/app/features/dashboard-scene/scene/layout-responsive-grid/ResponsiveGridLayoutManager.tsx @@ -25,10 +25,10 @@ export class ResponsiveGridLayoutManager public static readonly descriptor: LayoutRegistryItem = { get name() { - return t('dashboard.responsive-layout.name', 'Responsive grid'); + return t('dashboard.responsive-layout.name', 'Auto'); }, get description() { - return t('dashboard.responsive-layout.description', 'CSS layout that adjusts to the available space'); + return t('dashboard.responsive-layout.description', 'Automatically positions panels into a grid.'); }, id: 'responsive-grid', createFromLayout: ResponsiveGridLayoutManager.createFromLayout, diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 3e89b9d327d..0260c17611f 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -1011,7 +1011,7 @@ "subtitle": "Alert rules related to this dashboard" }, "default-layout": { - "description": "The default grid layout", + "description": "Manually size and position panels", "item-options": { "repeat": { "direction": { @@ -1027,7 +1027,7 @@ } } }, - "name": "Default grid", + "name": "Custom", "row-actions": { "delete": "Delete row", "modal": { @@ -1190,7 +1190,7 @@ } }, "responsive-layout": { - "description": "CSS layout that adjusts to the available space", + "description": "Automatically positions panels into a grid.", "item-options": { "hide-no-data": "Hide when no data", "repeat": { @@ -1201,7 +1201,7 @@ }, "title": "Layout options" }, - "name": "Responsive grid", + "name": "Auto", "options": { "columns": "Columns", "fixed": "Fixed: {{size}}px", diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index f2cb3b3942f..a0ac4afec8c 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -1011,7 +1011,7 @@ "subtitle": "Åľęřŧ řūľęş řęľäŧęđ ŧő ŧĥįş đäşĥþőäřđ" }, "default-layout": { - "description": "Ŧĥę đęƒäūľŧ ģřįđ ľäyőūŧ", + "description": "Mäʼnūäľľy şįžę äʼnđ pőşįŧįőʼn päʼnęľş", "item-options": { "repeat": { "direction": { @@ -1027,7 +1027,7 @@ } } }, - "name": "Đęƒäūľŧ ģřįđ", + "name": "Cūşŧőm", "row-actions": { "delete": "Đęľęŧę řőŵ", "modal": { @@ -1190,7 +1190,7 @@ } }, "responsive-layout": { - "description": "CŜŜ ľäyőūŧ ŧĥäŧ äđĵūşŧş ŧő ŧĥę äväįľäþľę şpäčę", + "description": "Åūŧőmäŧįčäľľy pőşįŧįőʼnş päʼnęľş įʼnŧő ä ģřįđ.", "item-options": { "hide-no-data": "Ħįđę ŵĥęʼn ʼnő đäŧä", "repeat": { @@ -1201,7 +1201,7 @@ }, "title": "Ŀäyőūŧ őpŧįőʼnş" }, - "name": "Ŗęşpőʼnşįvę ģřįđ", + "name": "Åūŧő", "options": { "columns": "Cőľūmʼnş", "fixed": "Fįχęđ: {{size}}pχ",