From 8d44444c4d19ff12bebf96ce5292d9983a2854a0 Mon Sep 17 00:00:00 2001 From: Toba Ojo Date: Fri, 9 Jan 2026 08:50:03 +0000 Subject: [PATCH] - Refactored Dashboard layout - enhanced PlatesProcessed component display --- src/features/dashboard/Dashboard.tsx | 2 +- .../SystemOverview/PlatesProcessed.tsx | 37 +++++++++++-------- .../SystemOverview/SystemOverview.tsx | 1 - .../SightingModalContent.tsx | 4 +- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/features/dashboard/Dashboard.tsx b/src/features/dashboard/Dashboard.tsx index 5e56d78..843a8dc 100644 --- a/src/features/dashboard/Dashboard.tsx +++ b/src/features/dashboard/Dashboard.tsx @@ -15,7 +15,7 @@ const Dashboard = () => { return (
-
+
diff --git a/src/features/dashboard/SystemOverview/PlatesProcessed.tsx b/src/features/dashboard/SystemOverview/PlatesProcessed.tsx index 83866c0..5d4b5d6 100644 --- a/src/features/dashboard/SystemOverview/PlatesProcessed.tsx +++ b/src/features/dashboard/SystemOverview/PlatesProcessed.tsx @@ -11,25 +11,30 @@ const PlatesProcessed = ({ platesProcessed }: PlatesProcessedProps) => { const toastReceived = platesProcessed?.totalReceived || 0; return ( -
-
-

Total Active

- {totalActive} -
-
-

Total Received

- {toastReceived} -
-
-

Total Pending

- {totalPending} + <> +
+

Reads

+
+
+

Total Active

+ {totalActive} +
+
+

Total Received

+ {toastReceived} +
+
+

Total Pending

+ {totalPending} +
-
-

Total Failed

- {totalFailed} +
+

Total Failed

+ {totalFailed} +
-
+ ); }; diff --git a/src/features/dashboard/SystemOverview/SystemOverview.tsx b/src/features/dashboard/SystemOverview/SystemOverview.tsx index 63d1e0f..907b000 100644 --- a/src/features/dashboard/SystemOverview/SystemOverview.tsx +++ b/src/features/dashboard/SystemOverview/SystemOverview.tsx @@ -28,7 +28,6 @@ const SystemOverview = () => {

Active Sightings

-

Reads

diff --git a/src/features/dashboard/components/sightingStack/sightingItemModal/SightingModalContent.tsx b/src/features/dashboard/components/sightingStack/sightingItemModal/SightingModalContent.tsx index a33013c..45acd45 100644 --- a/src/features/dashboard/components/sightingStack/sightingItemModal/SightingModalContent.tsx +++ b/src/features/dashboard/components/sightingStack/sightingItemModal/SightingModalContent.tsx @@ -51,9 +51,7 @@ const SightingModalContent = ({ sighting }: SightingModalContentProps) => {
- ) : ( -

No sighting data available.

- )} + ) : null}
); };