-
{batch.strain}
-
•
-
{batch.plantCount} plants
+ {group.items.map(batch => {
+ // Extract batch code from name (e.g., "B001" from "[DEMO] Gorilla Glue #4 - B001")
+ const batchCode = batch.name.match(/B\d{3}/)?.[0] || batch.id.slice(0, 6).toUpperCase();
+
+ return (
+
+ {/* Clickable Header */}
+
+
+
+ {/* Batch Code Badge + Strain Name */}
+
+
+ {batchCode}
+
+
+ {batch.strain}
+
+
+ {/* Plant count + Room */}
+
+ {batch.plantCount} plants
+ {batch.room && (
+ <>
+ •
+ {batch.room.name?.replace('[DEMO] ', '')}
+ >
+ )}
+
+
-
-
- {/* Progress & Days */}
-
-
-
-
-
+ {/* Progress & Days */}
+
+
+
+
+
- {/* Quick Actions */}
-
-
{batch.room?.name || 'No Room'}
-
-
setScoutingBatch(batch)}
- variant="accent"
- />
- setIpmBatch(batch)}
- variant="destructive"
- />
- setSelectedBatch(batch)}
- variant="success"
- />
+ {/* Quick Actions */}
+
+
+
setScoutingBatch(batch)}
+ variant="accent"
+ />
+ setIpmBatch(batch)}
+ variant="destructive"
+ />
+ setSelectedBatch(batch)}
+ variant="success"
+ />
+
-
- ))}
+ );
+ })}