From dc9c7cbb8b411b8b61aa79db051342f7c538059f Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 10 Jun 2021 14:14:36 +0200 Subject: [PATCH] rename beta badge --- .../editor_frame/workspace_panel/chart_switch.tsx | 8 ++++---- .../lens/public/heatmap_visualization/visualization.tsx | 2 +- x-pack/plugins/lens/public/types.ts | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx index ba0e09bdd894c..0c3a992e3dd7a 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/chart_switch.tsx @@ -297,7 +297,7 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) { ), append: - v.selection.dataLoss !== 'nothing' || v.showBetaBadge ? ( + v.selection.dataLoss !== 'nothing' || v.showExperimentalBadge ? ( ) : null} - {v.showBetaBadge ? ( + {v.showExperimentalBadge ? ( diff --git a/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx b/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx index 54f9c70824831..fce5bf30f47ed 100644 --- a/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx +++ b/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx @@ -88,7 +88,7 @@ export const getHeatmapVisualization = ({ defaultMessage: 'Heatmap', }), groupLabel: groupLabelForBar, - showBetaBadge: true, + showExperimentalBadge: true, }, ], diff --git a/x-pack/plugins/lens/public/types.ts b/x-pack/plugins/lens/public/types.ts index 3394616618672..6a816f8151687 100644 --- a/x-pack/plugins/lens/public/types.ts +++ b/x-pack/plugins/lens/public/types.ts @@ -49,6 +49,7 @@ export interface EditorFrameProps { initialContext?: VisualizeFieldContext; showNoDataPopover: () => void; } + export interface EditorFrameInstance { EditorFrameContainer: (props: EditorFrameProps) => React.ReactElement; } @@ -561,9 +562,9 @@ export interface VisualizationType { */ sortPriority?: number; /** - * Indicates if visualization is in the beta stage. + * Indicates if visualization is in the experimental stage. */ - showBetaBadge?: boolean; + showExperimentalBadge?: boolean; } export interface Visualization { @@ -725,6 +726,7 @@ interface LensEditContextMapping { [LENS_EDIT_RESIZE_ACTION]: LensResizeActionData; [LENS_TOGGLE_ACTION]: LensToggleActionData; } + type LensEditSupportedActions = keyof LensEditContextMapping; export type LensEditPayload = { @@ -737,6 +739,7 @@ export interface LensEditEvent { name: 'edit'; data: EditPayloadContext; } + export interface LensTableRowContextMenuEvent { name: 'tableRowContextMenuClick'; data: RowClickContext['data'];