From a2120170b6e70d53fc1c4f70a8494ead4df19158 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:49:41 -0800 Subject: [PATCH] fix: intentional walkthrough UI redesign - DailyWalkthroughPage: Centered, compact start screen with minimal chrome - Summary: Statistical overview with compact cards - ReservoirChecklist: Single column centered, tighter spacing - IrrigationChecklist: Compact status rows, inline toggles - PlantHealthChecklist: Segmented health control, minimal layout - Layout: Remove theme toggle from desktop sidebar (cleaner) --- frontend/src/components/Layout.tsx | 12 +- .../walkthrough/IrrigationChecklist.tsx | 274 +++++---------- .../walkthrough/PlantHealthChecklist.tsx | 327 +++++++----------- .../walkthrough/ReservoirChecklist.tsx | 237 +++++-------- frontend/src/pages/DailyWalkthroughPage.tsx | 278 +++++++-------- 5 files changed, 429 insertions(+), 699 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 6dc0fd1..8f40beb 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -122,16 +122,8 @@ export default function Layout() { {/* Footer */} -
- {/* Theme Toggle */} -
- -
- - {/* User Menu */} -
- -
+
+
diff --git a/frontend/src/components/walkthrough/IrrigationChecklist.tsx b/frontend/src/components/walkthrough/IrrigationChecklist.tsx index f5ec0a3..a8882f9 100644 --- a/frontend/src/components/walkthrough/IrrigationChecklist.tsx +++ b/frontend/src/components/walkthrough/IrrigationChecklist.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { ArrowLeft, ChevronRight, Camera, X, Check, AlertTriangle, Minus, Plus } from 'lucide-react'; +import { ArrowLeft, ChevronRight, Camera, X, Check, Minus, Plus } from 'lucide-react'; interface Zone { name: string; @@ -83,206 +83,120 @@ export default function IrrigationChecklist({ onComplete, onBack, isPhotoRequire }; return ( -
-
+
+
{/* Header */} -
-
- -
-

Irrigation System

-

- Zone {currentZoneIndex + 1} of {zones.length} -

-
+
+ +
+

Zone {currentZoneIndex + 1}/{zones.length}

+

{currentZone.name}

+
- {/* Progress Bar */} -
+ {/* Progress */} +
+ {zones.map((_, i) => (
+ ))} +
+ + {/* Drippers Counter */} +
+
+ Drippers + {drippersFailed > 0 && ( + {drippersFailed} failed + )} +
+
+ +
+
{drippersWorking}
+
of {currentZone.defaultDrippers}
+
+ +
+
+ + {/* Status Toggles - compact */} +
+ + + +
+ + {/* Issues input - only when problems */} + {!allGood && ( +
+ setIssues(e.target.value)} + placeholder="Describe issues..." + className="input w-full text-sm" />
-
+ )} - {/* Main Content - Two Column on Desktop */} -
- {/* Left Column - Drippers & Status */} -
- {/* Zone Info Card */} -
-
-
🚿
-

{currentZone.name}

-

{currentZone.defaultDrippers} drippers total

+ {/* Photo */} + {(isPhotoRequired || !allGood) && ( +
+ { if (e.target.files?.[0]) setPhoto(URL.createObjectURL(e.target.files[0])); }} /> + {photo ? ( +
+ Preview +
- - {/* Status Badge */} -
- {allGood ? : } - {allGood ? 'All Systems Operational' : 'Issues Detected'} -
-
- - {/* Drippers Counter */} -
- -
- -
-
{drippersWorking}
- {drippersFailed > 0 && ( -
{drippersFailed} failed
- )} -
- -
-
-
- - {/* Right Column - System Checks */} -
- {/* System Status Toggles */} -
- -
- - - -
-
- - {/* Issues / Notes */} - {!allGood && ( -
- -