Commit graph

33 commits

Author SHA1 Message Date
db5c95f9a1
feat(duplicate): add product and recipe duplication functionality
This commit introduces the ability to duplicate products and recipes,
including handling of associated files and unique naming conventions.
2026-11-05 17:46:14 +01:00
9bb3d1a103
refactor(breadcrumbs): improve breadcrumb handling for products and recipes
- Adjusted condition to check for ProductDto instance.
- Added duplicate breadcrumb handling for products and recipes.
2026-11-05 17:17:26 +01:00
ca9c0fbc4e
feat(policy): allow ProductDto and RecipeDto in policies
Updated ProductPolicy and RecipePolicy to accept ProductDto in addition to Product. This change enhances the flexibility of the policies by allowing DTOs to be used for authorization checks.

refactor(provider): simplify service provider bindings

Refactored AppServiceProvider to simplify the binding of ProductDirectory and RecipeDirectory. Removed unnecessary dependencies and improved clarity.

feat(route): update route bindings for front-end

Changed route bindings for products and recipes to use frontProduct and frontRecipe. This improves clarity and consistency in route handling.

fix(breadcrumbs): update breadcrumb checks for DTOs

Updated breadcrumb generation to check for ProductDto and RecipeDto instead of their model counterparts. This ensures breadcrumbs function correctly with the new DTO structure.

refactor(types): remove FilePath type and update schemas

Removed the FilePath type definition and updated related schemas to use string directly. This simplifies type handling for file paths.

style(entities): standardize naming conventions

Updated naming conventions in Product and Recipe entities to use snake_case for consistency across the codebase.

feat(frontend): update product and recipe pages for new DTO structure

Modified front-end components to accommodate changes in the product and recipe data structures, ensuring compatibility with the new DTOs.
2026-11-05 16:49:42 +01:00
57faeada75
feat(dto): add CategoryProductsDto, ProductDto, and ProductSummaryDto
Add new DTOs for handling product and category data structures.
These DTOs facilitate data transfer and serialization for products and categories.

refactor(controller): update ProductController to use executor pattern

Refactor ProductController to utilize an executor for handling product creation,
updating, and deletion, improving code organization and maintainability.

refactor(controller): update RecipeController to use executor pattern

Refactor RecipeController to utilize an executor for handling recipe creation,
improving code organization and maintainability.

chore: remove MediaController

Remove MediaController as it is no longer needed in the application.

feat(request): enhance StoreProductRequest and UpdateProductRequest

Enhance StoreProductRequest and UpdateProductRequest to include methods for
transforming request data into input objects for actions.

chore: add ActionExecutorService for executing actions and queries

Introduce ActionExecutorService to handle the execution of actions and queries
with logging and transaction management.

chore(deps): update composer dependencies

Update composer dependencies to include webmozart/assert for improved type assertions.
2026-11-05 11:37:20 +01:00
e55889369b
refactor(requests): simplify file validation rules
Updated the UpdateProductRequest and UpdateRecipeRequest to use built-in validation rules for file uploads, removing custom validation methods for pictures and PDFs. This change streamlines the validation process and improves code readability.

refactor(helper): remove unused FileStorageHelper

Deleted the FileStorageHelper class as it was no longer needed, simplifying the codebase.

refactor(toolbox): clean up ToolboxHelper methods

Removed unused methods and simplified existing ones in ToolboxHelper to enhance maintainability.

feat(models): add translation search method to Product and Recipe

Added a new method `whereTranslationLike` to both Product and Recipe models to facilitate searching translations.

chore(config): add storage service prefix configuration

Introduced a new configuration option for storage service prefix to allow customization of media paths.

fix(validation): add file existence validation message

Added a French translation for the file existence validation message to improve user feedback.

feat(routes): add media route for file access

Implemented a new route for accessing media files through a MediaController, enhancing file management capabilities.
2026-11-04 10:18:51 +01:00
Jérémy
c24a97345d Merge branch '43-update-content' into 'develop'
feat: ✨ update expertise since 1963 page content

Closes #43

See merge request ldc-web/projets/ovoteam!45
2026-11-04 09:58:23 +01:00
Corentin Huet
11c07644c0 feat: ✨ update wide outdoor range page 2026-11-02 11:33:39 +01:00
Corentin Huet
9f986d9043 feat: ✨ update expertise since 1963 page content 2026-10-28 12:27:19 +01:00
6cfa8d8e27
fix(breadcrumbs): handle missing product and recipe gracefully
Return early instead of throwing exceptions for missing product or recipe
during breadcrumb generation to improve user experience.
2026-10-19 14:39:04 +02:00
83c5ff3e6f
feat(products): add description field to product model and forms
- Added description field to Product model and database migration.
- Updated StoreProductRequest validation rules for description.
- Modified product factory and seeder to include description.
- Enhanced product forms and show pages to display description.
2026-10-19 11:38:58 +02:00
Jeremy Munsch
d641d61bfd
refactor: prevent crashing on front breadcrumbs 2026-10-16 09:46:45 +02:00
K Muller
3f5537731d style: 💄 wording and picto for commit page 2026-09-25 16:11:20 +02:00
c21a9b334b
fix: add missing front breadcrumb route for recipes 2026-09-21 11:52:41 +02:00
a1f8e410fe
feat(routes): add duplicate, restore, and force destroy routes for products and recipes
This update introduces new routes for duplicating, restoring, and force deleting products and recipes, enhancing the management capabilities in the application.
2026-09-21 11:43:40 +02:00
444ee46ac0
refactor(breadcrumbs): update product and recipe edit routes
Refactor breadcrumb generation for product and recipe edit routes
to ensure proper instance checks and improve error handling.
2026-09-21 11:43:39 +02:00
1a7f321cff
refactor: initial Recipes and products implementation ok 2026-09-21 11:43:39 +02:00
1a12569395
feat(directory): update ProductDirectory to use ProductId
- Changed the find method to accept ProductId instead of int.
- Added findBySlug method to retrieve products by slug.
- Updated getCategoryProducts method to return CategoryProducts type.

feat(eloquent): implement findBySlug in EloquentProductDirectory

- Implemented findBySlug method to retrieve products by slug.
- Updated find method to handle ProductId.

feat(dto): enhance CategoryProducts to serialize product IDs

- Updated CategoryProducts to serialize product IDs as strings.

feat(controller): modify ProductController to handle search limits

- Set limitPerCategory to -1 for search functionality.

refactor(model): change Product model ID to UUID

- Changed the id field in Product model to UUID.
- Updated related methods to handle UUIDs.

feat(migration): alter products and recipes tables for UUIDs

- Updated migrations to use UUIDs for primary keys in products and recipes tables.
- Adjusted foreign key constraints in product_recipe table.

feat(route): add route model binding for products

- Implemented route model binding for products using ProductId and slug.

chore(seed): remove CSV import calls from MandatorySeeder

- Removed calls to ImportProductsCsvSeeder and ImportRecipesCsvSeeder.

feat(entity): create ProductId and RecipeId value objects

- Added ProductId and RecipeId classes to encapsulate UUIDs.

feat(frontend): update TypeScript interfaces for products

- Updated TypeScript interfaces to reflect changes in product structure.
2026-09-21 11:43:39 +02:00
1200bfea4c
refactor: product.index page with search 2026-09-21 11:43:38 +02:00
e14c43d82f
refactor(routes): correct Inertia render method for demo route
Updated the Inertia render method for the demo route to ensure consistency in code style.
2026-09-21 11:37:14 +02:00
696bd9ed66
refactor(routes): restructure demo route for production check 2026-09-21 11:37:13 +02:00
028f769dbc
feat(products): add create and edit product pages
- Implemented Create and Edit pages for products with forms.
- Added validation and permissions handling for product actions.
- Introduced new product model and related types for better structure.
- Enhanced sidebar registry to remove auth dependency for link resolution.
- Updated routes to handle precognitive requests for product forms.
2026-09-21 11:36:52 +02:00
43c3d55b72
refactor: products.index and recipes.index pages on Bo 2026-09-21 11:36:51 +02:00
Corentin Huet
2ec086c7d7 fix: 🐛 restrict demo route to local env 2026-09-01 12:12:38 +02:00
Jeremy Munsch
d2a3b61d75
fix: ignore breadcrumb route declarations for dynamic pages as a dirty patch 2026-06-25 10:05:31 +02:00
Corentin Huet
120db17596 fix: 🐛 resolve various bugs after re7 review 2026-05-26 14:52:59 +02:00
K Muller
ecae3660d0 style: 💄 after re7 #17 2026-04-15 09:31:53 +02:00
K Muller
2f90c82d74 fix: :style: 0 lint error 2026-04-08 14:05:46 +02:00
K Muller
db25bec3e5 feat: ✨ add :
- sentry
- variables in manifest
- some dynamic pages
- breadcrumbs
- dynamic page resolver
2026-04-07 16:21:09 +02:00
K Muller
f2a4a367e0 feat: :construct: front pages + components 2026-04-02 17:29:11 +02:00
K Muller
9a404dd61a wip: on component 2026-03-30 14:29:00 +02:00
K Muller
2dd2c78fa7 chore: 📦 install backend 2026-03-30 14:17:31 +02:00
K Muller
eef93adb2c chore: 📦 update laravel-common > 5.1.1 2026-03-30 14:12:01 +02:00
K Muller
a6370dcb47 first commit 2026-03-16 12:36:44 +01:00