Build [v.1.3.9]

This commit is contained in:
Daniel Bedeleanu
2026-04-12 07:29:58 +03:00
parent 38e9428109
commit 161a182281
13 changed files with 142 additions and 24 deletions

View File

@@ -1,21 +1,32 @@
# CURRENT AI WORKING SESSION — HANDOVER
**Active AI:** Gemini (Antigravity)
**Last Updated:** 2026-04-11
**Last Updated:** 2026-04-12
**Current Version:** v1.3.5 (pending bump to v1.3.6)
**Branch:** dev
---
## STATUS: 🟢 STABLE — READY FOR VERSION SAVE
## STATUS: 🟢 STABLE — FOLDER STRUCTURE SEPARATION COMPLETE
All UI/UX refinements from this session have been applied. The login loop (from previous Claude session) is confirmed fixed. The scanner has been fully redesigned. Documentation is up to date.
Runtime data (`data/`, `logs/`) is now properly excluded from Git with init-on-first-run support for both local/systemd and Docker deployment modes.
---
## WHAT WAS DONE THIS SESSION
### 1. Scanner UI Redesign (`frontend/components/Scanner.tsx`)
### Folder Structure Separation (data/logs init refactor)
- **`data/.gitkeep`** — Added to track the `data/` directory in Git without committing runtime data
- **`logs/.gitkeep`** — Added to track the `logs/` directory in Git without committing log files
- **`scripts/init_data.sh`** (NEW) — Shared first-run init script: creates `data/` + `logs/` dirs, copies `ldap_config.json.example``data/ldap_config.json` if missing
- **`backend/entrypoint.sh`** (NEW) — Docker entrypoint: runs `init_data.sh` then starts uvicorn via `exec`
- **`backend/Dockerfile`** — Changed `CMD``ENTRYPOINT`, added `COPY scripts/`, made scripts executable
- **`docker-compose.yml`** — Added `./scripts:/app/scripts:ro` volume to backend service
- **`start_server.sh`** — Added call to `scripts/init_data.sh` after env vars, before uvicorn
- **`.gitignore`** — Changed `data/``data/*` with `!/data/.gitkeep` exception; same for `logs/`
- **Git index cleaned** — `data/inventory.db` and `data/ldap_config.json` removed from tracking via `git rm --cached`
- **Layout**: Moved all controls OUT of the camera viewport overlay. Camera feed is now 100% unobstructed.
- **Automated OCR**: Removed manual "OCR SCAN" button. OCR now runs automatically on a 4-second cycle.
- **Visual Countdown**: Added a countdown display (4, 3, 2, 1, Scan) with a progress bar so the user can see the next scan timing.