Commit graph

139 commits

Author SHA1 Message Date
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
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
353b899c3f
refactor(bo): change dispatch method for employee sync job
Updated the dispatch method to use dispatchAfterResponse for the employee sync job.
2026-10-27 09:58:55 +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
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
9ebf712170
refactor(cqs): complete Fo/PageController, BO FormRequest input mappings, and decouple Directories 2026-10-27 09:58:44 +01:00
Jérémy Munsch
35feddfb3d
refactor(dashboard): migrate Bo\DashboardController to CQS pattern 2026-10-27 09:58:43 +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
2ae317aad6
refactor(employees): migrate Bo EmployeesController to CQS pattern
- Add ImportEmployees Action and ImportEmployeesInput
- Add GetEmployeeImportColumnsQuery
- Encapsulate toImportEmployeesInput in ImportRequest
- Use Executor in Bo\EmployeesController
- Add feature tests for Bo\EmployeesController
2026-10-27 09:58:42 +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
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
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
85dc683ed9
fix(bo): fix pickup-exceptions validation regression and cryptic error messages 2026-10-27 09:58:39 +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
9f1b4242b9
refactor(bo): encapsulate pickup exception filter in IndexShopRequest, align VOs 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
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
668aaba1ca
perf(bo): optimize product selection and association queries in BO controllers [AUD-PER-012] 2026-10-27 09:58:26 +01:00
Jérémy Munsch
2da418dd01
fix: ProductsController injection of DataTableService 2026-10-27 09:58:15 +01:00
Jérémy Munsch
149edff185
refactor: Closes #123 change the way stats are calculated and fixes employee radiation date 2026-10-27 09:58:15 +01:00
Jérémy Munsch
bc32abb4f1
reafactor(employees): add flash message for no imported or updated lines
Notify users when no lines are imported or updated during the import process.
2026-10-27 09:58:14 +01:00
Jérémy Munsch
58af50b5c5
refactor: massive bump refactor 2026-10-27 09:58:12 +01:00
Jérémy Munsch
10d4e9f08b
fix: change product order 2026-10-07 10:31:32 +02:00
Noah Lancien
06785a3cb8 feat: added boolean to show old price on discounts - #95 2026-02-25 15:27:24 +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
Alexis Gousseau
fcd0a79251 feat: 🗃 add new field to show slide only for connected customers #87 2026-02-04 10:56:10 +01:00
Noah Lancien
f1bb958609 fix: reset view cache when updating settings 2025-11-05 13:02:08 +01:00
Karl Muller
8118d5a3f9 feat: ✨ re-add the stat before the date result on the dashbaord 2025-04-28 13:03:22 +00:00
Karl Muller
79d9061bc9 fix: 🐛 user->id null on SalarieExportJob + add public holiday with cron + condition on public holiday's calendar 2025-02-12 10:29:03 +00:00
Vincent BRIDIER
43fc273663
feat: Update uploads files folder in controllers 2025-01-24 16:44:17 +01:00
Vincent BRIDIER
17f0365697 Merge branch 'issue-52' into 'develop'
fix: 📈 update dashboard statistics #52

See merge request ldc-web/projets/boutique-cnc-sable!61
2025-01-16 10:57:20 +00:00
Alexis Gousseau
f454d35960 fix: 📈 update dashboard statistics #52 2025-01-13 15:43:42 +01:00
Alexis Gousseau
e900b85583 feat: ✨ add new product filter on food products no art in back-end #53 2025-01-13 11:09:20 +01:00
Jérémy Munsch
3a3d993d7c
feat: ✨ Closes #46
Add orders filter with: a search bar, date filters
2024-05-15 16:58:17 +02:00
noah.lancien
995e1f9eb5 Issue 19 - Add dashboard stats 2023-08-30 08:03:04 +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
Noah Lancien
c568e5a9a2 Products can now be published/unpublished from the index list 2023-06-30 11:05:54 +02:00
Olivier Legat
cd3f3e8bd3 fix boolean store and update after upgrading to validation request. also remove min 3 for servings field 2023-04-04 17:26:10 +02:00
Alexis Gousseau
006a29736c ts-1437 - #5 - update validation product 2023-03-30 15:44:50 +02:00
Alexis Gousseau
1f4455c950 quatrième retour 2022-10-21 10:35:34 +02:00
Alexis Gousseau
0a5e5437d7 premiers retours 2022-10-12 14:19:21 +02:00
Olivier Legat
6b92d1b547
apply same changes as in branch remove_verrues_de_recette 2022-09-21 16:23:42 +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
3411d0b5f6 add brand to Product, add corresponding Enum, add Brand selection to product edition/creation, add brand to product index(bo) and brand filtering for index(bo) 2022-09-12 17:48:10 +02:00