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
ea49cd6e4a
feat(phase1): add image storage utilities
...
- Create backend/services/image_storage.py with 4 core functions:
- sanitize_filename(): remove unsafe chars, limit to 255 chars, convert to lowercase
- get_unique_filename(): handle collisions with UUID suffix (format: {name}_{uuid8}_{variant}.jpg)
- ensure_image_directories(): create /images/ root and category subdirs on startup
- save_image(): save bytes to /images/{category}/{filename}, returns relative path
- Create comprehensive test suite (22 tests) covering all functionality
- Integrate ensure_image_directories() into FastAPI startup event
- Directory structure: /images/{category}/{filename}
- Collision handling: auto-suffix with UUID if filename exists
- All tests passing, pathlib.Path for safe operations
2026-04-20 21:57:26 +03:00
d9ead1aafd
fix: repair login endpoint registration in auth router
2026-04-19 17:20:11 +03:00
8fcd4150e5
refactor: split admin/config.py into ai_config and db_config
2026-04-19 17:10:56 +03:00
6dc300d339
refactor: split bulk-sync into backend/routers/sync.py
2026-04-19 12:37:09 +03:00
90e9a60640
refactor: split LDAP auth into backend/routers/auth.py
2026-04-19 12:35:40 +03:00
145fa21805
fix: update backend tests to match actual API - all 41 tests passing
2026-04-19 09:08:21 +03:00
0c70e216e1
fix: update test files to match actual backend schemas and endpoints
2026-04-19 08:43:56 +03:00
5895215209
test: add offline sync and UUID idempotency tests
2026-04-18 17:03:26 +00:00
436a3cdd97
test: add AI extraction pipeline tests (mocked)
2026-04-18 17:02:41 +00:00
2734a7f4d2
test: add category CRUD tests
2026-04-18 17:01:42 +00:00
a54f015b64
test: add stock operations and offline sync tests
2026-04-18 17:00:52 +00:00
0ca846af15
test: add item CRUD and validation tests
2026-04-18 16:59:56 +00:00
5a984d1e6b
test: add user authentication and CRUD tests
2026-04-18 16:57:18 +00:00
e652e4b7b3
test: improve conftest.py code quality - add type hints, docstrings, DRY refactoring
2026-04-18 16:54:53 +00:00
9b45ece68f
test: fix token fixtures to return JWT strings instead of TokenData objects
2026-04-18 16:50:54 +00: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
50ae3671c9
Build [v1.4.1] - Security hardening, PWA and UI refinements
2026-04-12 10:45:57 +03:00