From b40eac587d0c7a44c0bd0664f587096180e404f1 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 164f94b0e..aed5df4c4 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -645,6 +645,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 8ec133b20..a94df6beb 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" >