From 5254cd76a161ae1835399d1aac62e385b056f3b7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Oct 2023 22:20:16 +0000 Subject: [PATCH] disabling inspect and default pattern/timestamp buttons when using async data sources (#1205) * disable inspect and default pattern/timestamp buttons when using async data source Signed-off-by: Paul Sebastian * modify to work with app analytics Signed-off-by: Paul Sebastian * fixed tests stores Signed-off-by: Paul Sebastian --------- Signed-off-by: Paul Sebastian (cherry picked from commit 6c0cb3f577cd48dc3445380c2209d7ac809b6551) Signed-off-by: github-actions[bot] --- .../__snapshots__/field.test.tsx.snap | 548 +++++++++--------- .../__snapshots__/sidebar.test.tsx.snap | 238 +++++--- .../explorer/sidebar/__tests__/field.test.tsx | 37 +- .../sidebar/__tests__/sidebar.test.tsx | 8 +- .../explorer/sidebar/field.tsx | 12 + .../explorer/sidebar/sidebar.tsx | 4 + 6 files changed, 492 insertions(+), 355 deletions(-) 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 0b906bf4e0..7f7e730ccb 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 @@ -1,346 +1,362 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Field component Renders a sidebar field 1`] = ` - - -
- -
- - - - - - - - - - - -
-
- -
+ + + + + + +
+
+ - -
- agent -
-
-
- - - + agent + + + + + - -
- - - -
-
-
-
- - - - -
+ + + + + +
+
+ + + - + + +
- - - } - closePopover={[Function]} - display="block" - hasArrow={true} - isOpen={false} - onBlur={[Function]} - onFocus={[Function]} - ownFocus={true} - panelClassName="explorerSidebarItem__fieldPopoverPanel" - panelPaddingSize="m" + -
-
+ + } + closePopover={[Function]} + display="block" + hasArrow={true} + isOpen={false} + onBlur={[Function]} + onFocus={[Function]} + ownFocus={true} + panelClassName="explorerSidebarItem__fieldPopoverPanel" + panelPaddingSize="m" + > +
+
- - + > + + + + + +
-
- - - -
- - -
+ + +
+
+ - - - - - - - -
-
- -
-
+ > + + + + + + + + + + + + + `; diff --git a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap index fe7ab15c31..28c6cd8128 100644 --- a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap +++ b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap @@ -701,6 +701,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` "unselectedFields": Array [], } } + tabId="DEFAULT_INDEX_PATTERNS" > @@ -1309,13 +1312,14 @@ exports[`Siderbar component Renders sidebar component 1`] = ` aria-label="inspect" className="dscSidebarField__actionButton" iconType="inspect" + isDisabled={true} onClick={[Function]} size="xs" >