From 4f172cfc130bf53920ace4389b29c03a60ba7905 Mon Sep 17 00:00:00 2001 From: sumukhswamy Date: Tue, 5 Sep 2023 11:06:36 -0700 Subject: [PATCH] =?UTF-8?q?added=20code=20for=20the=20change=20of=20design?= =?UTF-8?q?=20of=20the=20sidebar,=20fixed=20overriding=20=E2=80=A6=20(#928?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added code for the change of design of the sidebar, fixed overriding spinner bug, changed font size Signed-off-by: sumukhswamy * addressed PR comments Signed-off-by: sumukhswamy * code for overriding pattern Signed-off-by: sumukhswamy * updated snapshots Signed-off-by: sumukhswamy --------- Signed-off-by: sumukhswamy --- .../event_analytics/explorer/explorer.tsx | 1 + .../__snapshots__/field.test.tsx.snap | 10 +- .../__snapshots__/sidebar.test.tsx.snap | 351 ++++++++++-------- .../explorer/sidebar/field.tsx | 8 +- .../explorer/sidebar/sidebar.scss | 4 + .../explorer/sidebar/sidebar.tsx | 17 +- 6 files changed, 210 insertions(+), 181 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 9ceaaa9f44..be6030da5b 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -642,6 +642,7 @@ export const Explorer = ({ isOverridingTimestamp, query, isLiveTailOnRef.current, + isOverridingPattern ]); const visualizations: IVisualizationContainerProps = useMemo(() => { diff --git a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap index 8ec133b20d..a94df6beba 100644 --- a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap +++ b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap @@ -21,7 +21,7 @@ exports[`Field component Renders a sidebar field 1`] = ` anchorPosition="rightUp" button={ @@ -87,7 +87,7 @@ exports[`Field component Renders a sidebar field 1`] = ` } isActive={false} onClick={[Function]} - size="m" + size="s" /> } closePopover={[Function]} @@ -105,7 +105,7 @@ exports[`Field component Renders a sidebar field 1`] = ` className="euiPopover__anchor" > @@ -171,10 +171,10 @@ exports[`Field component Renders a sidebar field 1`] = ` } isActive={false} onClick={[Function]} - size="m" + size="s" >