From f436fbc11a61ebd93e2f46b389745890a8da8ced Mon Sep 17 00:00:00 2001 From: Yaozong Liu <750188453@qq.com> Date: Fri, 30 Jul 2021 03:03:49 +0800 Subject: [PATCH] chore: remove V2 and add Deprecated (#1250) --- .../plugins/legacy-plugin-chart-pivot-table/src/index.js | 2 +- .../plugins/legacy-plugin-chart-treemap/src/index.js | 2 +- .../plugins/plugin-chart-echarts/src/Treemap/index.ts | 2 +- .../plugins/plugin-chart-pivot-table/src/plugin/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-pivot-table/src/index.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-pivot-table/src/index.js index 19dd1f85b7d1..3c46a7cf4637 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-pivot-table/src/index.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-pivot-table/src/index.js @@ -26,7 +26,7 @@ const metadata = new ChartMetadata({ description: t(`Used to summarize a set of data by grouping together multiple statistics along two axes. Examples: Sales numbers by region and month, tasks by status and assignee, active users by age and location. This chart is being deprecated and we recommend checking out Pivot Table V2 instead!`), - name: t('Pivot Table'), + name: t('Pivot Table (Deprecated)'), tags: [t('Legacy')], thumbnail, useLegacyApi: true, diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-treemap/src/index.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-treemap/src/index.js index 99e038ecb4bd..75fca55d7c14 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-treemap/src/index.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-treemap/src/index.js @@ -32,7 +32,7 @@ const metadata = new ChartMetadata({ 'Shows the composition of a dataset by segmenting a given rectangle as smaller rectangles with areas proportional to their value or contribution to the whole. Those rectangles may also, in turn, be further segmented hierarchically.', ), exampleGallery: [{ url: example1 }, { url: example2 }, { url: example3 }, { url: example4 }], - name: t('Treemap'), + name: t('Treemap (Deprecated)'), tags: [t('Categorical'), t('Legacy'), t('Multi-Levels'), t('Percentages'), t('Proportional')], thumbnail, useLegacyApi: true, diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Treemap/index.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Treemap/index.ts index 575bb41fb9ee..8566b2a57a5d 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Treemap/index.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Treemap/index.ts @@ -53,7 +53,7 @@ export default class EchartsTreemapChartPlugin extends ChartPlugin< 'Show hierarchical relationships of data, with with the value represented by area, showing proportion and contribution to the whole.', ), exampleGallery: [{ url: example1 }, { url: example2 }], - name: t('Treemap v2'), + name: t('Treemap'), tags: [ t('Aesthetic'), t('Categorical'), diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-pivot-table/src/plugin/index.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-pivot-table/src/plugin/index.ts index fc1f33a4c5f1..28d01566746c 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-pivot-table/src/plugin/index.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-pivot-table/src/plugin/index.ts @@ -51,7 +51,7 @@ export default class PivotTableChartPlugin extends ChartPlugin< description: t( 'Used to summarize a set of data by grouping together multiple statistics along two axes. Examples: Sales numbers by region and month, tasks by status and assignee, active users by age and location. Not the most visually stunning visualization, but highly informative and versatile.', ), - name: t('Pivot Table v2'), + name: t('Pivot Table'), tags: [t('Additive'), t('Report'), t('Tabular'), t('Highly-used')], thumbnail, });