fix(frontend): Update LayoutCanvas and layoutApi types
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2026-01-01 16:39:49 -08:00
parent c962118ba6
commit 2acef3c63c
2 changed files with 2 additions and 1 deletions

View file

@ -250,7 +250,7 @@ export function LayoutCanvas() {
const position = targetSection.positions?.find(p => p.row === row && p.column === col); const position = targetSection.positions?.find(p => p.row === row && p.column === col);
if (position && (position.status === 'EMPTY' || position.status === 'RESERVED')) { if (position && (position.status === 'EMPTY' || position.status === 'RESERVED')) {
await layoutApi.placeBatchInPosition(position.id, batchId); await layoutApi.occupyPosition(position.id, { batchId });
addToast(`Placed ${batchName} at R${row}C${col}`, 'success'); addToast(`Placed ${batchName} at R${row}C${col}`, 'success');
} else if (position?.status === 'PLANTED') { } else if (position?.status === 'PLANTED') {
addToast('Slot already occupied', 'warning'); addToast('Slot already occupied', 'warning');

View file

@ -87,6 +87,7 @@ export interface Position3D {
status: string; status: string;
batchId: string | null; batchId: string | null;
batchName: string | null; batchName: string | null;
plantTypeId: string | null;
strain: string | null; strain: string | null;
stage: string | null; stage: string | null;
} | null; } | null;