Skip to content

v0.5.0

Choose a tag to compare

@spacecodee spacecodee released this 04 Dec 16:45
· 41 commits to main since this release

[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 in AiService for fast code generation
    • New addProductWithRetry() method in InventoryService with 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

Changed

  • Enhanced InventoryService:

    • Injected AiService dependency for code regeneration capabilities
    • Refactored addProduct() to include duplicate field validation
    • Added private checkDuplicateFields() method for validation logic
  • Updated UploadComponent:

    • Changed from addProduct() to addProductWithRetry() for automatic retry capability
    • Improved error handling to display specific duplicate field information to users
    • Better error messages from validation errors

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