Commit graph

93 commits

Author SHA1 Message Date
Jérémy Munsch
43d63bce2e
feat(basket): add throttling middleware for basket actions
This change introduces a throttling middleware to limit the rate of requests
for adding, removing, and emptying the basket, enhancing the application's
performance and security.
2026-11-15 20:01:02 +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
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
3ac3cbc7ff
style(products): format change-selected-order route for readability 2026-10-29 17:08:16 +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
14647576df
feat(bo/product-incos): adapt BO controller, requests, routes and views for Arcadia INCO management 2026-10-27 09:58:53 +01:00
Jérémy Munsch
bae633e312
style: fix phpcs sniffs and complexity warnings 2026-10-27 09:58:51 +01:00
Jérémy Munsch
bf3e7a93fd
refactor(i18n): harmonize translation keys to English and complete French translations
- Convert hardcoded strings and French translation keys to English keys across Blade templates, Vue components, TypeScript modules, models, and routes
- Complete and synchronize lang/fr.json and lang/en.json translation dictionaries
- Add timezone attribute in lang/fr/validation.php and lang/en/validation.php
- Add missing English lang files for parity: crud.php, models.php, search.php, and vue.php
2026-10-27 09:58:47 +01:00
Jérémy Munsch
3b3997d547
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-27 09:58:44 +01:00
Jérémy Munsch
d912d4b096
refactor(orders): migrate Bo\OrdersController and Fo\OrderController to CQS pattern 2026-10-27 09:58:43 +01:00
Jérémy Munsch
9aab392350
feat(bo): refactor ProductIncosController to strict CQS with actions, DTOs, and request mapping 2026-10-27 09:58:41 +01:00
Jérémy Munsch
0fef2cfc98
refactor(fo): refactor ContactController using GetShopQuery and CQS 2026-10-27 09:58:40 +01:00
Jérémy Munsch
55ae6553d8
refactor(bo): refactor DiscountsController to strict CQS pattern with actions, queries and DTOs 2026-10-27 09:58:40 +01:00
Jérémy Munsch
26992f52ff
feat(bo): refactor PickupExceptionsController to strict CQS with actions, queries, and DTOs 2026-10-27 09:58:39 +01:00
Jérémy Munsch
c997b37047
feat(bo): refactor ShopsController to strict CQS with actions, queries, VOs, and DTOs 2026-10-27 09:58:38 +01:00
Jérémy Munsch
42bdae01cc
feat: implement pagination using Pagination value object
- Updated DataTableService to accept a Pagination object for pagination parameters.
- Refactored paginateQuery method to utilize pageSize and pageNumber from Pagination.

refactor: replace ActionExecutor with Executor in controller traits

- Updated ChangesModelOrder, TogglesModelStar, and TogglesModelStatus traits to use Executor interface instead of ActionExecutor.

feat: add PictureMetadata and Slug value objects

- Introduced PictureMetadata for managing image metadata with validation.
- Added Slug value object for slug generation and validation.

feat: update breadcrumbs to support RangeDto

- Modified breadcrumbs-bo.php to accept RangeDto in the edit route.

test: add tests for RangesController

- Added tests for accessing, creating, updating, and deleting ranges.
- Included tests for toggling range status.

test: add integration tests for range actions

- Created tests for CreateRange, DeleteRange, and UpdateRange actions.
- Validated input handling and database interactions.

test: add unit tests for range input classes

- Implemented tests for CreateRangeInput and UpdateRangeInput to validate input constraints.

test: add unit tests for value objects

- Added tests for PictureMetadata and Slug to ensure proper validation and instantiation.

test: add unit tests for RangeDto

- Created tests to verify RangeDto mapping from Range model.

test: add unit tests for RangePolicy

- Implemented tests for RangePolicy to validate permissions based on user roles.
2026-10-27 09:58:34 +01:00
Jérémy Munsch
e2e2a357f7
refactor(slides): implement CQS actions, query, DTO, and DatePeriod VO for slides 2026-10-27 09:58:33 +01:00
Jérémy Munsch
1fd2a3a1d8
refactor(pages): implement CQS action, query, DTO, and SeoMetadata VO for pages 2026-10-27 09:58:33 +01:00
Jérémy Munsch
58af50b5c5
refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
Noah Lancien
f9e0448fb6 feat: re-order products with a select system like support-web - #94 2026-02-25 11:05:59 +01:00
Corentin Huet
fa3b38ac98 feat: added admin secure 2025-03-31 15:44:32 +02:00
Vincent BRIDIER
e7baad6c14
feat: Authorize all BO roles for user import - ts-2165 2024-11-28 08:33:54 +01:00
noah.lancien
c63f332e15 Added method to unsubscribe a crm customer from newsletter Close #35 2023-10-17 13:32:23 +00:00
Alexis Gousseau
86b765704e fix route + clean - issue #23 2023-07-28 12:50:55 +00:00
Alexis Gousseau
2a1baea6c6 update import + add export on salarie table - issue #7 2023-07-28 07:25:36 +00:00
Alexis Gousseau
591079f264 add order on products table - issue #21 2023-07-26 09:56:16 +02:00
Nicolas Demangeat
8a37cae0cd change route name for charte de confidentialite 2023-06-30 14:13:01 +00:00
Vincent BRIDIER
9935384a3e Merge branch 'issue-12' into 'develop'
Products can now be published/unpublished from the index list

Closes #12

See merge request ldc-web/projets/boutique-cnc-sable!22
2023-06-30 10:41:14 +00:00
Nicolas Demangeat
7dc41488cd bug fix display gammes-de-produit page 2023-06-30 10:16:48 +00:00
Noah Lancien
c568e5a9a2 Products can now be published/unpublished from the index list 2023-06-30 11:05:54 +02:00
Alexis Gousseau
88b62a8700 Ticket 1280: fix search on mobile 2023-01-30 11:51:16 +01:00
Olivier Legat
1d59ac4bb5
filtres conservé au refresh, liens de préfiltrage, refactor (light), Normalized exception handler, green card when in cart, mising rowid in cart handled 2022-10-28 16:59:45 +02:00
Alexis Gousseau
11e8749bbb search 2022-10-27 14:12:45 +02:00
Alexis Gousseau
1f4455c950 quatrième retour 2022-10-21 10:35:34 +02:00
Alexis Gousseau
bdd86c0118 second retours 2022-10-14 15:03:46 +02:00
Alexis Gousseau
435a007ea2 fix fo/bo routes 2022-10-10 15:51:53 +02:00
Alexis Gousseau
4c04cd7d29 placeholder ranges, split routes fo/bo, delete QuickOrder, fix integration 2022-10-07 15:18:32 +02:00
Alexis Gousseau
700961df23 Implementation integration 2022-10-04 11:28:53 +02:00
Olivier Legat
1375b6976f extract front end methods from bo controller, create appropriate conntroller, update routes accordingly 2022-09-20 16:39:55 +02:00
Olivier Legat
adb0789c57
sniffing and linting - NO refactoring 2022-09-08 13:02:16 +02:00
Olivier Legat
15e081c943
first auotmated clean 2022-09-08 11:29:39 +02:00
S. Hattry
3e9428d122 Revert "PHPCS correction 1"
This reverts commit e4f00ae71c.
2022-07-28 11:57:02 +02:00
Sebastien Hattry
e4f00ae71c PHPCS correction 1 2022-07-28 09:29:34 +00:00
Olivier Legat
6c32f37e40 mandatory public routes 2022-03-19 11:59:26 +01:00
Olivier Legat
c5ff55f2d2 privatisable routes 2022-03-19 11:26:12 +01:00
Olivier Legat
7f29b7691b quickorder page if theme setting for it 2022-03-19 09:02:07 +01:00
Olivier Legat
a518f55ff4 add quick order route 2022-03-18 14:30:20 +01:00
Olivier Legat
e8d29e3733 reprise d'images Inco 2021-07-30 15:02:13 +02:00
Olivier Legat
eb0a6dc919 remplacement/redimensionnement automatique d'images INCO lorsque disponible. 2021-07-29 17:40:48 +02:00
Olivier Legat
c6f58b4525 route unique name 2021-07-26 14:33:39 +02:00