v0.5.0
[0.5.0] - 2025-12-04
Added
-
Automatic duplicate validation for product codes: New validation system that checks for duplicates in:
- Código Interno (Internal Code)
- Modelo (Model)
- Código de Barras (Barcode)
- Prevents duplicate data entry before saving to database
- Detailed error messages indicating which field(s) contain duplicates
-
Automatic code regeneration on duplicates: Intelligent retry mechanism with automatic code regeneration:
- New
regenerateCodes()method inAiServicefor fast code generation - New
addProductWithRetry()method inInventoryServicewith configurable retry attempts (default: 3) - Automatically regenerates duplicate codes without user intervention
- Improves data integrity and reduces inventory validation errors from AI-generated duplicates
- Transparent user experience with automatic retries
- New
Changed
-
Enhanced
InventoryService:- Injected
AiServicedependency for code regeneration capabilities - Refactored
addProduct()to include duplicate field validation - Added private
checkDuplicateFields()method for validation logic
- Injected
-
Updated
UploadComponent:- Changed from
addProduct()toaddProductWithRetry()for automatic retry capability - Improved error handling to display specific duplicate field information to users
- Better error messages from validation errors
- Changed from
Fixed
- Resolved issue with AI-generated duplicate Código Interno, Modelo, and Código de Barras
- Improved data validation workflow to prevent invalid inventory state
- Enhanced error messages to help users understand exactly what field caused the conflict
Full Changelog: v0.4.4...v0.5.0