This commit is contained in:
Daniel Bedeleanu
2026-04-14 22:54:19 +03:00
parent 1ea5e90bc4
commit 6c57b1b0c2
69 changed files with 1020 additions and 554 deletions

View File

@@ -2,53 +2,50 @@
**Active AI:** Gemini (Antigravity)
**Last Updated:** 2026-04-14
**Current Version:** v1.9.19 (MobilePolish)
**Branch:** dev
**Current Version:** v1.9.20 (AIFix)
**Branch:** manual-fix (Git Disrupted)
---
## STATUS: 🟢 STABLE — MOBILE UX & BOX MANAGER REFINEMENT COMPLETE
## STATUS: 🟢 STABLE — AI EXTRACTION FIXED & v1.9.20 RELEASED
**CRITICAL FOR NEXT AI:** The UI has been optimized for mobile ("Premium" density).
1. **Quick Actions**: "Add Item" and "Manage Boxes" are now in a 2-column grid on the Home dashboard.
2. **Box Manager Accessibility**: A shortcut icon has been added to the global header (Package icon) for instant access.
3. **Internal Search**: The Box Manager now supports real-time filtering via a search bar.
**CRITICAL FOR NEXT AI:** The backend-to-frontend AI data bridge is now robust. Versioning was performed manually due to local `xcode-select` permissions issues on the host.
1. **AI Discovery**: Fixed field mapping in `backend/ai_vision.py` (Item/PartNr -> name/part_number) and added support for Gemini's list-based responses.
2. **Frontend Resilience**: `AIOnboarding.tsx` now uses a hyper-robust extraction logic to handle various JSON structures.
3. **Emergency Release**: Created `aInventory-PROD-v1.9.20.zip` manually.
---
## WHAT WAS DONE THIS SESSION
### 1. Dashboard UX Refinement
- **Grid Layout**: Transformed the vertical stack button list into a 2-column "Quick Actions" grid with modern card styling.
- **Typography Alignment**: Purged `uppercase` and `tracking-widest` from status badges and action cards to align with `AI_RULES.md`.
- **Mode Switcher**: Verified Title Case compliance.
### 1. AI Discovery Stabilization
- **Backend Fix**: Corrected `extract_label_info` to handle `items` lists and map capitalized AI keys to model fields.
- **Frontend Hardening**: Updated `AIOnboarding.tsx` with deep-scan JSON parsing and string safety.
- **Verification**: Confirmed successful data flow via browser console logs.
### 2. Box Manager Enhancements
- **Global Shortcut**: Integrated a small `Package` icon in the header next to the Sync button.
- **Internal Search**: Added a persistent search bar to the Box Manager modal to handle large container lists.
- **Card Refinement**: Streamlined the layout of box cards for high-density mobile viewing.
### 2. Versioning & Deployment
- **Manual Bump**: Increment to `v1.9.20` (AIFix) in `VERSION.json`.
- **Git Workaround**: Documented local `xcode-select: Operation not permitted` blocker.
- **Production Bundle**: Generated `aInventory-PROD-v1.9.20.zip` using `export_prod.sh`.
### 3. Documentation & RELEASE
- **User Guide**: Updated `USER_GUIDE.md` with instructions for the new Search and Header shortcut.
- **Version Bump**: Increment to `v1.9.19`.
- **Deployment**: Generated production bundle `aInventory-PROD-v1.9.19.zip`.
### 3. UI/UX Stabilization
- **Box Manager**: Verified migration and shortcut accessibility in the header.
---
## WHAT THE NEXT AI MUST DO
1. **Phase 8: Database Encryption**: As per `PLAN.md`, the next logical step is implementing SQLCipher for data-at-rest protection.
2. **Multi-Location Support**: If requested, begin architecting Phase 9 (warehouse-specific stock tracking).
3. **Docker Validation**: Verify that the latest `inventory.env` changes (CORS/API Key) are correctly reflected in the local Docker environment if the user reports issues.
1. **Fix Git Path**: Address the `xcode-select` issue if possible, or continue manual versioning.
2. **Phase 8: Database Encryption**: Implement SQLCipher for local DB security.
3. **Live Camera Performance**: Monitor video stream performance on older mobile devices.
---
## SYSTEM STATE
**Active database:** `<project_root>/data/inventory.db`
**LDAP config:** `config/ldap_config.json`
**Network config:** `inventory.env` (SSOT)
**Production Bundle:** `aInventory-PROD-v1.9.19.zip`
**Current Version:** `v1.9.20`
**Production Bundle:** `aInventory-PROD-v1.9.20.zip`
**How to start:**
```bash