ca-grow-ops-manager/docs/PHASE-3-PLAN.md
fullsizemalt 32fd739ccf
Some checks failed
Deploy to Production / deploy (push) Failing after 0s
Test / backend-test (push) Failing after 0s
Test / frontend-test (push) Failing after 0s
feat: Complete Phases 8-13 implementation
Phase 8: Visitor Management
- Visitor/VisitorLog/AccessZone models
- Check-in/out with badge generation
- Zone occupancy tracking
- Kiosk and management pages

Phase 9: Messaging & Communication
- Announcements with priority levels
- Acknowledgement tracking
- Shift notes for team handoffs
- AnnouncementBanner component

Phase 10: Compliance & Audit Trail
- Immutable AuditLog model
- Document versioning and approval workflow
- Acknowledgement tracking for SOPs
- CSV export for audit logs

Phase 11: Accessibility & i18n
- WCAG 2.1 AA compliance utilities
- react-i18next with EN/ES translations
- User preferences context (theme, font size, etc)
- High contrast and reduced motion support

Phase 12: Hardware Integration
- QR code generation for batches/plants/visitors
- Printable label system
- Visitor badge printing

Phase 13: Advanced Features
- Environmental monitoring (sensors, readings, alerts)
- Financial tracking (transactions, P&L reports)
- AI/ML insights (yield predictions, anomaly detection)
2025-12-11 00:26:25 -08:00

46 lines
1.5 KiB
Markdown

# Phase 3: Batch Lifecycle & Room Management - Implementation Plan
## Goal
Implement the core "Grow" tracking logic: managing Batches through their lifecycle (Clone -> Harvest) and tracking Room environments/capacities, as defined in `specs/batches-and-rooms.md`.
## 🏃 Sprint 1: Schema & Core Logic
**Objective**: specific data modeling for Batches and Rooms.
- **Database**:
- Update `Batch` to include `BatchStage`, `BatchSource`, `metrcTags`.
- Update `Room` to include `RoomStatus`, `capacity`, `targetTemp`, `targetHumidity`, `targetVPD`.
- Create `WeightLog`, `BatchNote`, `BatchPhoto` models.
- **Backend**:
- Refactor `BatchesController` to support creating batches with sources and initial stages.
- Add endpoints for `Room` environmental targets.
## 🏃 Sprint 2: Lifecycle Transitions
**Objective**: UI/UX for moving plants through the facility.
- **Frontend**:
- **Batch Dashboard**: Kanban or List view showing batches by Stage.
- **Transition Modal**: "Move to Flower", "Move to Room X".
- **Room Detail**: Show capacity usage vs total capacity.
## 🏃 Sprint 3: Harvest & Yields
**Objective**: Logging results.
- **Frontend**:
- **Harvest Mode**: Mobile-optimized form for logging Wet Weights.
- **Timeline**: Visual history of the batch.
## 🏃 Sprint 4: METRC Prep
- **Objective**: Compliance readiness.
- **UI**: Fields for METRC Tag entry (scanning/typing) mapped to Internal Batch IDs.
---
## Technical Dependencies
- `schema.prisma` updates.
- `BatchesController` expansion.