ae61fa6382
feat(07-02): refactor config_loader.py for YAML and D-06 load order
...
- Replace dotenv with PyYAML
- Implement D-06 load order: env vars > YAML > defaults
- Add validation and logging for config
- Remove inventory.env references
- Update requirements.txt
2026-04-23 12:45:26 +03:00
ce9fd32f68
fix(6): update openpyxl version constraint
...
- Change openpyxl>=3.10.0 to openpyxl>=3.1.0
- Version 3.10.0 doesn't exist in PyPI
- 3.1.5 is the latest stable version and compatible
2026-04-22 18:57:21 +03:00
798cf4bfd5
feat(5-03-06): add openpyxl to backend dependencies for Excel export support
2026-04-22 17:43:21 +03:00
2ecaa6b2e8
feat(4.1-01): create spare-parts classification whitelist module with fuzzy matching
2026-04-22 16:34:10 +03:00
3aafacab12
feat(phase1): implement OpenCV image processing pipeline
...
- Create ImageProcessor service with EXIF orientation detection
- Implement smart cropping via OpenCV contour detection (10% padding)
- Add text orientation detection using Hough line transform
- Resize and compress images to 1200px with 85% JPEG quality
- Generate 200px square thumbnails with center crop
- Fallback to Pillow if OpenCV fails
- Comprehensive test suite: 28 tests all passing
- File size validation (reject >10MB)
- Graceful error handling for corrupted/invalid images
- Update requirements.txt with opencv-python, piexif, python-magic
2026-04-20 22:17:11 +03:00
be83262644
test: create pytest conftest with shared fixtures for backend tests
2026-04-18 16:48:30 +00:00
db918a86ab
feat(admin): finalizing modular refactoring with testing suite and UI polish
2026-04-15 16:41:20 +03:00
Daniel Bedeleanu
f3d861b1a2
Build [v1.4.0] - Audit Dashboard & LDAP Restoration
2026-04-12 09:39:17 +03:00
Daniel Bedeleanu
9b6adad618
feat: implementare JWT Bearer authentication pe toți routers [C-01]
...
Implementare completă a autentificării Bearer token:
- Creiez backend/auth.py: funcții JWT (create_access_token, get_current_user, get_current_admin)
- Modific /users/login: returnează TokenResponse cu JWT token și expirare 8h
- Adaug Depends(get_current_user) pe toate endpoint-urile API
- [M-02] user_id extras din JWT token, nu din request body
- [L-01] Token cu exp claim pentru sesiuni frontend
Acces endpoints-uri:
- GET/POST /users/: authenticated users
- POST /users/: admin only
- PUT /users/{id}, DELETE /users/{id}, /ldap-config, /test-ldap: admin only
- Toți routers (items, operations, categories): authenticated users minimum
Modificări dependențe:
- Adaug: python-jose[cryptography]>=3.3.0, slowapi>=0.1.9 (pentru H-02 rate limiting)
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com >
2026-04-11 13:38:24 +03:00
Daniel Bedeleanu
8a3783c7e9
Infrastructure: Implement master/dev/vX branching, save git path, and fix username casing
2026-04-10 21:51:22 +03:00
Daniel Bedeleanu
46bd6ae733
feat: backend foundation setup with SQLite and FastAPI
2026-04-10 13:44:21 +03:00