From 141e9a85b45c4747fc54619bbdea0a0bc6ec3891 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 15 Aug 2023 11:16:50 -0700 Subject: [PATCH 01/22] horizontal to vertical hits/timechart Signed-off-by: Paul Sebastian --- .../event_analytics/explorer/explorer.tsx | 56 +++++++++---------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 9ceaaa9f44..be8fd8daab 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -522,37 +522,31 @@ export const Explorer = ({
{countDistribution?.data && !isLiveTailOnRef.current && ( <> - - - { - return sum + n; - }, - 0 - )} - showResetButton={false} - onResetQuery={() => {}} - /> - - - { - const intervalOptionsIndex = timeIntervalOptions.findIndex( - (item) => item.value === selectedIntrv - ); - const intrv = selectedIntrv.replace(/^auto_/, ''); - getCountVisualizations(intrv); - selectedIntervalRef.current = timeIntervalOptions[intervalOptionsIndex]; - getPatterns(intrv, getErrorHandler('Error fetching patterns')); - }} - stateInterval={selectedIntervalRef.current?.value} - /> - - + { + return sum + n; + }, + 0 + )} + showResetButton={false} + onResetQuery={() => {}} + /> + { + const intervalOptionsIndex = timeIntervalOptions.findIndex( + (item) => item.value === selectedIntrv + ); + const intrv = selectedIntrv.replace(/^auto_/, ''); + getCountVisualizations(intrv); + selectedIntervalRef.current = timeIntervalOptions[intervalOptionsIndex]; + getPatterns(intrv, getErrorHandler('Error fetching patterns')); + }} + stateInterval={selectedIntervalRef.current?.value} + /> Date: Tue, 15 Aug 2023 14:07:17 -0700 Subject: [PATCH 02/22] Added timespan to the header Signed-off-by: Paul Sebastian --- public/components/event_analytics/explorer/explorer.tsx | 1 + .../explorer/timechart_header/timechart_header.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index be8fd8daab..8ea560a5c3 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -546,6 +546,7 @@ export const Explorer = ({ getPatterns(intrv, getErrorHandler('Error fetching patterns')); }} stateInterval={selectedIntervalRef.current?.value} + timeSpan={(Object.entries(countDistribution.data).find(([key]) => key.slice(0,4) === "span")|| [])[1]} /> diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 7b8d106937..336576a948 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -32,12 +32,17 @@ export interface TimechartHeaderProps { * selected interval */ stateInterval?: string | undefined; + /** + * current time span being displayed on the count distribution + */ + timeSpan: Array; } export function TimechartHeader({ options, onChangeInterval, stateInterval, + timeSpan }: TimechartHeaderProps) { const handleIntervalChange = (e: React.ChangeEvent) => { @@ -54,7 +59,7 @@ export function TimechartHeader({ })} delay="long" > - + {timeSpan[0]} - {timeSpan[timeSpan.length-1]} From 1c9eece29558a01c3fe607a3710fc884e71042ac Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 15 Aug 2023 15:30:13 -0700 Subject: [PATCH 03/22] Correct formatting of timespan header Signed-off-by: Paul Sebastian --- .../explorer/timechart_header/timechart_header.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 336576a948..f5f8808fcf 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -7,6 +7,11 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiToolTip, EuiText, EuiSelect } from '@elastic/eui'; import { I18nProvider } from '@osd/i18n/react'; import { i18n } from '@osd/i18n'; +import moment from 'moment'; + +function reformatDate(inputDate: string) { + return moment(inputDate).format('MMM D, YYYY @ HH:mm:ss.SSS') +} export interface TimechartHeaderProps { /** @@ -59,7 +64,7 @@ export function TimechartHeader({ })} delay="long" > - {timeSpan[0]} - {timeSpan[timeSpan.length-1]} + {reformatDate(timeSpan[0])} - {reformatDate(timeSpan[timeSpan.length-1])} From 5fe2524d53d21a4bdb224521b92ce16c4a41f30b Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 15 Aug 2023 16:51:09 -0700 Subject: [PATCH 04/22] small todo reminder Signed-off-by: Paul Sebastian --- .../explorer/timechart_header/timechart_header.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index f5f8808fcf..5c441faa40 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -9,6 +9,7 @@ import { I18nProvider } from '@osd/i18n/react'; import { i18n } from '@osd/i18n'; import moment from 'moment'; +// TODO: move this function into some common library for other observability datetime uses function reformatDate(inputDate: string) { return moment(inputDate).format('MMM D, YYYY @ HH:mm:ss.SSS') } From 55a9c3b2da29f177d6b8d8cb0781ac49cf907e9b Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 18 Aug 2023 15:05:32 -0700 Subject: [PATCH 05/22] Fixing type issues and undefined behavior Signed-off-by: Paul Sebastian --- .../event_analytics/explorer/explorer.tsx | 6 +++++- .../explorer/timechart_header/timechart_header.tsx | 13 ++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 8ea560a5c3..712b066e96 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -546,7 +546,11 @@ export const Explorer = ({ getPatterns(intrv, getErrorHandler('Error fetching patterns')); }} stateInterval={selectedIntervalRef.current?.value} - timeSpan={(Object.entries(countDistribution.data).find(([key]) => key.slice(0,4) === "span")|| [])[1]} + timeSpan={ + (Object.entries(countDistribution.data).find( + ([key]) => key.slice(0, 4) === 'span' + ) || [])[1] as string[] | undefined + } /> diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 5c441faa40..57c10c6461 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -11,7 +11,7 @@ import moment from 'moment'; // TODO: move this function into some common library for other observability datetime uses function reformatDate(inputDate: string) { - return moment(inputDate).format('MMM D, YYYY @ HH:mm:ss.SSS') + return moment(inputDate).format('MMM D, YYYY @ HH:mm:ss.SSS'); } export interface TimechartHeaderProps { @@ -41,16 +41,15 @@ export interface TimechartHeaderProps { /** * current time span being displayed on the count distribution */ - timeSpan: Array; + timeSpan: string[] | undefined; } export function TimechartHeader({ options, onChangeInterval, stateInterval, - timeSpan + timeSpan, }: TimechartHeaderProps) { - const handleIntervalChange = (e: React.ChangeEvent) => { onChangeInterval(e.target.value); }; @@ -65,7 +64,11 @@ export function TimechartHeader({ })} delay="long" > - {reformatDate(timeSpan[0])} - {reformatDate(timeSpan[timeSpan.length-1])} + {/* ?. is optional chaining and ?? is nullish coalescing */} + + {reformatDate(timeSpan?.[0] ?? 'now')} -{' '} + {reformatDate(timeSpan?.[timeSpan.length - 1] ?? 'now')} + From aab5046146202cf511a1bbd7fb7ac6b10cd4c7b1 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 22 Aug 2023 16:06:32 -0700 Subject: [PATCH 06/22] Color and y-axis name change Signed-off-by: Paul Sebastian --- common/constants/shared.ts | 2 +- public/components/visualizations/plotly/plot.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/constants/shared.ts b/common/constants/shared.ts index 2d10c08e2a..6922a12eda 100644 --- a/common/constants/shared.ts +++ b/common/constants/shared.ts @@ -85,7 +85,7 @@ export const SAVED_OBJECT = '/object'; // Color Constants export const PLOTLY_COLOR = [ '#3CA1C7', - '#8C55A3', + '#54B399', '#DB748A', '#F2BE4B', '#68CCC2', diff --git a/public/components/visualizations/plotly/plot.tsx b/public/components/visualizations/plotly/plot.tsx index bf1a61642d..0755f64248 100644 --- a/public/components/visualizations/plotly/plot.tsx +++ b/public/components/visualizations/plotly/plot.tsx @@ -47,6 +47,9 @@ export function Plt(props: PltProps) { automargin: true, }, yaxis: { + title: { + text: 'Count', + }, showgrid: true, zeroline: false, rangemode: 'normal', From 655cdc643da709194393c02f7a51ff0fa9b1cf1d Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Wed, 23 Aug 2023 16:57:41 -0700 Subject: [PATCH 07/22] fix timechart header to be up to date Signed-off-by: Paul Sebastian --- .../event_analytics/explorer/explorer.tsx | 7 ++----- .../explorer/timechart_header/timechart_header.tsx | 13 +++++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 712b066e96..5dc6899cd2 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -546,11 +546,8 @@ export const Explorer = ({ getPatterns(intrv, getErrorHandler('Error fetching patterns')); }} stateInterval={selectedIntervalRef.current?.value} - timeSpan={ - (Object.entries(countDistribution.data).find( - ([key]) => key.slice(0, 4) === 'span' - ) || [])[1] as string[] | undefined - } + startTime={appLogEvents ? startTime : dateRange[0]} + endTime={appLogEvents ? endTime : dateRange[1]} /> diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 57c10c6461..17e9649c99 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -8,9 +8,10 @@ import { EuiFlexGroup, EuiFlexItem, EuiToolTip, EuiText, EuiSelect } from '@elas import { I18nProvider } from '@osd/i18n/react'; import { i18n } from '@osd/i18n'; import moment from 'moment'; +import datemath from '@elastic/datemath'; // TODO: move this function into some common library for other observability datetime uses -function reformatDate(inputDate: string) { +function reformatDate(inputDate: moment.Moment | undefined) { return moment(inputDate).format('MMM D, YYYY @ HH:mm:ss.SSS'); } @@ -41,14 +42,16 @@ export interface TimechartHeaderProps { /** * current time span being displayed on the count distribution */ - timeSpan: string[] | undefined; + startTime: string; + endTime: string; } export function TimechartHeader({ options, onChangeInterval, stateInterval, - timeSpan, + startTime, + endTime, }: TimechartHeaderProps) { const handleIntervalChange = (e: React.ChangeEvent) => { onChangeInterval(e.target.value); @@ -64,10 +67,8 @@ export function TimechartHeader({ })} delay="long" > - {/* ?. is optional chaining and ?? is nullish coalescing */} - {reformatDate(timeSpan?.[0] ?? 'now')} -{' '} - {reformatDate(timeSpan?.[timeSpan.length - 1] ?? 'now')} + {reformatDate(datemath.parse(startTime))} - {reformatDate(datemath.parse(endTime))} From d3755a8667d4ecb7234b5f2d2c6e2d714d0d7f12 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 25 Aug 2023 11:35:46 -0700 Subject: [PATCH 08/22] added all snapshots Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/utils.test.tsx.snap | 14 +++++++------- .../__snapshots__/timechart_header.test.tsx.snap | 6 +++++- .../__snapshots__/config_panel.test.tsx.snap | 6 +++--- .../__snapshots__/count_distribution.test.tsx.snap | 7 +++++-- .../service_breakdown_panel.test.tsx.snap | 3 +++ .../__tests__/__snapshots__/bar.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/gauge.test.tsx.snap | 2 +- .../__tests__/__snapshots__/heatmap.test.tsx.snap | 6 +++--- .../__snapshots__/histogram.test.tsx.snap | 9 ++++++--- .../__snapshots__/horizontal_bar.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/line.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/metrics.test.tsx.snap | 4 ++-- .../__tests__/__snapshots__/pie.test.tsx.snap | 9 ++++++--- .../__tests__/__snapshots__/treemap.test.tsx.snap | 9 ++++++--- .../__tests__/__snapshots__/plotly.test.tsx.snap | 4 ++-- 15 files changed, 58 insertions(+), 39 deletions(-) diff --git a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap index 6a90951816..adf75a180e 100644 --- a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap +++ b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap @@ -1423,7 +1423,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -1516,7 +1516,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2057,7 +2057,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2573,7 +2573,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -3103,7 +3103,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -4768,7 +4768,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -4861,7 +4861,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index 7255e68b34..4901f258f3 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -157,7 +157,11 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` data-test-subj="discoverIntervalDateRange" onBlur={[Function]} onFocus={[Function]} - /> + > + Aug 25, 2023 @ 18:20:05.160 + - + Aug 25, 2023 @ 18:20:05.164 +
diff --git a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap index 5be9321c75..6162e2a462 100644 --- a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap @@ -1602,7 +1602,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -1835,7 +1835,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2333,7 +2333,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap index 03e9b3fb44..345b4f0cad 100644 --- a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap @@ -71,7 +71,7 @@ exports[`Count distribution component Renders count distribution component with layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -120,7 +120,7 @@ exports[`Count distribution component Renders count distribution component with "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", @@ -145,6 +145,9 @@ exports[`Count distribution component Renders count distribution component with "yaxis": Object { "rangemode": "normal", "showgrid": true, + "title": Object { + "text": "Count", + }, "zeroline": false, }, } diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap index 4b25a19b50..db4ecbdadf 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/service_breakdown_panel.test.tsx.snap @@ -220,6 +220,9 @@ exports[`Service breakdown panel component renders service breakdown panel 1`] = "yaxis": Object { "rangemode": "normal", "showgrid": true, + "title": Object { + "text": "Count", + }, "zeroline": false, }, } diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap index fbaa0739f1..1529919ed1 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -698,7 +698,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", @@ -756,7 +756,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap index 4acd7cae05..bb2075dc0f 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Gauge component Renders gauge component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap index fe48e32283..013b2106b6 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -710,7 +710,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -763,7 +763,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap index ef6d077e95..f56257ba03 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Histogram component Renders histogram component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -711,7 +711,7 @@ exports[`Histogram component Renders histogram component 1`] = ` Object { "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "legend": Object { @@ -767,7 +767,7 @@ exports[`Histogram component Renders histogram component 1`] = ` "autosize": true, "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", @@ -792,6 +792,9 @@ exports[`Histogram component Renders histogram component 1`] = ` "yaxis": Object { "rangemode": "normal", "showgrid": true, + "title": Object { + "text": "Count", + }, "zeroline": false, }, } diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap index 65d40ade36..fd5d086b17 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -698,7 +698,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", @@ -756,7 +756,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap index ecab56aa68..87f23bc1d4 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Line component Renders line component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -697,7 +697,7 @@ exports[`Line component Renders line component 1`] = ` Object { "autosize": true, "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "legend": Object { @@ -749,7 +749,7 @@ exports[`Line component Renders line component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap index ee792c6250..0d2c4eea3b 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Metrics component Renders Metrics component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -618,7 +618,7 @@ exports[`Metrics component Renders Metrics component 1`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#8C55A3", + "#54B399", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap index 22f72a1b00..67b8a13606 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Pie component Renders pie component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -686,7 +686,7 @@ exports[`Pie component Renders pie component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "grid": Object { "columns": 0, @@ -733,7 +733,7 @@ exports[`Pie component Renders pie component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "grid": Object { "columns": 0, @@ -773,6 +773,9 @@ exports[`Pie component Renders pie component 1`] = ` "yaxis": Object { "rangemode": "normal", "showgrid": true, + "title": Object { + "text": "Count", + }, "zeroline": false, }, } diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap index ad01ede70b..483149850d 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Treemap component Renders treemap component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -723,7 +723,7 @@ exports[`Treemap component Renders treemap component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -790,7 +790,7 @@ exports[`Treemap component Renders treemap component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", @@ -817,6 +817,9 @@ exports[`Treemap component Renders treemap component 1`] = ` "yaxis": Object { "rangemode": "normal", "showgrid": true, + "title": Object { + "text": "Count", + }, "zeroline": false, }, } diff --git a/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap b/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap index af24195dd4..5ed2e0512b 100644 --- a/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap +++ b/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap @@ -36,7 +36,7 @@ exports[`Ploty base component Renders Ploty base component 1`] = ` layout={ Object { "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "margin": Object { @@ -101,7 +101,7 @@ exports[`Ploty base component Renders Ploty base component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#8C55A3", + "#54B399", ], "height": 220, "hovermode": "closest", From 227eefa3af303ca73fc065e04be4af7fd090ffd1 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 25 Aug 2023 14:26:39 -0700 Subject: [PATCH 09/22] added upstream snapshots Signed-off-by: Paul Sebastian --- .../__snapshots__/log_config.test.tsx.snap | 130 +----- .../service_config.test.tsx.snap | 130 +----- .../__snapshots__/trace_config.test.tsx.snap | 130 +----- .../custom_panel_view.test.tsx.snap | 260 +----------- .../__snapshots__/panel_grid.test.tsx.snap | 65 +-- .../timechart_header.test.tsx.snap | 4 +- .../__snapshots__/metrics_grid.test.tsx.snap | 65 +-- .../__snapshots__/dashboard.test.tsx.snap | 390 +----------------- .../__snapshots__/services.test.tsx.snap | 390 +----------------- .../__snapshots__/traces.test.tsx.snap | 390 +----------------- 10 files changed, 62 insertions(+), 1892 deletions(-) diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 0b7a6bd6e5..22fb592954 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -12,75 +12,13 @@ exports[`Log Config component renders empty log config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -107,6 +45,7 @@ exports[`Log Config component renders empty log config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -617,75 +556,13 @@ exports[`Log Config component renders with query 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -712,6 +589,7 @@ exports[`Log Config component renders with query 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap index 6a9d6769ae..b21e186e4d 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap @@ -12,75 +12,13 @@ exports[`Service Config component renders empty service config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -107,6 +45,7 @@ exports[`Service Config component renders empty service config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -1186,75 +1125,13 @@ exports[`Service Config component renders with one service selected 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1281,6 +1158,7 @@ exports[`Service Config component renders with one service selected 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap index 966d86ed1e..577ca04697 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap @@ -11,75 +11,13 @@ exports[`Trace Config component renders empty trace config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -106,6 +44,7 @@ exports[`Trace Config component renders empty trace config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -909,75 +848,13 @@ exports[`Trace Config component renders with one trace selected 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1004,6 +881,7 @@ exports[`Trace Config component renders with one trace selected 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap index a71458d9c9..05379e0bcd 100644 --- a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap +++ b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap @@ -22,6 +22,7 @@ exports[`Panels View Component renders panel view container with visualizations }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -297,69 +298,6 @@ exports[`Panels View Component renders panel view container with visualizations ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -386,6 +324,7 @@ exports[`Panels View Component renders panel view container with visualizations "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1795,6 +1734,7 @@ exports[`Panels View Component renders panel view container with visualizations }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -2070,69 +2010,6 @@ exports[`Panels View Component renders panel view container with visualizations ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2159,6 +2036,7 @@ exports[`Panels View Component renders panel view container with visualizations "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2350,6 +2228,7 @@ exports[`Panels View Component renders panel view container without visualizatio }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -2514,69 +2393,6 @@ exports[`Panels View Component renders panel view container without visualizatio ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2603,6 +2419,7 @@ exports[`Panels View Component renders panel view container without visualizatio "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3979,6 +3796,7 @@ exports[`Panels View Component renders panel view container without visualizatio }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -4143,69 +3961,6 @@ exports[`Panels View Component renders panel view container without visualizatio ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -4232,6 +3987,7 @@ exports[`Panels View Component renders panel view container without visualizatio "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap index 51b0c4a758..04f722aaa3 100644 --- a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap @@ -11,6 +11,7 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -175,69 +176,6 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -264,6 +202,7 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index 4901f258f3..3ada70428c 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -158,9 +158,9 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 25, 2023 @ 18:20:05.160 + Aug 25, 2023 @ 21:14:43.175 - - Aug 25, 2023 @ 18:20:05.164 + Aug 25, 2023 @ 21:14:43.177 diff --git a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap index 36eb2a7fa9..5cc2fee086 100644 --- a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap +++ b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap @@ -22,6 +22,7 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -186,69 +187,6 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` ], }, "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -275,6 +213,7 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap index 731ac72538..8d437c4510 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap @@ -24,75 +24,13 @@ exports[`Dashboard component renders dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -119,6 +57,7 @@ exports[`Dashboard component renders dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -354,75 +293,13 @@ exports[`Dashboard component renders dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -449,6 +326,7 @@ exports[`Dashboard component renders dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2504,75 +2382,13 @@ exports[`Dashboard component renders empty dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2599,6 +2415,7 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2829,75 +2646,13 @@ exports[`Dashboard component renders empty dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2924,6 +2679,7 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -4952,75 +4708,13 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -5047,6 +4741,7 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -5283,75 +4978,13 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -5378,6 +5011,7 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap index 711f68b722..0d88b21395 100644 --- a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap +++ b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap @@ -24,75 +24,13 @@ exports[`Services component renders empty services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -119,6 +57,7 @@ exports[`Services component renders empty services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -352,75 +291,13 @@ exports[`Services component renders empty services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -447,6 +324,7 @@ exports[`Services component renders empty services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2037,75 +1915,13 @@ exports[`Services component renders jaeger services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2132,6 +1948,7 @@ exports[`Services component renders jaeger services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2370,75 +2187,13 @@ exports[`Services component renders jaeger services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2465,6 +2220,7 @@ exports[`Services component renders jaeger services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3557,75 +3313,13 @@ exports[`Services component renders services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3652,6 +3346,7 @@ exports[`Services component renders services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3889,75 +3584,13 @@ exports[`Services component renders services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3984,6 +3617,7 @@ exports[`Services component renders services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap index b9a28eade4..c39db34c17 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap @@ -24,75 +24,13 @@ exports[`Traces component renders empty traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -119,6 +57,7 @@ exports[`Traces component renders empty traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -351,75 +290,13 @@ exports[`Traces component renders empty traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -446,6 +323,7 @@ exports[`Traces component renders empty traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1503,75 +1381,13 @@ exports[`Traces component renders jaeger traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1598,6 +1414,7 @@ exports[`Traces component renders jaeger traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1835,75 +1652,13 @@ exports[`Traces component renders jaeger traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1930,6 +1685,7 @@ exports[`Traces component renders jaeger traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3011,75 +2767,13 @@ exports[`Traces component renders traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3106,6 +2800,7 @@ exports[`Traces component renders traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3342,75 +3037,13 @@ exports[`Traces component renders traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], + "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], - "logos": Object { - "AnimatedMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_spinner_on_light.svg", - }, - "Application": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_dashboards_on_light.svg", - }, - "CenterMark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_center_mark_on_light.svg", - }, - "Mark": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_mark_on_light.svg", - }, - "OpenSearch": Object { - "dark": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_dark.svg", - }, - "light": Object { - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "type": "default", - "url": "/ui/logos/opensearch_on_light.svg", - }, - "colorScheme": "light", - }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3437,6 +3070,7 @@ exports[`Traces component renders traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], + "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ From 700d764c785921e6cdc98ac75633d29c78ff4c44 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 25 Aug 2023 15:02:00 -0700 Subject: [PATCH 10/22] added one missing snapshot Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/timechart_header.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index 3ada70428c..b17c4c4c7f 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -158,9 +158,9 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 25, 2023 @ 21:14:43.175 + Aug 25, 2023 @ 22:00:47.829 - - Aug 25, 2023 @ 21:14:43.177 + Aug 25, 2023 @ 22:00:47.862 From 12b4fefca16947c470e1da690422ed9914faebeb Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 10:29:39 -0700 Subject: [PATCH 11/22] snapshot Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/timechart_header.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index b17c4c4c7f..44010a76b7 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -158,9 +158,9 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 25, 2023 @ 22:00:47.829 + Aug 28, 2023 @ 17:19:51.857 - - Aug 25, 2023 @ 22:00:47.862 + Aug 28, 2023 @ 17:19:51.861 From 9d2dd2578ccdbc0401609b33c43a7c13d5eb9448 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 12:35:53 -0700 Subject: [PATCH 12/22] jest test change upload Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/timechart_header.test.tsx.snap | 6 ++++-- .../timechart_header/__tests__/timechart_header.test.tsx | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index 44010a76b7..cec3c3dfd8 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -3,6 +3,7 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` @@ -158,9 +160,9 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 28, 2023 @ 17:19:51.857 + Aug 28, 2023 @ 19:30:15.966 - - Aug 28, 2023 @ 17:19:51.861 + Aug 28, 2023 @ 19:30:15.969 diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx index 2d56d74b97..5bfcdd88dd 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx @@ -22,6 +22,8 @@ describe('Time chart header component', () => { onChangeInterval={onChangeInterval} options={TIME_INTERVAL_OPTIONS} stateInterval="w" + startTime="" + endTime="" /> ); From 19391eb481fada8cecc59a12547ef50b58532ac6 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 13:15:03 -0700 Subject: [PATCH 13/22] constant datetimes to timeheader added Signed-off-by: Paul Sebastian --- .../__snapshots__/timechart_header.test.tsx.snap | 8 ++++---- .../timechart_header/__tests__/timechart_header.test.tsx | 8 ++++++-- test/event_analytics_constants.ts | 4 ++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index cec3c3dfd8..f3bd78052f 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` @@ -160,9 +160,9 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 28, 2023 @ 19:30:15.966 + Aug 28, 2023 @ 20:00:00.406 - - Aug 28, 2023 @ 19:30:15.969 + Aug 28, 2023 @ 20:00:00.408 diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx index 5bfcdd88dd..3420a91898 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx @@ -9,6 +9,10 @@ import React from 'react'; import { waitFor } from '@testing-library/react'; import { TimechartHeader } from '../timechart_header'; import { TIME_INTERVAL_OPTIONS } from '../../../../../../common/constants/explorer'; +import { + EXPLORER_START_TIME, + EXPLORER_END_TIME, +} from '../../../../../../test/event_analytics_constants'; describe('Time chart header component', () => { configure({ adapter: new Adapter() }); @@ -22,8 +26,8 @@ describe('Time chart header component', () => { onChangeInterval={onChangeInterval} options={TIME_INTERVAL_OPTIONS} stateInterval="w" - startTime="" - endTime="" + startTime={EXPLORER_START_TIME} + endTime={EXPLORER_END_TIME} /> ); diff --git a/test/event_analytics_constants.ts b/test/event_analytics_constants.ts index cf8df8a0e1..8dafbf7f66 100644 --- a/test/event_analytics_constants.ts +++ b/test/event_analytics_constants.ts @@ -567,3 +567,7 @@ export const HORIZONTAL_BAR_TEST_VISUALIZATIONS_DATA = { type: VIS_CHART_TYPES.HorizontalBar, }), }; + +export const EXPLORER_START_TIME = 'Aug 28, 2023 @ 20:00:00.406'; + +export const EXPLORER_END_TIME = 'Aug 28, 2023 @ 20:00:00.408'; From 6aa863b91bc0e06f98c2c75b57530f681eab64c4 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 15:26:03 -0700 Subject: [PATCH 14/22] Updated OSD to get new snapshots Signed-off-by: Paul Sebastian --- .../__snapshots__/log_config.test.tsx.snap | 130 +++++- .../service_config.test.tsx.snap | 130 +++++- .../__snapshots__/trace_config.test.tsx.snap | 130 +++++- .../custom_panel_view.test.tsx.snap | 260 +++++++++++- .../__snapshots__/panel_grid.test.tsx.snap | 65 ++- .../__snapshots__/metrics_grid.test.tsx.snap | 65 ++- .../__snapshots__/dashboard.test.tsx.snap | 390 +++++++++++++++++- .../__snapshots__/services.test.tsx.snap | 390 +++++++++++++++++- .../__snapshots__/traces.test.tsx.snap | 390 +++++++++++++++++- 9 files changed, 1890 insertions(+), 60 deletions(-) diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 22fb592954..0b7a6bd6e5 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -12,13 +12,75 @@ exports[`Log Config component renders empty log config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -45,7 +107,6 @@ exports[`Log Config component renders empty log config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -556,13 +617,75 @@ exports[`Log Config component renders with query 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -589,7 +712,6 @@ exports[`Log Config component renders with query 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap index b21e186e4d..6a9d6769ae 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap @@ -12,13 +12,75 @@ exports[`Service Config component renders empty service config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -45,7 +107,6 @@ exports[`Service Config component renders empty service config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -1125,13 +1186,75 @@ exports[`Service Config component renders with one service selected 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1158,7 +1281,6 @@ exports[`Service Config component renders with one service selected 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap index 577ca04697..966d86ed1e 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap @@ -11,13 +11,75 @@ exports[`Trace Config component renders empty trace config 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -44,7 +106,6 @@ exports[`Trace Config component renders empty trace config 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], @@ -848,13 +909,75 @@ exports[`Trace Config component renders with one trace selected 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -881,7 +1004,6 @@ exports[`Trace Config component renders with one trace selected 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap index 05379e0bcd..a71458d9c9 100644 --- a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap +++ b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap @@ -22,7 +22,6 @@ exports[`Panels View Component renders panel view container with visualizations }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -298,6 +297,69 @@ exports[`Panels View Component renders panel view container with visualizations ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -324,7 +386,6 @@ exports[`Panels View Component renders panel view container with visualizations "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1734,7 +1795,6 @@ exports[`Panels View Component renders panel view container with visualizations }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -2010,6 +2070,69 @@ exports[`Panels View Component renders panel view container with visualizations ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2036,7 +2159,6 @@ exports[`Panels View Component renders panel view container with visualizations "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2228,7 +2350,6 @@ exports[`Panels View Component renders panel view container without visualizatio }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -2393,6 +2514,69 @@ exports[`Panels View Component renders panel view container without visualizatio ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2419,7 +2603,6 @@ exports[`Panels View Component renders panel view container without visualizatio "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3796,7 +3979,6 @@ exports[`Panels View Component renders panel view container without visualizatio }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -3961,6 +4143,69 @@ exports[`Panels View Component renders panel view container without visualizatio ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3987,7 +4232,6 @@ exports[`Panels View Component renders panel view container without visualizatio "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap index 04f722aaa3..51b0c4a758 100644 --- a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap @@ -11,7 +11,6 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -176,6 +175,69 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -202,7 +264,6 @@ exports[`Panel Grid Component renders panel grid component with empty visualizat "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap index 5cc2fee086..36eb2a7fa9 100644 --- a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap +++ b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap @@ -22,7 +22,6 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], @@ -187,6 +186,69 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` ], }, "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -213,7 +275,6 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction], "setCustomNavLink": [MockFunction], "setHelpExtension": [MockFunction], diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap index 8d437c4510..731ac72538 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap @@ -24,13 +24,75 @@ exports[`Dashboard component renders dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -57,7 +119,6 @@ exports[`Dashboard component renders dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -293,13 +354,75 @@ exports[`Dashboard component renders dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -326,7 +449,6 @@ exports[`Dashboard component renders dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2382,13 +2504,75 @@ exports[`Dashboard component renders empty dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2415,7 +2599,6 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2646,13 +2829,75 @@ exports[`Dashboard component renders empty dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2679,7 +2924,6 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -4708,13 +4952,75 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -4741,7 +5047,6 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -4978,13 +5283,75 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -5011,7 +5378,6 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap index 0d88b21395..711f68b722 100644 --- a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap +++ b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap @@ -24,13 +24,75 @@ exports[`Services component renders empty services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -57,7 +119,6 @@ exports[`Services component renders empty services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -291,13 +352,75 @@ exports[`Services component renders empty services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -324,7 +447,6 @@ exports[`Services component renders empty services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1915,13 +2037,75 @@ exports[`Services component renders jaeger services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1948,7 +2132,6 @@ exports[`Services component renders jaeger services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2187,13 +2370,75 @@ exports[`Services component renders jaeger services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2220,7 +2465,6 @@ exports[`Services component renders jaeger services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3313,13 +3557,75 @@ exports[`Services component renders services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3346,7 +3652,6 @@ exports[`Services component renders services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3584,13 +3889,75 @@ exports[`Services component renders services page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3617,7 +3984,6 @@ exports[`Services component renders services page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap index c39db34c17..b9a28eade4 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap @@ -24,13 +24,75 @@ exports[`Traces component renders empty traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -57,7 +119,6 @@ exports[`Traces component renders empty traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -290,13 +351,75 @@ exports[`Traces component renders empty traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -323,7 +446,6 @@ exports[`Traces component renders empty traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1381,13 +1503,75 @@ exports[`Traces component renders jaeger traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1414,7 +1598,6 @@ exports[`Traces component renders jaeger traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -1652,13 +1835,75 @@ exports[`Traces component renders jaeger traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -1685,7 +1930,6 @@ exports[`Traces component renders jaeger traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -2767,13 +3011,75 @@ exports[`Traces component renders traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -2800,7 +3106,6 @@ exports[`Traces component renders traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ @@ -3037,13 +3342,75 @@ exports[`Traces component renders traces page 1`] = ` }, "getApplicationClasses$": [MockFunction], "getBadge$": [MockFunction], - "getBrand$": [MockFunction], "getBreadcrumbs$": [MockFunction], "getCustomNavLink$": [MockFunction], "getHeaderComponent": [MockFunction], "getHelpExtension$": [MockFunction], "getIsNavDrawerLocked$": [MockFunction], "getIsVisible$": [MockFunction], + "logos": Object { + "AnimatedMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_spinner_on_light.svg", + }, + "Application": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_dashboards_on_light.svg", + }, + "CenterMark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_center_mark_on_light.svg", + }, + "Mark": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_mark_on_light.svg", + }, + "OpenSearch": Object { + "dark": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_dark.svg", + }, + "light": Object { + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "type": "default", + "url": "/ui/logos/opensearch_on_light.svg", + }, + "colorScheme": "light", + }, "navControls": Object { "getCenter$": [MockFunction], "getLeft$": [MockFunction], @@ -3070,7 +3437,6 @@ exports[`Traces component renders traces page 1`] = ` "removeApplicationClass": [MockFunction], "setAppTitle": [MockFunction], "setBadge": [MockFunction], - "setBrand": [MockFunction], "setBreadcrumbs": [MockFunction] { "calls": Array [ Array [ From 1b1a74b36fea7ef618f6b751c6d97e4c500e2fff Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 16:15:28 -0700 Subject: [PATCH 15/22] remove redundant field, update constants, move daterange up Signed-off-by: Paul Sebastian --- common/constants/explorer.ts | 2 ++ .../event_analytics/explorer/explorer.tsx | 5 ++-- .../__tests__/timechart_header.test.tsx | 1 - .../timechart_header/timechart_header.tsx | 24 +++++++------------ 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/common/constants/explorer.ts b/common/constants/explorer.ts index f586f5fca9..61a563b764 100644 --- a/common/constants/explorer.ts +++ b/common/constants/explorer.ts @@ -50,6 +50,8 @@ export const DEFAULT_COLUMNS = ['', 'Time', '_source']; export const OTEL_TRACE_ID = 'traceId'; export const JAEGER_TRACE_ID = 'traceID'; export const DATE_PICKER_FORMAT = 'YYYY-MM-DD HH:mm:ss'; +export const DATE_DISPLAY_FORMAT = 'MMM D, YYYY @ HH:mm:ss.SSS'; +export const DEFAULT_DATETIME_STRING = 'now'; export const TIME_INTERVAL_OPTIONS = [ { text: 'Minute', diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 5dc6899cd2..00312438b8 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -473,6 +473,8 @@ export const Explorer = ({ return 0; }, [countDistribution?.data]); + const dateRange = getDateRange(startTime, endTime, query); + const mainContent = useMemo(() => { return ( <> @@ -534,7 +536,6 @@ export const Explorer = ({ onResetQuery={() => {}} /> { const intervalOptionsIndex = timeIntervalOptions.findIndex( @@ -894,8 +895,6 @@ export const Explorer = ({ ); }); - const dateRange = getDateRange(startTime, endTime, query); - const handleLiveTailSearch = useCallback( async (startingTime: string, endingTime: string) => { await updateQueryInStore(tempQuery); diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx index 3420a91898..0841429076 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/timechart_header.test.tsx @@ -22,7 +22,6 @@ describe('Time chart header component', () => { const wrapper = mount( - {reformatDate(datemath.parse(startTime))} - {reformatDate(datemath.parse(endTime))} + {reformatDate(datemath.parse(startTime ?? DEFAULT_DATETIME_STRING))} -{' '} + {reformatDate(datemath.parse(endTime ?? DEFAULT_DATETIME_STRING))} From 1244818f502294a7b7eba3de468e3c59d24e52e1 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 28 Aug 2023 16:29:05 -0700 Subject: [PATCH 16/22] snapshot Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/timechart_header.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index f3bd78052f..32effd5292 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -2,7 +2,6 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` Aug 28, 2023 @ 20:00:00.406 - - + - + Aug 28, 2023 @ 20:00:00.408 From db240fbcb17fd2f2060c79ec2f54d33ca24121db Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 29 Aug 2023 09:36:25 -0700 Subject: [PATCH 17/22] remove unneeded brackets Signed-off-by: Paul Sebastian --- .../explorer/timechart_header/timechart_header.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 66ddee5446..0201db1c28 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -61,8 +61,9 @@ export function TimechartHeader({ delay="long" > - {reformatDate(datemath.parse(startTime ?? DEFAULT_DATETIME_STRING))} -{' '} - {reformatDate(datemath.parse(endTime ?? DEFAULT_DATETIME_STRING))} + {reformatDate(datemath.parse(startTime ?? DEFAULT_DATETIME_STRING)) + + ' - ' + + reformatDate(datemath.parse(endTime ?? DEFAULT_DATETIME_STRING))} From da63e098dd86430f2b1b048aa5962e18e23f88ce Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 29 Aug 2023 09:39:09 -0700 Subject: [PATCH 18/22] change back color Signed-off-by: Paul Sebastian --- common/constants/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/constants/shared.ts b/common/constants/shared.ts index 6922a12eda..2d10c08e2a 100644 --- a/common/constants/shared.ts +++ b/common/constants/shared.ts @@ -85,7 +85,7 @@ export const SAVED_OBJECT = '/object'; // Color Constants export const PLOTLY_COLOR = [ '#3CA1C7', - '#54B399', + '#8C55A3', '#DB748A', '#F2BE4B', '#68CCC2', From 1d2380322e056e5b2922bc8cf229f1f048f81ed0 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 29 Aug 2023 09:39:37 -0700 Subject: [PATCH 19/22] code clarity change Signed-off-by: Paul Sebastian --- public/components/event_analytics/explorer/explorer.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 00312438b8..214e6ac4a0 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -525,13 +525,7 @@ export const Explorer = ({ {countDistribution?.data && !isLiveTailOnRef.current && ( <> { - return sum + n; - }, - 0 - )} + hits={countDistribution.data['count()'].sum()} showResetButton={false} onResetQuery={() => {}} /> From f8b31888e915d4ccec5a3f443f4f8da587c528a1 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Tue, 29 Aug 2023 10:25:18 -0700 Subject: [PATCH 20/22] updated snapshots Signed-off-by: Paul Sebastian --- .../__tests__/__snapshots__/utils.test.tsx.snap | 14 +++++++------- .../__snapshots__/timechart_header.test.tsx.snap | 5 +---- .../__snapshots__/config_panel.test.tsx.snap | 6 +++--- .../__snapshots__/count_distribution.test.tsx.snap | 4 ++-- .../__tests__/__snapshots__/bar.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/gauge.test.tsx.snap | 2 +- .../__tests__/__snapshots__/heatmap.test.tsx.snap | 6 +++--- .../__snapshots__/histogram.test.tsx.snap | 6 +++--- .../__snapshots__/horizontal_bar.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/line.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/metrics.test.tsx.snap | 4 ++-- .../__tests__/__snapshots__/pie.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/treemap.test.tsx.snap | 6 +++--- .../__tests__/__snapshots__/plotly.test.tsx.snap | 4 ++-- 14 files changed, 39 insertions(+), 42 deletions(-) diff --git a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap index adf75a180e..6a90951816 100644 --- a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap +++ b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap @@ -1423,7 +1423,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -1516,7 +1516,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2057,7 +2057,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2573,7 +2573,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -3103,7 +3103,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -4768,7 +4768,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -4861,7 +4861,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = ` "barmode": "group", "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index 32effd5292..de94c5f728 100644 --- a/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -159,10 +159,7 @@ exports[`Time chart header component Renders Time chart header component 1`] = ` onBlur={[Function]} onFocus={[Function]} > - Aug 28, 2023 @ 20:00:00.406 - - - - Aug 28, 2023 @ 20:00:00.408 + Aug 28, 2023 @ 20:00:00.406 - Aug 28, 2023 @ 20:00:00.408 diff --git a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap index 6162e2a462..5be9321c75 100644 --- a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap @@ -1602,7 +1602,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -1835,7 +1835,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", @@ -2333,7 +2333,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap index 345b4f0cad..5689366f5a 100644 --- a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap @@ -71,7 +71,7 @@ exports[`Count distribution component Renders count distribution component with layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -120,7 +120,7 @@ exports[`Count distribution component Renders count distribution component with "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap index 1529919ed1..fbaa0739f1 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -698,7 +698,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", @@ -756,7 +756,7 @@ exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap index bb2075dc0f..4acd7cae05 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Gauge component Renders gauge component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap index 013b2106b6..fe48e32283 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -710,7 +710,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -763,7 +763,7 @@ exports[`Heatmap component Renders heatmap component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap index f56257ba03..1857b0bc59 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Histogram component Renders histogram component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -711,7 +711,7 @@ exports[`Histogram component Renders histogram component 1`] = ` Object { "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "legend": Object { @@ -767,7 +767,7 @@ exports[`Histogram component Renders histogram component 1`] = ` "autosize": true, "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap index fd5d086b17..65d40ade36 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -698,7 +698,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", @@ -756,7 +756,7 @@ exports[`Horizontal bar component Renders horizontal bar component 1`] = ` "bargroupgap": 0.030000000000000027, "barmode": "group", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap index 87f23bc1d4..ecab56aa68 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Line component Renders line component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -697,7 +697,7 @@ exports[`Line component Renders line component 1`] = ` Object { "autosize": true, "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "legend": Object { @@ -749,7 +749,7 @@ exports[`Line component Renders line component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap index 0d2c4eea3b..ee792c6250 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Metrics component Renders Metrics component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -618,7 +618,7 @@ exports[`Metrics component Renders Metrics component 1`] = ` "layout": Object { "colorway": Array [ "#3CA1C7", - "#54B399", + "#8C55A3", "#DB748A", "#F2BE4B", "#68CCC2", diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap index 67b8a13606..2efd9326f6 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Pie component Renders pie component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -686,7 +686,7 @@ exports[`Pie component Renders pie component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "grid": Object { "columns": 0, @@ -733,7 +733,7 @@ exports[`Pie component Renders pie component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "grid": Object { "columns": 0, diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap index 483149850d..dbe192ad4a 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Treemap component Renders treemap component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -723,7 +723,7 @@ exports[`Treemap component Renders treemap component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -790,7 +790,7 @@ exports[`Treemap component Renders treemap component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", diff --git a/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap b/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap index 5ed2e0512b..af24195dd4 100644 --- a/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap +++ b/public/components/visualizations/plotly/__tests__/__snapshots__/plotly.test.tsx.snap @@ -36,7 +36,7 @@ exports[`Ploty base component Renders Ploty base component 1`] = ` layout={ Object { "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "margin": Object { @@ -101,7 +101,7 @@ exports[`Ploty base component Renders Ploty base component 1`] = ` "autosize": true, "barmode": "stack", "colorway": Array [ - "#54B399", + "#8C55A3", ], "height": 220, "hovermode": "closest", From 00eafa33efcddb51c3bc60f377bc1976a0573a59 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Wed, 30 Aug 2023 13:14:47 -0700 Subject: [PATCH 21/22] change back some code Signed-off-by: Paul Sebastian --- public/components/event_analytics/explorer/explorer.tsx | 8 +++++++- .../explorer/timechart_header/timechart_header.tsx | 9 +++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 214e6ac4a0..00312438b8 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -525,7 +525,13 @@ export const Explorer = ({ {countDistribution?.data && !isLiveTailOnRef.current && ( <> { + return sum + n; + }, + 0 + )} showResetButton={false} onResetQuery={() => {}} /> diff --git a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx index 0201db1c28..f294adc3f2 100644 --- a/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx +++ b/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx @@ -14,9 +14,8 @@ import { DEFAULT_DATETIME_STRING, } from '../../../../../common/constants/explorer'; -// TODO: move this function into some common library for other observability datetime uses -function reformatDate(inputDate: moment.Moment | undefined) { - return moment(inputDate).format(DATE_DISPLAY_FORMAT); +function reformatDate(inputDate: string | undefined) { + return moment(datemath.parse(inputDate ?? DEFAULT_DATETIME_STRING)).format(DATE_DISPLAY_FORMAT); } export interface TimechartHeaderProps { @@ -61,9 +60,7 @@ export function TimechartHeader({ delay="long" > - {reformatDate(datemath.parse(startTime ?? DEFAULT_DATETIME_STRING)) + - ' - ' + - reformatDate(datemath.parse(endTime ?? DEFAULT_DATETIME_STRING))} + {reformatDate(startTime) + ' - ' + reformatDate(endTime)} From c3c790fe49ed95c4712fe7a0f584bd3a61439e05 Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Fri, 1 Sep 2023 10:38:56 -0700 Subject: [PATCH 22/22] modify line to use lodash array sum Signed-off-by: Paul Sebastian --- public/components/event_analytics/explorer/explorer.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 00312438b8..db7e543b03 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -31,6 +31,7 @@ import React, { useState, } from 'react'; import { batch, useDispatch, useSelector } from 'react-redux'; +import _ from 'lodash'; import { LogExplorerRouterContext } from '..'; import { CREATE_TAB_PARAM, @@ -525,13 +526,7 @@ export const Explorer = ({ {countDistribution?.data && !isLiveTailOnRef.current && ( <> { - return sum + n; - }, - 0 - )} + hits={_.sum(countDistribution.data['count()'])} showResetButton={false} onResetQuery={() => {}} />