From 7181f8d89d91817aae374b76286caed2ae40b279 Mon Sep 17 00:00:00 2001 From: Paul Marbach Date: Mon, 7 Jul 2025 11:36:41 -0500 Subject: [PATCH] TableNG: Update description for wrapHeaderText (#107722) --- packages/grafana-schema/src/common/common.gen.ts | 2 +- packages/grafana-schema/src/common/table.cue | 2 +- public/app/plugins/panel/table/table-new/module.tsx | 5 +---- public/locales/en-US/grafana.json | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/grafana-schema/src/common/common.gen.ts b/packages/grafana-schema/src/common/common.gen.ts index 9e1d0fd99a8..4c1fd34f48e 100644 --- a/packages/grafana-schema/src/common/common.gen.ts +++ b/packages/grafana-schema/src/common/common.gen.ts @@ -965,7 +965,7 @@ export interface TableFieldOptions { minWidth?: number; width?: number; /** - * Enables text wrapping for the display name in the table header. + * Enables text wrapping for column headers */ wrapHeaderText?: boolean; } diff --git a/packages/grafana-schema/src/common/table.cue b/packages/grafana-schema/src/common/table.cue index bdb537c8504..ca61617aedb 100644 --- a/packages/grafana-schema/src/common/table.cue +++ b/packages/grafana-schema/src/common/table.cue @@ -105,7 +105,7 @@ TableFieldOptions: { filterable?: bool // Hides any header for a column, useful for columns that show some static content or buttons. hideHeader?: bool - // Enables text wrapping for the display name in the table header. + // Enables text wrapping for column headers wrapHeaderText?: bool } @cuetsy(kind="interface") diff --git a/public/app/plugins/panel/table/table-new/module.tsx b/public/app/plugins/panel/table/table-new/module.tsx index ddd3c7480eb..a40d4c0b047 100644 --- a/public/app/plugins/panel/table/table-new/module.tsx +++ b/public/app/plugins/panel/table/table-new/module.tsx @@ -105,10 +105,7 @@ export const plugin = new PanelPlugin(TablePanel) .addBooleanSwitch({ path: 'wrapHeaderText', name: t('table.name-wrap-header-text', 'Wrap header text'), - description: t( - 'table.description-wrap-header-text', - 'Enables text wrapping for the field name in the table header' - ), + description: t('table.description-wrap-header-text', 'Enables text wrapping for column headers'), category, defaultValue: defaultTableFieldOptions.wrapHeaderText, }) diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index e8c08c32dd0..2a3a370bb07 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -11740,7 +11740,7 @@ "description-count-rows": "Display a single count for all data rows", "description-fields": "Select the fields that should be calculated", "description-min-column-width": "The minimum width for column auto resizing", - "description-wrap-header-text": "Enables text wrapping for the field name in the table header", + "description-wrap-header-text": "Enables text wrapping for column headers", "image-cell-options-editor": { "description-alt-text": "Alternative text that will be displayed if an image can't be displayed or for users who use a screen reader", "description-title-text": "Text that will be displayed when the image is hovered by a cursor",