From 3239a8b89bec9d0adaac02ce39718c3bfcebd0a8 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 12 Dec 2025 19:13:00 -0800 Subject: [PATCH] ui: redesign room cards - sensor data prominent - Temp/humidity now large and center with colored icons - Size and capacity compressed to header subtitle - Batch count with status indicator dot - Cleaner visual hierarchy --- frontend/src/pages/RoomsPage.tsx | 66 +++++++++++++++++--------------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/frontend/src/pages/RoomsPage.tsx b/frontend/src/pages/RoomsPage.tsx index 80e0fbb..5eca520 100644 --- a/frontend/src/pages/RoomsPage.tsx +++ b/frontend/src/pages/RoomsPage.tsx @@ -88,48 +88,52 @@ export default function RoomsPage() { key={room.id} className="card card-interactive p-4 group" > + {/* Header: Name + Type Badge */}
-

- {room.name?.replace('[DEMO] ', '')} -

+
+

+ {room.name?.replace('[DEMO] ', '')} +

+ {room.sqft?.toLocaleString()} sqft • {room.capacity || '—'} cap +
{room.type}
-
-
- Size - - {room.sqft?.toLocaleString()} sqft - + {/* Primary: Sensor Data - Large & Prominent */} +
+
+
+ + {room.targetTemp || '—'} + °F +
+ Temp
-
- Capacity - - {room.capacity || '—'} plants - -
-
- Active Batches - - {room.batches?.length || 0} - +
+
+
+ + {room.targetHumidity || '—'} + % +
+ Humidity
- {room.targetTemp && ( -
-
- - {room.targetTemp}°F -
-
- - {room.targetHumidity}% -
+ {/* Secondary: Batch Count */} +
+
+
0 ? 'bg-success' : 'bg-subtle'}`} /> + + {room.batches?.length || 0} {room.batches?.length === 1 ? 'batch' : 'batches'} +
- )} + {room.batches?.length > 0 && ( + View → + )} +
))}