|
|
|
@@ -1,41 +1,45 @@
|
|
|
|
# CURRENT AI WORKING SESSION — HANDOVER
|
|
|
|
# CURRENT AI WORKING SESSION — HANDOVER
|
|
|
|
|
|
|
|
|
|
|
|
**Active AI:** Gemini (Antigravity)
|
|
|
|
**Active AI:** Gemini (Antigravity)
|
|
|
|
**Last Updated:** 2026-04-13
|
|
|
|
**Last Updated:** 2026-04-14
|
|
|
|
**Current Version:** v1.9.18 (CORS Sync)
|
|
|
|
**Current Version:** v1.9.19 (MobilePolish)
|
|
|
|
**Branch:** dev
|
|
|
|
**Branch:** dev
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## STATUS: 🟢 STABLE — GENERIC CORS & CONFIG CENTRALIZATION COMPLETE
|
|
|
|
## STATUS: 🟢 STABLE — MOBILE UX & BOX MANAGER REFINEMENT COMPLETE
|
|
|
|
|
|
|
|
|
|
|
|
**CRITICAL FOR NEXT AI:** The CORS system has been upgraded to support `EXTRA_ALLOWED_ORIGINS` in `inventory.env`. The backend automatically expands these into full URLs (http/https across all ports).
|
|
|
|
**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.
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## WHAT WAS DONE THIS SESSION
|
|
|
|
## WHAT WAS DONE THIS SESSION
|
|
|
|
|
|
|
|
|
|
|
|
### 1. Generic CORS (External Access)
|
|
|
|
### 1. Dashboard UX Refinement
|
|
|
|
- **Variable**: Introduced `EXTRA_ALLOWED_ORIGINS` in `inventory.env`.
|
|
|
|
- **Grid Layout**: Transformed the vertical stack button list into a 2-column "Quick Actions" grid with modern card styling.
|
|
|
|
- **Backend Expansion**: Updated `backend/main.py` to automatically generate allowed origins (plain/SSL) for any IP or FQDN provided in this comma-separated list.
|
|
|
|
- **Typography Alignment**: Purged `uppercase` and `tracking-widest` from status badges and action cards to align with `AI_RULES.md`.
|
|
|
|
- **Tailscale Ready**: Pre-configured with `100.78.182.27` as requested by the user.
|
|
|
|
- **Mode Switcher**: Verified Title Case compliance.
|
|
|
|
|
|
|
|
|
|
|
|
### 2. Configuration Centralization
|
|
|
|
### 2. Box Manager Enhancements
|
|
|
|
- **inventory.env Updates**: Added placeholders for `GEMINI_API_KEY` and security tokens to encourage usage of a single configuration file for both local and Docker deployments.
|
|
|
|
- **Global Shortcut**: Integrated a small `Package` icon in the header next to the Sync button.
|
|
|
|
- **Port Consistency**: Cleaned up `config/backend.env.example` to reflect the actual ports used (8916-8919).
|
|
|
|
- **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.
|
|
|
|
|
|
|
|
|
|
|
|
### 3. Startup & Discovery
|
|
|
|
### 3. Documentation & RELEASE
|
|
|
|
- **Dynamic Access Banner**: Enhanced `start_server.sh` to detect `EXTRA_ALLOWED_ORIGINS` and display the corresponding Tailscale/VPN URLs at startup.
|
|
|
|
- **User Guide**: Updated `USER_GUIDE.md` with instructions for the new Search and Header shortcut.
|
|
|
|
|
|
|
|
- **Version Bump**: Increment to `v1.9.19`.
|
|
|
|
### 4. Verification
|
|
|
|
- **Deployment**: Generated production bundle `aInventory-PROD-v1.9.19.zip`.
|
|
|
|
- **Test Script**: Verified the CORS expansion logic with `scratch/verify_cors.py` (deleted after use).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## WHAT THE NEXT AI MUST DO
|
|
|
|
## WHAT THE NEXT AI MUST DO
|
|
|
|
|
|
|
|
|
|
|
|
1. **Docker Sync**: If the user experiences issues with the API key in Docker, suggest rebuilding the image or ensuring `inventory.env` is correctly mounted.
|
|
|
|
1. **Phase 8: Database Encryption**: As per `PLAN.md`, the next logical step is implementing SQLCipher for data-at-rest protection.
|
|
|
|
2. **Reverse Proxy**: If a more complex FQDN setup is needed, consider updating `config/Caddyfile` to handle wildcard subdomains if `EXTRA_ALLOWED_ORIGINS` list becomes too long.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
@@ -43,16 +47,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
**Active database:** `<project_root>/data/inventory.db`
|
|
|
|
**Active database:** `<project_root>/data/inventory.db`
|
|
|
|
**LDAP config:** `config/ldap_config.json`
|
|
|
|
**LDAP config:** `config/ldap_config.json`
|
|
|
|
**Network config:** `inventory.env` (Now the Primary SSOT for networking)
|
|
|
|
**Network config:** `inventory.env` (SSOT)
|
|
|
|
**Proxy config:** `config/Caddyfile`
|
|
|
|
**Production Bundle:** `aInventory-PROD-v1.9.19.zip`
|
|
|
|
|
|
|
|
|
|
|
|
**How to start:**
|
|
|
|
**How to start:**
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
./start_server.sh
|
|
|
|
./start_server.sh
|
|
|
|
```
|
|
|
|
```
|
|
|
|
- Local URL: `https://localhost:8919`
|
|
|
|
|
|
|
|
- LAN URL: `https://192.168.84.113:8919`
|
|
|
|
|
|
|
|
- Tailscale URL: `https://100.78.182.27:8919` (Now allowed in CORS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
✓ Done.
|
|
|
|
✓ Done.
|
|
|
|
|