Commit graph

117 commits

Author SHA1 Message Date
Jérémy Munsch
1894e45907
fix(stats): exclude technical PENDING and FAILED orders from active clients metric 2026-11-17 12:39:18 +01:00
Jérémy Munsch
d9edcd7f6b
test(uuid): migrate test suite to UuidHelper and add missing describe blocks 2026-11-17 12:15:39 +01:00
Jérémy Munsch
3b24436263
feat(stats,orders): track tunnel attempts in DB to preserve waiting stats 2026-11-16 20:19:31 +01:00
Jérémy Munsch
c58a2c8b23
feat(orders): add checkout lock, FAIL/PENDING isolation, and stale pending expiration 2026-11-16 20:05:35 +01:00
Jérémy Munsch
53f49fea9c
refactor(domain,infra): isolate PENDING/FAILED order states and add lockForUpdate 2026-11-16 19:57:06 +01:00
Jérémy Munsch
45fc35b1f7
fix(products): query published associated products in pivot order on FO product page 2026-11-16 18:34:07 +01:00
Jérémy Munsch
cdc04d0104
test(coverage): cover Arcadia jobs and employee service, add describe blocks (Lot 7C) 2026-11-16 17:01:12 +01:00
Jérémy Munsch
3aaec0a6db
test(coverage): cover post-commit Listeners and AppSessionService (Lot 7B) 2026-11-16 16:53:21 +01:00
Jérémy Munsch
241ad87a2e
test(coverage): cover remaining CQS Queries and FO product HTML rendering (Lot 7A) 2026-11-16 16:47:33 +01:00
Jérémy Munsch
14fd20c303
test(quality): resolve PHPStan level 10 errors in Feature tests and wrap long test lines 2026-11-16 16:29:17 +01:00
Jérémy Munsch
1b44f9d178
test(quality): resolve all PHPStan level 10 errors in Unit and Integration tests 2026-11-16 16:13:14 +01:00
Jérémy Munsch
a4f2343eb2
test(eloquent,container): use Model::query() and direct dependency instantiation 2026-11-16 15:54:41 +01:00
Jérémy Munsch
c9d53f43c0
test(clock): add global clock reset and freeze time across 22 test files 2026-11-16 15:49:48 +01:00
Jérémy Munsch
c2490e0339
test(phpstan): remove all 55 redundant RefreshDatabase uses() 2026-11-16 15:45:21 +01:00
Jérémy Munsch
c083d74032
test(phpstan): remove all 145 redundant Pest expectations 2026-11-16 15:43:10 +01:00
Jérémy Munsch
7ad5acebd3
test(requests): overhaul FO request tests and lock Architecture rules 2026-11-16 15:31:41 +01:00
Jérémy Munsch
1c304b78b2
test(decouple): remove expect(true)->toBeTrue() and move ProductPolicy INCO checks to WithApp 2026-11-16 15:12:42 +01:00
Jérémy Munsch
99a923a7df
test(tests): replace internal Laravel Session/Mail/DB mocks with real stores and Mail::fake (lot 4B) 2026-11-16 15:04:17 +01:00
Jérémy Munsch
8a6b1442e6
test(tests): remove Reflection attribute/constructor hacks and pass-through InitializeOrderTunnel (lot 4A) 2026-11-16 15:01:17 +01:00
Jérémy Munsch
cdb30e2f70
test(tests): add PSR-4 namespaces to Integration test files 2026-11-16 14:21:17 +01:00
Jérémy Munsch
a87e5a0c94
test(tests): add unit tests for Pagination value object 2026-11-16 14:19:02 +01:00
Jérémy Munsch
8b9eb59b50
test(tests): replace $this->fail with caught exception assertion in LaravelCacheLockTest 2026-11-16 13:11:20 +01:00
Jérémy Munsch
348119ec7c
test(tests): normalize Integration Cqs and Feature App directories (lot 3C) 2026-11-16 13:09:00 +01:00
Jérémy Munsch
3f4856efa2
test(tests): move Laravel-bound tests out of Unit and group Unit Cqs tests (lot 3B) 2026-11-16 13:02:15 +01:00
Jérémy Munsch
29b9a87d78
test(tests): update mock usage in DataTableServiceTest
Refactor mock creation to use \Mockery::mock for consistency.
2026-11-16 12:54:52 +01:00
Jérémy Munsch
7698821501
test(tests): add namespace declarations to test files 2026-11-16 12:54:16 +01:00
Jérémy Munsch
a2fd843398
test(tests): add unit tests for session-based basket repository
Added tests for the SessionBasketRepository to ensure correct behavior when finding, persisting, and deleting baskets in the session.
2026-11-16 12:53:27 +01:00
Jérémy Munsch
4c8280d932
test(tests): prune constructor-only DTO tests and consolidate contracts (lot 2C) 2026-11-16 12:50:19 +01:00
Jérémy Munsch
80d3478dbe
test(tests): merge unique assertions and remove strict duplicate test files (lot 2A) 2026-11-16 12:46:06 +01:00
Jérémy Munsch
3916771f69
test: update tests to remove schema creation and use factories
Refactor tests to eliminate schema creation in beforeEach hooks and utilize model factories for data setup.
2026-11-16 11:22:47 +01:00
Jérémy Munsch
317ca4cd03
fix(sync): move Arcadia API calls outside transactions, track per-site employee cursors, and release reminder claim on failure 2026-11-16 08:45:40 +01:00
Jérémy Munsch
1ae8f65d7c
fix(integrity): include trashed products in max order and purge CRM email cache on deletion 2026-11-16 03:41:39 +01:00
Jérémy Munsch
3d1c798c08
refactor(orders): split pending placement, non-transactional Regate SMTP export and final confirmation 2026-11-16 03:32:57 +01:00
Jérémy Munsch
3e4dfdad4e
feat(tunnel): detect basket price changes during order finalization 2026-11-16 03:10:25 +01:00
Jérémy Munsch
d46d5e7b23
fix(auth): prevent premature customer creation and enforce active employee registration 2026-11-16 02:35:42 +01:00
Jérémy Munsch
285f42c684
fix(shopper): evaluate employee calendar dates in Europe/Paris and document BO order cancel 2026-11-16 02:10:50 +01:00
Jérémy Munsch
92dd038cb9
fix(pickup): align scheduling on Europe/Paris cutoff and attach holidays on shop creation 2026-11-16 01:58:44 +01:00
Jérémy Munsch
abf3839f98
fix(dates): enforce UTC and calendar-date casts across models, requests and BO views 2026-11-16 01:58:43 +01:00
Jérémy Munsch
d0a49ec77c
fix(validation): use translation keys in Adult rule 2026-11-16 01:01:41 +01:00
Jérémy Munsch
0411e1d73b
refactor(datatable): require column listing resolver dependency in DataTableService 2026-11-16 01:01:33 +01:00
Jérémy Munsch
8029bcd959
test(actions): add missing integration tests for Products, Basket, CRM, and Orders 2026-11-15 22:11:27 +01:00
Jérémy Munsch
fdb7df5858
fix(auth): prevent CRM split-brain and add post-commit hooks in RegisterCustomer 2026-11-15 21:44:33 +01:00
Jérémy Munsch
3d4c4f74de
feat(jobs): add chunking and idempotent reminded_at tracking to SendReminderMail 2026-11-15 21:39:32 +01:00
Jérémy Munsch
86e7340c48
feat(products): add success and failure handling for product actions
- Implemented HandlesSuccess and HandlesFailure interfaces in CreateProduct and UpdateProduct actions.
- Added tracking of uploaded paths and cleanup on failure.
- Enhanced image storage handling to ensure proper cleanup of orphaned files.

feat(ranges): add success and failure handling for range actions

- Implemented HandlesSuccess and HandlesFailure interfaces in CreateRange and UpdateRange actions.
- Added tracking of uploaded paths and cleanup on failure.
- Enhanced image storage handling to ensure proper cleanup of orphaned files.

feat(slides): add success and failure handling for slide actions

- Implemented HandlesSuccess and HandlesFailure interfaces in CreateSlide and UpdateSlide actions.
- Added tracking of uploaded paths and cleanup on failure.
- Enhanced image storage handling to ensure proper cleanup of orphaned files.

chore: introduce TracksPendingStoragePaths trait

- Created a new trait to manage tracking of uploaded and obsolete storage paths.
- This will streamline the handling of file cleanup across various actions.

test: add tests for action failure handling and cleanup

- Added tests to verify that uploaded files are cleaned up on action failure.
- Ensured that previous files are preserved during rollback scenarios.
2026-11-15 20:31:37 +01:00
Jérémy Munsch
3f73535ce7
test(ResetCustomerPassword): update tests to check remember_token behavior
Ensure that the remember_token is retained for inactive shoppers during password reset tests.
2026-11-15 20:12:00 +01:00
Jérémy Munsch
6a599b9855
feat(ProductIncos): implement Associate and Sync actions with output handling
- Added AssociateProductIncoOutput and SyncProductIncoOutput classes to handle action results.
- Updated AssociateProductInco and SyncProductInco actions to return structured output instead of raw models.
- Enhanced error handling for API interactions in both actions.
- Refactored ProductIncosController to utilize new output structures for better response management.
- Introduced new enums for status handling in actions and queries.
- Added tests for new output handling and error scenarios in Associate and Sync actions.
2026-11-15 20:11:28 +01:00
Jérémy Munsch
faef51091e
feat(pickup-exceptions): implement upsert and query for public holidays
Added functionality to upsert pickup exceptions for public holidays
and query for auto-updated exceptions. This includes new classes
for handling input and service integration with the public holidays API.
2026-11-15 20:04:29 +01:00
Jérémy Munsch
47b0c16857
feat(auth): implement ResetCustomerPassword action and related classes
Adds functionality for resetting customer passwords, including input and output handling.
2026-11-15 19:57:38 +01:00
Jérémy Munsch
b62e15efc2
feat(product): add GetProductIncoForEditQuery and related classes
Implement GetProductIncoForEditQuery, its input and output classes to handle product INCO data retrieval.
Update ProductIncosController to utilize the new query for editing product INCOs.
Add tests for GetProductIncoForEditQuery to ensure correct behavior.
2026-11-15 19:47:32 +01:00
Jérémy Munsch
d430fa01d2
fix(product): adjust orderable end condition to include equality
Updated the condition for orderable end to include equality, ensuring products are excluded correctly when the current date matches the orderable end date.
2026-11-15 19:43:45 +01:00