Commit graph

976 commits

Author SHA1 Message Date
Jérémy Munsch
eda60066b1
Merge branch 'trunk' 2026-11-17 10:39:34 +01:00
Jérémy Munsch
276be44fa4
Merge branch 'develop' into trunk 2026-11-17 10:32:33 +01:00
Jérémy Munsch
3a1b34602c
fix(ImportEmployees): include matricule in error messages
fix(UpsertEmployeesFormFile): return failure on import errors

test(UpsertEmployeesFormFileTest): add tests for CSV import error handling

test(EmployeeCsvReaderServiceTest): validate error messages for invalid headers
2026-11-17 10:32:25 +01:00
Jérémy Munsch
d016a66601
Merge branch 'develop' into trunk 2026-11-17 10:26:20 +01:00
Jérémy Munsch
df885e3805
test(EmployeeCsvReaderService): add tests for CSV import with different encodings
Added tests to verify employee import functionality from comma-delimited Windows-1252 and UTF-16LE BOM tab-delimited CSV files.
2026-11-17 10:25:21 +01:00
Jérémy Munsch
178f2e0bda
Merge branch 'develop' into trunk 2026-11-17 09:50:22 +01:00
Jérémy Munsch
b6c5660d5e
feat(EmployeeCsvReaderService): refactor CSV reader creation
Updated the importEmployeesFromCsv method to use a dedicated createCsvReader method for better encoding handling and improved readability.
2026-11-17 09:49:03 +01:00
Jérémy
f7ce006c58 Merge branch 'refactor-in-order-to-reintroduce-import' into 'develop'
Add employee Import command Closes #128

See merge request ldc-web/projets/boutique-cnc-sable!89
2026-11-16 17:10:52 +01:00
Jérémy Munsch
aaf7d442b3
fix(employee): handle expected end date, upsert errors, and employee persistence 2026-11-15 16:44:54 +01:00
Jérémy Munsch
083357f746
test(EmployeeCsvImportLineService): fix end date format in test
Updated the expected end date format in the test to match the correct 'Y-m-d' format.
2026-11-14 08:47:52 +01:00
Jérémy Munsch
552d220b69
refactor(csv): replace Fusonic CSV reader with League CSV
Updated the CSV reading implementation to use the League CSV library, enhancing flexibility and maintainability.
Removed the EnhancedCsvReader class and adjusted the EmployeeCsvReaderService accordingly.
2026-11-14 08:25:50 +01:00
Jérémy Munsch
87136fcc42
refactor(test): update query path for naming conventions
Adjusted the path for query tests to reflect the new directory structure.
2026-11-10 19:48:29 +01:00
Jérémy Munsch
b2989b4967
refactor(employee): update import handling and output structure
- Replaced resource handling with SplFileObject for better readability.
- Introduced ImportEmployeesOutput class for structured results.
- Updated related services and tests to accommodate new structures.
2026-11-10 19:31:34 +01:00
Jérémy Munsch
454695928b
refactor: format PHPDoc for query implementations
Improves readability of PHPDoc annotations across multiple query classes.
2026-11-10 18:17:04 +01:00
Jérémy Munsch
74ab9b3041
refactor: reorganize imports across multiple controllers and jobs
This commit refactors the import statements in various controllers and jobs
to improve code organization and readability. Unused imports were removed,
and necessary imports were added to ensure proper functionality.
2026-11-10 18:15:32 +01:00
Jérémy Munsch
7a2004637d
feat(employee): implement employee import functionality
- Added EmployeesImportResults class to encapsulate import results.
- Created ImportEmployees action to handle CSV import and upsert employees.
- Introduced ImportEmployeesInput class for input validation.
- Developed EmployeeCsvReaderService for reading and parsing CSV files.
- Implemented EmployeeCsvImportLine to map CSV rows to employee data.
- Added EnhancedCsvReader for improved CSV handling.
- Updated composer.json to include fusonic/csv-reader dependency.
- Created tests for the new employee import functionality.
2026-11-10 18:08:41 +01:00
Jérémy Munsch
2dacdbabd6
refactor(service): reintroduce EmployeeUpsertService and related classes
- Moved employee upsert logic to a new service for better separation of concerns.
- Updated EmployeeSyncService to utilize the new EmployeeUpsertService.
- Added tests for EmployeeUpsertService to ensure correct functionality.
2026-11-10 15:14:24 +01:00
Jérémy Munsch
d0efb0f527
refactor: update namespaces for actions and queries
Refactored the codebase to change the namespaces of various actions and queries from `App\Actions` to `App\Cqs\Actions` and `App\Queries` to `App\Cqs\Queries`. This restructuring improves organization and clarity in the codebase.
2026-11-10 15:13:26 +01:00
Jérémy Munsch
9d2c5323ae
Merge branch 'trunk' 2026-11-02 16:44:33 +01:00
Jérémy Munsch
bd8e90b5e4
Merge branch 'develop' into trunk 2026-11-02 16:35:09 +01:00
Jérémy Munsch
ef674986c2
refactor(service): update PickupSchedulingService for timezone handling
- Added timezone handling for cutoff times in PickupSchedulingService.
- Updated MissingOrderReminderNotification to use Paris timezone.
- Enhanced tests to validate cutoff behavior based on timezone.
2026-11-02 16:35:02 +01:00
Jérémy Munsch
d5ed718874
Merge branch 'develop' into trunk 2026-11-02 15:36:37 +01:00
Jérémy Munsch
0d527654ae
chore(deps): remove overrides for js-yaml, glob, and minimatch 2026-11-02 15:36:27 +01:00
Jérémy Munsch
64d418dcc9
refactor(component): remove unused imports from ImageInputComponent
Cleaned up the code by removing unnecessary imports to improve readability.
2026-11-02 15:29:24 +01:00
Jérémy Munsch
946342d975
Merge branch 'develop' into trunk 2026-11-02 15:24:42 +01:00
Jérémy Munsch
081c7a3599
chore(deps): update eslint, sass-embedded, and vue-tsc
Updated eslint to version 10.14.0, sass-embedded to 1.107.1,
and vue-tsc to 3.3.14 for improved performance and compatibility.
2026-11-02 15:24:34 +01:00
Jérémy Munsch
e9454f9dbb
Merge branch 'develop' into trunk 2026-11-02 15:21:43 +01:00
Jérémy Munsch
78466ec482
style(tests): format code for consistency in OrderLineDtoTest 2026-11-02 15:21:39 +01:00
Jérémy Munsch
eca7a9adbf
Merge branch 'develop' into trunk 2026-11-02 15:19:07 +01:00
Jérémy Munsch
192e72f554
refactor(dto): enhance OrderLineDto with flattened product properties
- Added new properties for product details in OrderLineDto.
- Updated fromModel method to map product properties correctly.
- Adjusted toArray method to include new properties.
- Improved unit tests for OrderLineDto to validate new behavior.
2026-11-02 14:53:17 +01:00
Jérémy Munsch
327defbee0
Merge branch 'trunk' 2026-11-02 11:33:05 +01:00
Jérémy Munsch
dd4f4ce253
Merge branch 'develop' into trunk 2026-11-02 11:24:12 +01:00
Jérémy Munsch
fab265cd68
fix: Mauvais identifiant inco envoyé sur les commandes, on ne donnait pas le no_art a la place de l'auto increment 2026-11-02 11:22:59 +01:00
Jeremy Munsch
24c151cc99
Merge branch 'trunk' 2026-10-30 11:00:55 +01:00
Jérémy Munsch
e8a6ab07de
Merge branch 'develop' into trunk 2026-10-29 21:16:37 +01:00
Jérémy Munsch
cd7d5f5fe9
feat(orders): implement default sorting for order queries
Added default sorting by date in descending order for order queries.
Updated related views and tests to reflect this change.
2026-10-29 21:16:06 +01:00
Jérémy Munsch
0e05779f89
feat(sliders): enhance carousel controls and responsiveness
Added padding for carousel controls on larger screens and improved button styles for better visibility and interaction.
2026-10-29 20:59:30 +01:00
Jérémy Munsch
28d6200136
Merge branch 'develop' into trunk 2026-10-29 20:35:49 +01:00
Jérémy Munsch
c8f895c759
refactor: simplify use statements and type hints
- Removed fully qualified names for better readability.
- Streamlined code by using direct class references.
2026-10-29 20:35:35 +01:00
Jérémy Munsch
c40016bba1
feat(order): implement order placement and related DTOs
- Add methods to convert OrderLine and DeliveryAddress to DTOs.
- Introduce toPlacedEvent method in Order to generate domain event.
- Enhance OrderUnit with Regate code mapping.
- Implement tests for new functionality and ensure correctness.
2026-10-29 20:35:13 +01:00
Jérémy Munsch
71e0d65f31
refactor(OrderService): simplify order creation from basket
Updated the OrderService to utilize the new fromBasket method for creating orders, enhancing code clarity and maintainability. Removed the ProductAvailabilityService as its functionality is now integrated into the ProductRepository.
2026-10-29 20:21:32 +01:00
Jérémy Munsch
da0c3afc14
refactor(MoneyServiceProvider, ViewServiceProvider): streamline boot methods
Removed unnecessary conditionals and improved method calls for clarity.
2026-10-29 20:13:15 +01:00
Jérémy Munsch
e857a58d00
test(Product): add comprehensive tests for Product entity
- Implement tests for product publication status.
- Add tests for product orderability based on various conditions.
- Enhance pricing calculation tests for different discount scenarios.
- Remove outdated PricingServiceTest and refactor ProductAvailabilityServiceTest.
2026-10-29 19:48:38 +01:00
Jérémy Munsch
cfac370e2e
feat(discount): implement published discounts filtering logic
Added logic to filter published discounts, including those with null start or end dates.
2026-10-29 19:19:22 +01:00
Jérémy Munsch
08354b44b6
style(tests): format code for better readability
Improved code formatting in ChangeOrderBladeTest for consistency.
2026-10-29 19:13:31 +01:00
Jérémy Munsch
ed593c25b0
test(UpdateShopPickupExceptionsRequest): remove redundant message test and update error messages
Updated error messages for better clarity and removed unnecessary test for custom messages.
2026-10-29 19:12:21 +01:00
Jérémy Munsch
c52b13cc51
feat(order): implement soft delete handling in order changes
Added support for soft-deleted models in ChangeModelOrder and ChangeModelOrderPosition actions.
This allows for proper order adjustments even when models are soft-deleted.
2026-10-29 19:04:46 +01:00
Jérémy Munsch
7b910c5af6
refactor(UpdateShopPickupExceptionsRequest): remove unused messages method
Cleaned up the code by removing the messages method as it was not utilized.
2026-10-29 18:43:02 +01:00
Jérémy Munsch
961829a0c7
fix(pickup-exceptions): update noReplacement logic for checkbox state
Ensure noReplacement reflects checkbox status for accurate behavior.
2026-10-29 18:24:21 +01:00
Jérémy Munsch
36faed679e
fix(pickup-exceptions): correct spelling of 'Blocked week'
Updated the text from 'Bloqued week' to 'Blocked week' for consistency in error messages.
2026-10-29 18:23:36 +01:00