[Lens] Use Heat map instead of heatmap (#124531)

* [Lens] Use Heat map instead of heatmap

* Fix ci

* Fix tests

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2022-02-04 16:20:40 +02:00 committed by GitHub
parent 2b753614f4
commit a57beab8aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 12 deletions

View file

@ -26,7 +26,7 @@ export const getHeatmapVisTypeDefinition = ({
title: i18n.translate('visTypeHeatmap.heatmap.heatmapTitle', { defaultMessage: 'Heat map' }),
icon: 'heatmap',
description: i18n.translate('visTypeHeatmap.heatmap.heatmapDescription', {
defaultMessage: 'Shade data in cells in a matrix.',
defaultMessage: 'Display values as colors in a matrix.',
}),
toExpressionAst,
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter],

View file

@ -26,7 +26,7 @@ export const CHART_NAMES = {
shapeType: CHART_SHAPES.HEATMAP,
icon: HeatmapIcon,
label: i18n.translate('xpack.lens.heatmap.heatmapLabel', {
defaultMessage: 'Heatmap',
defaultMessage: 'Heat map',
}),
groupLabel,
},

View file

@ -237,7 +237,7 @@ describe('heatmap suggestions', () => {
type: LEGEND_FUNCTION,
},
},
title: 'Heatmap',
title: 'Heat map',
hide: true,
previewIcon: 'empty',
score: 0,
@ -290,7 +290,7 @@ describe('heatmap suggestions', () => {
type: LEGEND_FUNCTION,
},
},
title: 'Heatmap',
title: 'Heat map',
hide: true,
previewIcon: 'empty',
score: 0.3,
@ -356,7 +356,7 @@ describe('heatmap suggestions', () => {
type: LEGEND_FUNCTION,
},
},
title: 'Heatmap',
title: 'Heat map',
// Temp hide all suggestions while heatmap is in beta
hide: true,
previewIcon: 'empty',
@ -431,7 +431,7 @@ describe('heatmap suggestions', () => {
type: LEGEND_FUNCTION,
},
},
title: 'Heatmap',
title: 'Heat map',
// Temp hide all suggestions while heatmap is in beta
hide: true,
previewIcon: 'empty',

View file

@ -104,7 +104,7 @@ export const getSuggestions: Visualization<HeatmapVisualizationState>['getSugges
{
state: newState,
title: i18n.translate('xpack.lens.heatmap.heatmapLabel', {
defaultMessage: 'Heatmap',
defaultMessage: 'Heat map',
}),
// Temp hide all suggestions while heatmap is in beta
hide: true || hide,

View file

@ -108,7 +108,7 @@ export const getHeatmapVisualization = ({
id: 'heatmap',
icon: HeatmapIcon,
label: i18n.translate('xpack.lens.heatmapVisualization.heatmapLabel', {
defaultMessage: 'Heatmap',
defaultMessage: 'Heat map',
}),
groupLabel: groupLabelForHeatmap,
showExperimentalBadge: false,

View file

@ -255,7 +255,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.lens.waitForVisualization();
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
await PageObjects.lens.waitForVisualization();
await PageObjects.lens.openDimensionEditor('lnsHeatmap_cellPanel > lns-dimensionTrigger');

View file

@ -101,7 +101,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
it('should render heatmap chart', async () => {
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
await PageObjects.lens.waitForVisualization();
const debugState = await PageObjects.lens.getCurrentChartDebugState();

View file

@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
it('should render heatmap chart with the temperature palette', async () => {
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
await PageObjects.lens.waitForVisualization();
const debugState = await PageObjects.lens.getCurrentChartDebugState();

View file

@ -434,7 +434,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
await PageObjects.lens.goToTimeRange();
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
await PageObjects.lens.configureDimension({
dimension: 'lnsHeatmap_xDimensionPanel > lns-empty-dimension',