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}
-
-
-
-
-
+ )}
);
}