Skip to content

Commit

Permalink
rename beta badge (elastic#101884)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored and John Dorlus committed Jun 15, 2021
1 parent fc62a3c commit dd0abcf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) {
<EuiIcon className="lnsChartSwitch__chartIcon" type={v.icon || 'empty'} />
),
append:
v.selection.dataLoss !== 'nothing' || v.showBetaBadge ? (
v.selection.dataLoss !== 'nothing' || v.showExperimentalBadge ? (
<EuiFlexGroup
gutterSize="xs"
responsive={false}
Expand Down Expand Up @@ -325,12 +325,12 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) {
/>
</EuiFlexItem>
) : null}
{v.showBetaBadge ? (
{v.showExperimentalBadge ? (
<EuiFlexItem grow={false}>
<EuiBadge color="hollow">
<FormattedMessage
id="xpack.lens.chartSwitch.betaLabel"
defaultMessage="Beta"
id="xpack.lens.chartSwitch.experimentalLabel"
defaultMessage="Experimental"
/>
</EuiBadge>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const getHeatmapVisualization = ({
defaultMessage: 'Heatmap',
}),
groupLabel: groupLabelForBar,
showBetaBadge: true,
showExperimentalBadge: true,
},
],

Expand Down
7 changes: 5 additions & 2 deletions x-pack/plugins/lens/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface EditorFrameProps {
initialContext?: VisualizeFieldContext;
showNoDataPopover: () => void;
}

export interface EditorFrameInstance {
EditorFrameContainer: (props: EditorFrameProps) => React.ReactElement;
}
Expand Down Expand Up @@ -570,9 +571,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<T = unknown> {
Expand Down Expand Up @@ -734,6 +735,7 @@ interface LensEditContextMapping {
[LENS_EDIT_RESIZE_ACTION]: LensResizeActionData;
[LENS_TOGGLE_ACTION]: LensToggleActionData;
}

type LensEditSupportedActions = keyof LensEditContextMapping;

export type LensEditPayload<T extends LensEditSupportedActions> = {
Expand All @@ -746,6 +748,7 @@ export interface LensEditEvent<T> {
name: 'edit';
data: EditPayloadContext<T>;
}

export interface LensTableRowContextMenuEvent {
name: 'tableRowContextMenuClick';
data: RowClickContext['data'];
Expand Down

0 comments on commit dd0abcf

Please sign in to comment.