From d05fcf6b74801c21b34920cc56f794443f0ba875 Mon Sep 17 00:00:00 2001
From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com>
Date: Thu, 11 Dec 2025 11:33:39 -0800
Subject: [PATCH] fix: Update Quick Actions page with PageHeader and wizard
flow
---
frontend/src/pages/TouchPointPage.tsx | 125 ++++++++++++++------------
1 file changed, 69 insertions(+), 56 deletions(-)
diff --git a/frontend/src/pages/TouchPointPage.tsx b/frontend/src/pages/TouchPointPage.tsx
index c71b47f..c31038e 100644
--- a/frontend/src/pages/TouchPointPage.tsx
+++ b/frontend/src/pages/TouchPointPage.tsx
@@ -1,8 +1,9 @@
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { batchesApi, Batch } from '../lib/batchesApi';
-import { touchPointsApi, PlantTouchPoint, IPMSchedule } from '../lib/touchPointsApi';
-import { Loader2, Droplets, Utensils, Scissors, Dumbbell, Search, ShieldCheck, Shovel, Sprout } from 'lucide-react';
+import { touchPointsApi } from '../lib/touchPointsApi';
+import { Loader2, Droplets, Utensils, Scissors, Dumbbell, Search, ShieldCheck, Shovel, Sprout, Fingerprint } from 'lucide-react';
+import { PageHeader } from '../components/layout/PageHeader';
export default function TouchPointPage() {
const navigate = useNavigate();
@@ -57,77 +58,89 @@ export default function TouchPointPage() {
if (isLoading) return
;
- if (!selectedBatch) {
- return (
-
-
Select Batch
+ return (
+
+
+
+ {!selectedBatch ? (
+
Select Batch
{batches.map(batch => (
))}
+ {batches.length === 0 && (
+
+ No active batches found.
+
+ )}
-
- );
- }
+ ) : !actionType ? (
+
+
+
+
{selectedBatch.name?.replace('[DEMO] ', '')}
+
Select an action to record
+
- if (!actionType) {
- return (
-
-
-
-
{selectedBatch.name}
-
Record Interaction
+
+ {actions.map(action => (
+
+ ))}
+
+ ) : (
+
+
+
+
+ {actions.find(a => a.id === actionType)?.label}
+ for {selectedBatch.name?.replace('[DEMO] ', '')}
+
+
+
-
- );
- }
-
- return (
-
-
-
-
- {actions.find(a => a.id === actionType)?.label}
- for {selectedBatch.name}
-
-
-
-
-
+ )}
);
}