Commit graph

303 commits

Author SHA1 Message Date
Jérémy Munsch
75784ae719
refactor(uuid): migrate app, domain, infra, and factories to UuidHelper 2026-11-17 12:15:34 +01:00
Jérémy Munsch
758605be09
refactor(domain,orders): convert OrderStatus enum to lowercase string 2026-11-16 20:31:25 +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
392dcdc6c3
fix(auth): validate forgot-password email through Email value object 2026-11-16 18:34:08 +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
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
fae7690161
fix(security): escape slider description/toast text and validate product brand and alt fields 2026-11-16 02:50:39 +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
f6bae64859
fix(fo): exclude unpublished products from associated products on product detail page 2026-11-16 02:18:51 +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
550f2a11c8
fix(fo): use ProductWithPricingDto for product policy checks in FO views 2026-11-16 01:16:56 +01:00
Jérémy Munsch
d2179fcdc8
style(SecureHeaders): update Content Security Policy directives
Refine CSP directives for improved security and clarity.
2026-11-15 20:15:08 +01:00
Jérémy Munsch
3ff21bdd49
feat(orders): implement CancelOrder action with output handling
Added CancelOrder action to handle order cancellations with appropriate output responses.
2026-11-15 20:12:16 +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
0aa4b449b4
feat(orders): implement ApplyPickTimeSlot action and output handling
- Introduced ApplyPickTimeSlotOutput class for structured output.
- Updated ApplyPickTimeSlot action to return ApplyPickTimeSlotOutput.
- Added ApplyPickTimeSlotStatus enum for status representation.
- Modified TunnelController to handle new output structure.
- Enhanced tests for ApplyPickTimeSlot to validate new behavior.
2026-11-15 20:08:25 +01:00
Jérémy Munsch
4dd7cc82fe
feat(order): add InactiveShopperException handling in order finalization
- Introduced InactiveShopperException to manage inactive shopper scenarios.
- Updated FinalizeOrder and FinalizeOrderOutput to handle new exception.
- Enhanced TunnelController and tests to ensure proper redirection and error handling.
2026-11-15 19:59:17 +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
6c60e067f0
fix(auth): handle inactive employee response in password reset
Return a generic response for inactive employees instead of throwing an exception.
2026-11-15 19:52:29 +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
b10c22b931
refactor(requests): inject dependencies into AddBasketRequest
Updated AddBasketRequest to use dependency injection for Executor and GetProductWithPricingQuery.
2026-11-15 19:44:35 +01:00
Jérémy Munsch
5278c3e3f9
refactor(requests): inject Currency dependency into StoreDiscountRequest and StoreProductRequest
This change improves the handling of currency in discount and product requests.
2026-11-15 19:43:25 +01:00
Jérémy Munsch
2884a76a76
refactor(auth): move URL generation for email verification and password reset to AuthServiceProvider
This change centralizes the URL generation logic for email verification and password reset, improving maintainability.
2026-11-15 19:42:03 +01:00
Jérémy Munsch
66e406499d
refactor(auth): remove parent constructor calls in auth controllers
This change simplifies the constructors in the ForgotPasswordController, LoginController, RegisterController, and ResetPasswordController by removing unnecessary parent constructor calls.
2026-11-15 19:41:27 +01:00
Jérémy Munsch
6ff09f1369
fix(verification): remove parent constructor call in constructor
This change ensures that the parent constructor is not called,
which may be necessary for the current functionality.
2026-11-15 19:34:39 +01:00
Jérémy Munsch
5491c4fc30
fix(auth): avoid flashing login success for unverified customers 2026-11-15 18:25:48 +01:00
Jérémy Munsch
bb23dae81e
perf(basket): eliminate N+1 queries and return BasketDto from GetBasketQuery 2026-11-15 16:59:45 +01:00
Jérémy Munsch
2f76a874d9
refactor(orders): decouple basket and order tunnel via domain events 2026-11-15 16:45:06 +01:00
Jérémy Munsch
bf1c0d7d4e
test(HtmlSanitizer): add tests for HTML sanitization behavior
- Ensure password fields are preserved during sanitization.
- Validate rich HTML fields are purified correctly.
- Confirm HTTP scheme is stripped from oembed URLs after sanitization.
2026-11-15 16:45:05 +01:00
Jérémy Munsch
d1d0585b34
fix(contact): update orderRef to use OrderReference value object
Refactor orderRef handling in contact forms to ensure proper validation and type safety.
2026-11-15 16:45:05 +01:00
Jérémy Munsch
10b97e3a00
fix(orders): handle invalid timeslot format gracefully
Catch InvalidArgumentException when timeslot format is invalid to prevent failures.
2026-11-15 16:45:04 +01:00
Jérémy Munsch
3426ea22a9
security(auth): enforce active employment and email verification on password reset 2026-11-15 16:45:03 +01:00
Jérémy Munsch
ff780a7a46
security(contact): throttle contact submissions and idempotently delete S3 attachments via SendContactMailJob 2026-11-15 16:45:03 +01:00
Jérémy Munsch
4771ef9a72
fix(auth): prevent registration on already assigned employee 2026-11-15 16:45:02 +01:00
Jérémy Munsch
79ae763e88
fix(orders): serialize order finalization with distributed lock via #[Locked] attribute 2026-11-15 16:45:01 +01:00
Jérémy Munsch
4c3fa373da
fix(orders): revalidate timeslot cutoff, product orderability and use contractual FinalizeOrderOutput 2026-11-15 16:45:01 +01:00
Jérémy Munsch
93e4b202da
feat(products): enhance product form data with additional fields
Added support for new product attributes including tax rate, invoicing unit, order unit, and orderable dates. Updated related queries and views to accommodate these changes.
2026-11-15 16:45:00 +01:00
Jérémy Munsch
758fec824d
refactor(phpstan): reach PHPStan level 10 compliance and enforce global namespace prefixes 2026-11-15 16:44:59 +01:00
Jérémy Munsch
3af75ac974
feat(uploads): enforce MIME/extension validation and display upload rules on BO/FO forms 2026-11-15 16:44:59 +01:00
Jérémy Munsch
9808ef9769
refactor(products): decouple views, policies and queries from Eloquent model via ProductDtoAssemblerService 2026-11-15 16:44:58 +01:00
Jérémy Munsch
cfba7f4756
refactor(storage): migrate media models, basket value objects and CQS actions to S3 2026-11-15 16:44:58 +01:00
Jérémy Munsch
e4db1a476d
refactor(infra): configure PVC-less volumes, /tmp purifier cache and S3 CSP headers 2026-11-15 16:44:57 +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
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
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
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
0874259eba
style(FilteredProductResource): fix indentation for nutriscore line 2026-10-29 17:10:13 +01:00
Jérémy Munsch
8e42639134
feat(order): implement change selected order functionality
Add functionality to change the order of models in the product list.
This includes new actions, requests, and UI components for user interaction.
2026-10-29 16:39:23 +01:00
Jérémy Munsch
a94d8a4b49
feat(products): add discount filtering to product index
- Implement discount filtering in product queries and views.
- Update related request and response handling for discounts.
2026-10-29 16:09:41 +01:00
Jérémy Munsch
82697ed416
fix(products): respect is_old_price_displayed discount setting in product cards
- Condition strikethrough price display on showStrippedPrice in ProductCard.vue
- Add showStrippedPrice to product Zod schemas, TypeScript types, repositories and store
- Optimize showStrippedPrice in FilteredProductResource using eager-loaded validDiscount
- Add unit tests for productModelSchema and integration tests in ProductsControllerTest
2026-10-29 15:08:53 +01:00