fix(explore): Update tooltip copy for rendering html in tables and pivot tables (#30682)

Co-authored-by: Joe Li <joe@preset.io>
This commit is contained in:
yousoph 2024-11-01 10:54:50 -07:00 committed by GitHub
parent ab95bff7b6
commit 3ec3f0a610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 26 deletions

View File

@ -16,6 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
import {
ControlPanelConfig,
D3_TIME_FORMAT_OPTIONS,
Dataset,
getStandardizedControls,
sharedControls,
} from '@superset-ui/chart-controls';
import {
ensureIsArray,
isAdhocColumn,
@ -25,13 +32,6 @@ import {
t,
validateNonEmpty,
} from '@superset-ui/core';
import {
ControlPanelConfig,
D3_TIME_FORMAT_OPTIONS,
sharedControls,
Dataset,
getStandardizedControls,
} from '@superset-ui/chart-controls';
import { MetricsLayoutEnum } from '../types';
const config: ControlPanelConfig = {
@ -436,7 +436,9 @@ const config: ControlPanelConfig = {
label: t('Render columns in HTML format'),
renderTrigger: true,
default: true,
description: t('Render data in HTML format if applicable.'),
description: t(
'Renders table cells as HTML when applicable. For example, HTML &lt;a&gt; tags will be rendered as hyperlinks.',
),
},
},
],

View File

@ -17,6 +17,23 @@
* specific language governing permissions and limitations
* under the License.
*/
import {
ColumnMeta,
ColumnOption,
ControlConfig,
ControlPanelConfig,
ControlPanelsContainerProps,
ControlPanelState,
ControlState,
ControlStateMapping,
D3_TIME_FORMAT_OPTIONS,
Dataset,
defineSavedMetrics,
getStandardizedControls,
QueryModeLabel,
sections,
sharedControls,
} from '@superset-ui/chart-controls';
import {
ensureIsArray,
GenericDataType,
@ -27,23 +44,6 @@ import {
SMART_DATE_ID,
t,
} from '@superset-ui/core';
import {
ColumnOption,
ControlConfig,
ControlPanelConfig,
ControlPanelsContainerProps,
ControlStateMapping,
D3_TIME_FORMAT_OPTIONS,
QueryModeLabel,
sharedControls,
ControlPanelState,
ControlState,
Dataset,
ColumnMeta,
defineSavedMetrics,
getStandardizedControls,
sections,
} from '@superset-ui/chart-controls';
import { isEmpty } from 'lodash';
import { PAGE_SIZE_OPTIONS } from './consts';
@ -466,7 +466,9 @@ const config: ControlPanelConfig = {
label: t('Render columns in HTML format'),
renderTrigger: true,
default: true,
description: t('Render data in HTML format if applicable.'),
description: t(
'Renders table cells as HTML when applicable. For example, HTML &lt;a&gt; tags will be rendered as hyperlinks.',
),
},
},
],