Commit graph

286 commits

Author SHA1 Message Date
fullsizemalt
6a398a2016 fix: comprehensive UX improvements for 3D viewer
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Fix breadcrumb overflow with truncation and smaller text
- Fix Room Focus camera positioning (proper isometric angle)
- Make beacon more visible (taller, additive blending, pulsing)
- Add PlantLibrary browser (browse by room/strain/stage)
- Enable plant discovery without knowing search terms
2025-12-19 10:25:17 -08:00
fullsizemalt
5f65997412 fix: include breadcrumb data when selecting plants via search
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Add sectionCode to PlantSearch SearchResult
- handleSearchSelect now passes room/section to selectedPlant.breadcrumb
- This makes breadcrumb visible in plant info panel
2025-12-19 10:04:56 -08:00
fullsizemalt
3d57fc96a3 feat: wire up breadcrumb click navigation
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Click Room → zooms camera to that room
- Click Floor/Building/Facility → returns to isometric overview
- Completes Phase 3 hierarchy navigation spec
2025-12-19 09:52:02 -08:00
fullsizemalt
940c1d9b79 fix: refactor PlantSearch to use useState+useEffect for better reactivity
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Changed searchIndex from useMemo to useState
- Added useEffect to rebuild index when floorData changes
- Added debug output showing index size in 'no results' message
- Should fix search returning empty results
2025-12-19 04:21:22 -08:00
fullsizemalt
dce1e66a65 fix: add debug logging to PlantSearch and improve useMemo deps
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-19 04:17:44 -08:00
fullsizemalt
cfaf5ebe2e feat: add full hierarchy context for breadcrumb navigation
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Pass facility/building/floor/room context through component tree
- HierarchyContext interface in SmartRack
- Breadcrumb now includes full path: Facility → Building → Floor → Room → Section → Tier
2025-12-18 20:26:12 -08:00
fullsizemalt
ddaf67ab1e fix: calculate room bounds from section positions for proper stacking
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- RoomObject now calculates actual bounds from section positions
- FacilityScene centers content based on actual section bounds
- SmartRack positions plants proportionally within sections
- Fixes plants rendering outside room boxes
2025-12-18 19:57:25 -08:00
fullsizemalt
9194335dd7 fix: TypeScript type error in HierarchyBreadcrumb filter
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 19:47:58 -08:00
fullsizemalt
eaa32c05fe feat: add hierarchy breadcrumb and improve plant positioning
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Create HierarchyBreadcrumb component for navigation
- Fix SmartRack plant positioning within section bounds
- Add breadcrumb data to PlantPosition type
- Display breadcrumb path in plant selection panel
- Pass roomName through component hierarchy
2025-12-18 19:45:57 -08:00
fullsizemalt
debc5d9447 fix: restore missing Lucide icon imports
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 19:32:31 -08:00
fullsizemalt
dc0b357638 feat: add camera presets (Overhead/Isometric/Room Focus)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Create CameraPresets.tsx with preset views and UI selector
- Replace free camera controls with preset-based system
- Add smooth animated transitions between camera positions
- Update Facility3DViewerPage with preset selector buttons
- Remove unused WASD keyboard controls
2025-12-18 19:30:32 -08:00
fullsizemalt
d56b7f0b11 fix: 3D viewer position scaling and stage coloring
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Add SCALE constant (0.1) to convert pixel coords to world units
- Fix stage coloring: use FLOWERING/DRYING/CURING instead of FLOWER/DRY/CURE
- Apply scaling to FacilityScene, RoomObject, SmartRack consistently
- Plants now render inside their proper rooms
2025-12-18 15:52:05 -08:00
fullsizemalt
71f1e23ff3 feat: add floor selector dropdown to 3D viewer (defaults to Upper Floor with 479 plants)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 12:14:26 -08:00
fullsizemalt
f91fbc2237 feat: add Reseed Demo Plants button to DevTools (realistic plant layout)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 12:00:22 -08:00
fullsizemalt
916aedb278 feat: add realistic plant placement script that keeps batches together by room/stage
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 11:49:23 -08:00
fullsizemalt
76c96728f3 fix: allow typing in search box without WASD moving camera
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 11:44:51 -08:00
fullsizemalt
8916acbe4b fix: correct 3D facility view navigation path (/facility-3d → /facility/3d)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 11:43:25 -08:00
fullsizemalt
4d900d7bec feat: add plant search, beacon highlights, and timeline slider (phases 2+3)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-18 00:19:21 -08:00
fullsizemalt
0758c4ffe6 refactor: decompose 3d viewer into clean components with industrial styling
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 23:38:52 -08:00
fullsizemalt
182e8c7d1a feat: restore WASD nav, improved plant geometry visibility
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 23:16:41 -08:00
fullsizemalt
fa67f2d271 feat: upgrade 3d styling with environment, shadows, and physical materials
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 23:11:12 -08:00
fullsizemalt
9ac0261a17 feat: improve 3d viewer legibility with rack visualization and larger labels
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 23:07:00 -08:00
fullsizemalt
43f8c5a105 fix: correct 3d facility viewer route path
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:59:27 -08:00
fullsizemalt
7f7cca415c fix: build errors in MetrcDashboardPage
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:54:18 -08:00
fullsizemalt
9f4c8d88aa feat: add 3d data visualization modes for plant health and environment
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:45:24 -08:00
fullsizemalt
36f3cbab5e feat: add deep linking to 3D map from metrc dashboard and show plant history
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:40:24 -08:00
fullsizemalt
d01ef2f30c fix: updated layout logic to organize legacy rooms and prevent overlaps
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:36:09 -08:00
fullsizemalt
073b1c7e16 chore: add plant population seed script
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 22:34:57 -08:00
fullsizemalt
bc78be380f chore: add commonjs seed fix
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 16:13:52 -08:00
fullsizemalt
1701a046f6 feat: 3d viewer improvements and realistic seed data
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 16:10:14 -08:00
fullsizemalt
7e8e070d11 chore(seed): align seed.ts with seed.js using correct domain and roles
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 09:08:55 -08:00
fullsizemalt
d8d9c407d8 fix(3d-viewer): add missing THREE import to fix build error
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 07:51:13 -08:00
fullsizemalt
1ebe7b4d34 feat(3d-viewer): upgrade visuals with significant plant scaling and improved controls based on user feedback
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 07:49:18 -08:00
fullsizemalt
9da01f6338 docs: accept facility-3d-viewer spec as complete after successful fix and verification
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 07:47:11 -08:00
fullsizemalt
04b926ea65 fix(seed): ensure metrc demo plants are created on Floor 1 and position status is updated to OCCUPIED
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 07:40:56 -08:00
fullsizemalt
d75be99748 fix(3d-viewer): downgrade three.js/fiber/drei dependencies to stable versions and restore full viewer code
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Fixes library crash on startup
- Restores interactive facility map
2025-12-17 07:28:51 -08:00
fullsizemalt
8bd23cdb6f debug(3d): replace viewer with minimal red cube scene to test library compatibility
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 07:24:22 -08:00
fullsizemalt
ea5468d808 docs: update SPEC-KIT-AUDIT to reflect 3D Viewer maintenance status
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 03:49:32 -08:00
fullsizemalt
7288c10a70 fix: disable 3D facility viewer temporarily due to library stability issues
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Replaces 3D viewer component with maintenance placeholder
- Preserves METRC integration and other active features
- Prevents application hard crash for users
2025-12-17 03:45:51 -08:00
fullsizemalt
e6d6fa6efc fix(3d-viewer): remove duplicate function definitions from file
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
Deploy to Production / deploy (push) Waiting to run
- Cleans up duplicate Facility3DViewerPage, FacilityScene, and PlantInstances functions
- Ensures single clean export default
2025-12-17 03:39:46 -08:00
fullsizemalt
699cb73621 fix(3d-viewer): add robust error handling and safety checks
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Limit excessive instances
- Add localized ErrorBoundary to prevent full app crash
- Add safe data access for optional plant properties
2025-12-17 03:37:15 -08:00
fullsizemalt
dd647538c5 feat: complete METRC integration and 3D Facility Viewer
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Added METRC status badge to BatchesPage
- Implemented real 3D Facility Viewer using React Three Fiber
- Visualizes plants, rooms, sections from live data
- Added seed-metrc-demo.js for populating realistic METRC plant data
2025-12-17 03:27:25 -08:00
fullsizemalt
d4e4f577fe docs: update SPEC-KIT-AUDIT with METRC dashboard completion 2025-12-17 03:10:37 -08:00
fullsizemalt
c049aac16e feat: add METRC Integration Dashboard
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Created metrcApi.ts client for all METRC endpoints
- Created MetrcDashboardPage with Overview, Plant Locations, Audit tabs
- Shows demo mode banner when METRC API not connected
- CSV export for manual METRC upload
- Plant location table with sync status
- Audit trail with location change history
- Added METRC to navigation under Compliance section
2025-12-17 03:06:57 -08:00
fullsizemalt
c6b60b2368 fix: getPendingAcks now extracts documents array from response
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
Backend returns { count, documents } but frontend expected array directly
2025-12-17 02:43:41 -08:00
fullsizemalt
b946955f49 fix: Documents page - remove category field references, align with backend schema
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Removed category field usage (doesn't exist in Prisma schema)
- Changed grouping from category to type
- Removed GUIDE type (not in backend)
- Updated filter dropdown with correct types
2025-12-17 02:36:22 -08:00
fullsizemalt
bd9b485d99 fix: update usePermissions role names to STAFF/GROWER
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 02:27:21 -08:00
fullsizemalt
4506e17e49 fix: update navigation role names to match Prisma schema (STAFF/GROWER vs WORKER/CULTIVATOR)
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 02:23:46 -08:00
fullsizemalt
ac50b7a9d9 fix: add TRAINING document type to fix Documents page crash
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
- Added TRAINING to DocumentType union in documentsApi.ts
- Added TRAINING to TYPE_CONFIG in DocumentsPage.tsx
- Updated ROADMAP.md version to 0.3.0
2025-12-17 02:19:08 -08:00
fullsizemalt
999ecc4492 fix: add --legacy-peer-deps to Dockerfile for React Three Fiber compatibility
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
2025-12-17 01:59:53 -08:00