From d5cc2239ed2ddf24d77980ec489c4f1427f7dcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Fri, 3 May 2024 13:06:36 +0200 Subject: [PATCH] update real time dashboard a bit --- .../overview/overview-live-histogram.tsx | 15 ++++----------- .../components/overview/overview-metrics.tsx | 6 +++--- .../components/report/chart/MetricCard.tsx | 19 +++++++++---------- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/apps/dashboard/src/components/overview/overview-live-histogram.tsx b/apps/dashboard/src/components/overview/overview-live-histogram.tsx index 0ab74ac8..9f5db228 100644 --- a/apps/dashboard/src/components/overview/overview-live-histogram.tsx +++ b/apps/dashboard/src/components/overview/overview-live-histogram.tsx @@ -135,18 +135,11 @@ interface WrapperProps { function Wrapper({ open, children, count }: WrapperProps) { return ( -
-
-
Last 30 minutes
-
- {count} -
+
+
+ {count} unique vistors last 30 minutes
-
-
- NOW -
- {/*
*/} +
{children}
diff --git a/apps/dashboard/src/components/overview/overview-metrics.tsx b/apps/dashboard/src/components/overview/overview-metrics.tsx index 1bff6442..9a8dc1a7 100644 --- a/apps/dashboard/src/components/overview/overview-metrics.tsx +++ b/apps/dashboard/src/components/overview/overview-metrics.tsx @@ -192,13 +192,13 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) { return (
-
+
{reports.map((report, index) => (
);