From fc85856f83a27e5791438d820b7d21627b397f4d Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:12:42 -0700 Subject: [PATCH] [Feature ] Observability dashboards UI update (#2090) (#2098) * UI update to obs dashboard * update snapshots from osd * update snapshot --------- (cherry picked from commit 59100ac091bbab3133101f582dd1929ab3b472d7) Signed-off-by: Adam Tackett Signed-off-by: Adam Tackett <105462877+TackAdam@users.noreply.github.com> Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Adam Tackett --- .../custom_panel_table.test.tsx.snap | 386 +++++++++--------- .../custom_panels/custom_panel_table.tsx | 40 +- 2 files changed, 226 insertions(+), 200 deletions(-) diff --git a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap index f85b5e67f5..b57d8017fe 100644 --- a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap +++ b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap @@ -87,48 +87,6 @@ exports[`Panels Table Component render dashboard table container with panels 1`]
-
-
-
- -
-
-
@@ -141,6 +99,20 @@ exports[`Panels Table Component render dashboard table container with panels 1`] + @@ -156,39 +128,84 @@ exports[`Panels Table Component render dashboard table container with panels 1`] class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginMedium" />
-
- +
- - + + +
+
+
+
+
+
+ +
@@ -249,7 +266,7 @@ exports[`Panels Table Component render dashboard table container with panels 1`] > -
-
-
- -
-
-
@@ -982,6 +956,20 @@ exports[`Panels Table Component renders empty dashboard table container 1`] = ` + @@ -1044,6 +1032,20 @@ exports[`Panels Table Component renders empty dashboard table container 1`] = ` + @@ -1166,48 +1168,6 @@ exports[`Panels Table Component renders empty panel table container2 1`] = `
-
-
-
- -
-
-
@@ -1220,6 +1180,20 @@ exports[`Panels Table Component renders empty panel table container2 1`] = ` + @@ -1235,39 +1209,85 @@ exports[`Panels Table Component renders empty panel table container2 1`] = ` class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginMedium" />
-
- +
- - + + +
+
+
+
+
+
+ +
diff --git a/public/components/custom_panels/custom_panel_table.tsx b/public/components/custom_panels/custom_panel_table.tsx index 8de410e389..4ff17fa8e9 100644 --- a/public/components/custom_panels/custom_panel_table.tsx +++ b/public/components/custom_panels/custom_panel_table.tsx @@ -364,21 +364,13 @@ export const CustomPanelTable = ({ - - setIsActionsPopoverOpen(false)} - > - - - Create Dashboard @@ -389,13 +381,25 @@ export const CustomPanelTable = ({ {customPanels.length > 0 ? ( <> - setSearchQuery(e.target.value)} - /> + + setSearchQuery(e.target.value)} + /> + + setIsActionsPopoverOpen(false)} + > + + + + Create Dashboard