From 6eea8f68fb43f5320cead651f4ac0ddb73645c46 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 10 Aug 2023 17:59:24 +0530 Subject: [PATCH] change(ui): health modal changes --- .../Header/HealthStatus/HealthStatus.tsx | 33 +++--- .../Header/HealthStatus/HealthWidget.tsx | 108 ++++++++++-------- frontend/app/svg/logo-gray.svg | 21 ++++ 3 files changed, 93 insertions(+), 69 deletions(-) create mode 100644 frontend/app/svg/logo-gray.svg diff --git a/frontend/app/components/Header/HealthStatus/HealthStatus.tsx b/frontend/app/components/Header/HealthStatus/HealthStatus.tsx index 05ae85cd5..7a5d07255 100644 --- a/frontend/app/components/Header/HealthStatus/HealthStatus.tsx +++ b/frontend/app/components/Header/HealthStatus/HealthStatus.tsx @@ -60,26 +60,21 @@ function HealthStatus() { const icon = !isError && healthResponse?.overallHealth ? 'pulse' : ('exclamation-circle-fill' as const); return ( <> - - }> + + } + open={true} + placement="topRight" + > - {/**/} - {/*
*/} - {/* */} - {/*
*/} - {/**/}
{showModal ? ( +
+
+ + +
{`v${window.env.VERSION}`}
+
+
+ + {title} +
+
+ Checked {lastAskedDiff}min ago.
getHealth()} > - - {title} +
-
- Last checked {lastAskedDiff}min ago. -
getHealth()} - > - +
+ {isError &&
Error getting service health status
} + +
+
Captured
+
+
+
{healthResponse.details?.numberOfSessionsCaptured.toLocaleString()}
+
Sessions
+
+
+
{healthResponse.details?.numberOfEventCaptured.toLocaleString()}
+
Events
- {isError &&
Error getting service health status
} - -
-
Captured
-
{healthResponse.details?.numberOfSessionsCaptured.toLocaleString()} Sessions
-
{healthResponse.details?.numberOfEventCaptured.toLocaleString()} Events
-
-
- {!isError && !healthOk ? ( - <> -
-
- Observed installation Issue with the following -
- {problematicServices.map((service) => ( - - setShowModal(true)} - healthOk={false} - name={service.name} - isSelectable - noBorder={problematicServices.length === 1} - /> - - ))} - - ) : null} -
+
+
+ {!isError && !healthOk ? ( + <> +
+
+ Observed installation Issue with the following +
+ {problematicServices.map((service) => ( + + setShowModal(true)} + healthOk={false} + name={service.name} + isSelectable + noBorder={problematicServices.length === 1} + /> + + ))} + + ) : null}
); diff --git a/frontend/app/svg/logo-gray.svg b/frontend/app/svg/logo-gray.svg new file mode 100644 index 000000000..d0ca00334 --- /dev/null +++ b/frontend/app/svg/logo-gray.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + +