Commit graph

57 commits

Author SHA1 Message Date
Jérémy Munsch
e0c4b34ed8
feat(employees): implement deterministic 6-character code generation using SerialCaster
- Add kwaadpepper/serial-int-caster and SerialCasterServiceProvider
- Update CodeGenerationService to encode Matricule deterministically with length 6
- Update Code value object to support lengths between 6 and 10 with 53 non-ambiguous characters
- Add database migration to sanitize legacy ambiguous codes
- Recreate and update unit and integration tests for CodeGenerationService and Code value object
2026-10-27 09:58:46 +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
70600ea623
refactor(products): migrate BO and FO ProductsControllers to CQS pattern
- Refactor Bo\ProductsController to use ActionExecutor and Queries
- Refactor Fo\Pages\ProductsController and Fo\Ajax\ProductsController to CQS
- Add Actions: CreateProduct, UpdateProduct, DeleteProduct with Inputs
- Add Queries: GetBoPaginatedProductsQuery, GetProductFormDataQuery, GetFoProductIndexPageQuery, GetFoFilteredProductsQuery
- Add DTOs: ProductFormDataDto and enrich ProductDto
- Encapsulate Action/Query inputs conversion in FormRequests
- Remove obsolete ProductDirectory and EloquentProductDirectory
- Add tests for Fo\Ajax\ProductsController
2026-10-27 09:58:42 +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
797d1da1b2
refactor(faqs): implement CQS actions, query, and DTO for faqs 2026-10-27 09:58:32 +01:00
Jérémy Munsch
3ac95cc6f8
refactor(common): implement generic actions for controller traits (order, status, star) 2026-10-27 09:58:32 +01:00
Jérémy Munsch
98e580d327
refactor(tags): implement CRUD actions for tags
- Added CreateTag, UpdateTag, and DeleteTag actions.
- Introduced CreateTagInput and UpdateTagInput for input validation.
- Implemented ActionExecutor for executing actions with logging.
- Added tests for all new actions and input validation.
2026-10-27 09:58:30 +01:00
Jérémy Munsch
5a0b68496e
perf(crm): cache customer lookups and email verification with deterministic keys [AUD-PER-014] 2026-10-27 09:58:25 +01:00
Jérémy Munsch
507078363b
sec(rate-limiting): secure clientIp resolution using trustProxies [AUD-SEC-008] 2026-10-27 09:58:24 +01:00
Jérémy Munsch
c359f8d68c
feat(routes): add product model binding in RouteServiceProvider
This change allows the product model to be resolved in route parameters.
2026-10-27 09:58:18 +01:00
Jérémy Munsch
58af50b5c5
refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
Alexis Gousseau
ae54ee559b fix: 🐛 use blade directives helper to prevent blade files from being cached #76 #77 2026-02-02 15:47:55 +01:00
noah.lancien
44f72a3259 Reminder mail 2023-07-10 15:09:06 +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
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
4c04cd7d29 placeholder ranges, split routes fo/bo, delete QuickOrder, fix integration 2022-10-07 15:18:32 +02:00
Olivier Legat
31003f9988
proper test before share to views 2022-09-12 14:26:42 +02:00
Olivier Legat
326b21166d
proper registering of product policy 2022-09-12 14:25:45 +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
Olivier Legat
89fd1b8516 force https for all envs 2022-07-12 17:42:08 +02:00
Jérémy Munsch
2b9d3d08ea
CRM V3 Migration
- require slevomat/coding-standard
- require ldc/ldccrmv2client
- update phpcs xml
2022-04-14 16:38:47 +02:00
Olivier Legat
f6dfd4135f utilisation du setting de display prix 2021-11-09 15:38:52 +01:00
Olivier Legat
0799267b6e Suppression du JS fontawesome en BO, mise à dispo dans public de webfonts pour usage back et front
Unités de ventes strictes (ENUM) et paramètre back office d'application
modification de la directive fmt_sellunit pour prise en compte du paramètre
Gestion en objet date de la date de livraison pour export commande
capacité de rotation daily des logs (pour LOG_CHANNEL=stackProd)
2021-07-26 14:09:29 +02:00
Olivier Legat
8daecbd373 laison salarie/customer à l'inscription 2021-07-21 15:03:37 +02:00
Olivier Legat
b16c0e9128 adding kwaadpepper enums
adding register mode setting
providing app db settings in config()
validating requirement/optionnality of registration field upon defined register mode
2021-07-21 12:57:50 +02:00
Olivier Legat
74dc46c1e5 improve app setup 2021-07-01 17:26:18 +02:00
Olivier Legat
4f09e2773f Orderable products 2021-06-07 16:12:13 +02:00
Olivier Legat
4071cfcdb8 directive de réduction d'affichage, sur paramètre de thème 2021-05-26 17:25:30 +02:00
Olivier Legat
ef8add10ce Gestion des tags 2021-05-07 10:44:23 +02:00
Olivier Legat
a705a153c7 BO Settings intrinsèques au thème 2021-05-06 17:18:25 +02:00
Olivier Legat
78305d8889 dynamic tags for front
fix no tag in product
fix no associated product
2021-05-05 17:25:49 +02:00
Olivier Legat
6184340476 correctifs pour généralisation des démarrages de projet boutique 2021-04-28 17:04:16 +02:00
Olivier Legat
3635e5f6c0 prix affichés TTC 2021-04-20 10:55:45 +02:00
Olivier Legat
fe6c72f1cb published_ranges vs unpublished 2021-04-20 10:15:22 +02:00
Olivier Legat
7563bbc06d pagination bootstrap pour le BO
(le front doit spécifier son blade de pagination)
2021-04-19 16:22:24 +02:00
Olivier Legat
620bb251b0 mise en avant - selection du moment 2021-04-08 18:05:17 +02:00
Olivier Legat
bce4c2f88c Offres Spéciales :
commit 2bdbfaec541c3d51489f32e0fa6f7523ca4e4f6f
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Thu Apr 8 15:48:13 2021 +0200

    arrondis de taxe dans le panier

commit ce748bcac15a0b633cacc06b8232cbb92a8e455c
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Thu Apr 8 11:53:54 2021 +0200

    Prix calcules - affichés

commit cc79e7c633d81290371eceabe9864d4d0ee9e4a5
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Wed Apr 7 18:09:12 2021 +0200

    Affichage des promowork in progress => prix remisés

commit 8545d1079da2456f090557eeef005e4d37154a1e
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Wed Apr 7 13:04:28 2021 +0200

    resource BO Promotions

commit d7145835de675da32e57bec3f0b8f06e1e447b27
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Tue Apr 6 18:23:36 2021 +0200

    structure DB, debut BO
2021-04-08 15:49:20 +02:00
Olivier Legat
9ecb97bbfa inscription setup 2021-03-25 17:59:02 +01:00
Olivier Legat
9d84ae1692 panier phase 1 2021-03-25 15:48:07 +01:00
Olivier Legat
82c1db60ce panier fonctionnement basique 2021-03-24 17:58:27 +01:00
Olivier Legat
755242160a début composition 2021-03-23 17:47:05 +01:00
Olivier Legat
149a9aebe7 https for dev and prod asssets 2021-03-23 10:23:05 +01:00