Commit graph

370 commits

Author SHA1 Message Date
0adf5b999e
fix(logging): add 'daily' channel to k8s logging configuration
This change ensures that logs are captured in both 'daily' and 'stdout' channels.
2026-11-17 10:16:20 +01:00
ee370dee6d
fix(logging): remove 'daily' channel from k8s logging configuration
This change simplifies the logging configuration for the k8s driver
by removing the 'daily' channel, ensuring only 'stdout' is used.
2026-11-16 10:05:11 +01:00
64c75b1d87
chore(env): reorganize environment variables for clarity
Updated the .env.example file to improve organization and readability of environment variables.
2026-11-12 11:12:26 +01:00
f5b53c2bf2
fix(redis): use fallback for Redis scheme configuration
Ensure Redis scheme defaults to 'tcp' if not set in environment.
2026-11-12 11:12:09 +01:00
90906bed30
chore(manifest): add volume mounts for cache and views
This change adds volume mounts for Laravel cache and views to the deployment configuration.
2026-11-12 11:11:51 +01:00
adc44747c1
chore(database): update Redis session database index
Changed the Redis session database index from 0 to 2 for better session management.
2026-11-12 11:07:30 +01:00
2449039e69
revert redis queue config 2026-11-12 10:38:47 +01:00
552b88d851
chore(manifest): add REDIS_QUEUE_CONNECTION to configuration
This change introduces a new configuration for the Redis queue connection.
2026-11-12 10:32:43 +01:00
85163c6149
chore(manifest): add MAIL_FROM_ADDRESS to configuration
This change adds the MAIL_FROM_ADDRESS variable to the manifest configuration.
2026-11-12 10:21:37 +01:00
669ee7d736
feat(deployment): enhance deployment configuration with health checks and resource limits
Added readiness, liveness, and startup probes for improved application health monitoring.
Configured resource requests and limits for better resource management.
2026-11-06 12:23:21 +01:00
01bca3a604
chore(manifest): update configuration for maintenance and session
Added APP_MAINTENANCE_DRIVER and APP_MAINTENANCE_STORE.
Reordered CACHE_STORE and SESSION_DRIVER for clarity.
2026-11-06 11:47:27 +01:00
630646c47f
docs: remove domain md file 2026-11-06 11:26:29 +01:00
dea6dc8a63
feat(test): add unit tests for ImageOptimizerService
- Implemented tests to verify the functionality of the ImageOptimizerService.
- Tests cover optimization of supported image formats, handling of unsupported files, and cleanup of temporary files.
- Added functionality to store optimized images onto disk using a storage service.
2026-11-06 08:51:44 +01:00
3ea72e522f
chore(migration): remove image optimization migration file
This migration file for optimizing product and recipe images has been deleted.
2026-11-06 08:24:30 +01:00
69e8315bd4
feat(migration): add image optimization for products and recipes
This migration optimizes images for products and recipes by resizing and converting them to JPEG format.
2026-11-06 08:12:59 +01:00
3008299cd7
chore(dependencies): add intervention/image package 2026-11-06 08:12:19 +01:00
680f0d648a
style(Recipes): format conditional expression for readability
Improves the readability of the conditional expression in the getColumns function.
2026-11-05 18:20:23 +01:00
64ca29fefc
refactor(PublicS3Disk): change method call to retrieve public URL
Updated the publicUrlOf method to use the correct adapter method for generating the public URL.
2026-11-05 18:15:36 +01:00
779fc59993
refactor(UpdateProductRequest): simplify file handling logic
Refactor the file handling logic in UpdateProductRequest by extracting
picture and PDF resolution into separate methods for better readability
and maintainability.
2026-11-05 18:14:37 +01:00
aff271570e
refactor: published on recipes and products 2026-11-05 18:06:33 +01:00
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
531a5c626a
style(Show): format SafeHtml component for better readability 2026-11-05 17:19:34 +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
481d80c8ea
refactor(requests): simplify nutritional values handling in product requests
Updated the handling of nutritional values in StoreProductRequest and UpdateProductRequest
to improve clarity and maintainability. The logic for processing nutritional values has been
centralized into a dedicated method, enhancing code readability.
2026-11-05 13:25:39 +01:00
8f9bf1e861
refactor(NutritionalValuesCast): enhance validation and error handling
Improved validation logic for nutritional values and added error handling for invalid inputs.
2026-11-05 12:57:17 +01:00
b4b1dd21ac
refactor(NutritionalValue): improve value validation logic
Refactored the constructor to use strict comparison for value validation.
2026-11-05 12:56:14 +01:00
bb454c3684
feat(factory): update Product and Recipe factories for image paths and nutritional values
- Changed image URL generation to use UUIDs for consistency.
- Updated nutritional values to use new NutritionalValue objects.
2026-11-05 12:55:37 +01:00
47671eaa6f
refactor(Product): remove unused StorageService references
Cleaned up the Product model by removing the StorageService dependency and related deletion logic.
2026-11-05 12:34:57 +01:00
19a2af8d5b
refactor(PublicS3Disk): improve publicUrlOf method logic
Refactor the publicUrlOf method to enhance readability and maintainability.
2026-11-05 12:19:07 +01:00
bc69c9f64d
feat(products): implement GetBoPaginatedProductsQuery and input/output classes
feat(recipes): implement GetBoPaginatedRecipesQuery and input/output classes

feat(requests): add table parameter resolution for products and recipes
2026-11-05 12:17:58 +01:00
6c691f77fc
feat(queries): add new product and recipe queries with inputs
- Implement GetCategoriesProductsQuery and GetCategoriesProductsQueryInput for product category retrieval.
- Implement GetRelatedProductsQuery and GetRelatedProductsQueryInput for related product fetching.
- Implement GetFrontRecipesQuery and GetFrontRecipesQueryInput for front-end recipe listing.
- Implement GetRelatedRecipesQuery and GetRelatedRecipesQueryInput for related recipe fetching.
- Update ProductController and RecipeController to utilize new query classes.
- Enhance IndexProductRequest and IndexRecipeRequest to convert requests to query inputs.
2026-11-05 12:02:36 +01:00
04a9f97719
feat(recipes): implement CRUD actions for recipes
- Added actions for creating, updating, deleting, force deleting, and restoring recipes.
- Introduced input classes for each action to handle data validation and transfer.
- Implemented DTOs for recipes to facilitate data transfer between layers.
- Updated RecipeController to utilize new actions and input classes.
- Enhanced recipe model to manage picture URLs and storage.
- Updated frontend components to handle new data structures and display images correctly.
2026-11-05 11:54:19 +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
da93f3e59e
feat(PublicS3Disk): initialize with S3 public endpoint
Updated PublicS3Disk to accept S3 public endpoint in constructor.
Enhanced publicUrlOf method to generate public URLs using the adapter.
2026-11-05 09:07:07 +01:00
1e670eb1c2
fix(MediaController): improve S3 URL generation logic
Ensure proper handling of S3 disk type and URL construction.
2026-11-05 07:57:14 +01:00
b67e4cff9f
chore(middleware): fix namespace for AdminSecureMiddleware 2026-11-05 07:40:39 +01:00
75609b7c26
chore(migration): remove obsolete model file migration script
This migration script is no longer needed and has been deleted.
2026-11-04 18:01:14 +01:00
1a09fbf269
chore(manifest): update AWS_URL to use APP_OVH_S3_URL
This change updates the AWS_URL configuration to use the APP_OVH_S3_URL variable for better clarity.
2026-11-04 18:00:57 +01:00
f21563522b
fix(migration): improve S3 file migration handling
Enhance the migration process to check multiple S3 disks for file existence
and handle exceptions more gracefully.
2026-11-04 17:44:29 +01:00
c31a2d5a08
chore(composer): update league/uri and symfony packages to latest versions
Updated dependencies to ensure compatibility and access to new features.
2026-11-04 17:32:26 +01:00
c3cee9910b
chore: integrate PublicS3Disk and PrivateS3Disk classes
- Added PublicS3Disk and PrivateS3Disk classes for S3 disk management.
- Updated ProductController and RecipeController to utilize PublicS3Disk for file uploads.
- Modified MediaController to redirect to S3 URLs.
- Enhanced migration script to support file migration to new S3 structure.
- Updated filesystem and storage service configurations for public/private S3 disks.
2026-11-04 16:42:20 +01:00
39bb68bbc8
chore(manifest): add SESSION_CONNECTION variable to manifest
This change introduces a new environment variable for session connection configuration.
2026-11-04 12:20:17 +01:00
22e97e0bc8
chore(manifest): add CACHE_PREFIX variable to manifest
Updated the manifest to include a CACHE_PREFIX variable for better cache management.
2026-11-04 11:50:51 +01:00
905666e168
chore(manifest): update Redis client from predis to phpredis
This change updates the Redis client configuration to use phpredis for improved performance and compatibility.
2026-11-04 11:23:29 +01:00
66f5d17480
chore(manifest): update environment variables for AWS and Redis
Added AWS configuration and Redis settings to the manifest.
2026-11-04 11:15:55 +01:00
ac51908d5e
chore(docker): update frontend build process and dependencies
Replaced npm with bun for package management and build.
2026-11-04 10:59:16 +01:00
9c5bba55c0
chore(deps): update dependencies and add overrides for Tailwind CSS
- Updated various dependencies to their latest versions.
- Added overrides for @tailwindcss/typography to specify postcss-selector-parser version.
2026-11-04 10:43:48 +01:00
Jérémy
d54b8dda51 Merge branch 'externalize-model-files' into 'develop'
Externalize files using new built in house dep

See merge request ldc-web/projets/ovoteam!50
2026-11-04 10:32:13 +01:00
284907c2a6
feat(migration): add migration for model files to storage service
This migration handles the transfer of model files for products and recipes to the storage service.
2026-11-04 10:30:40 +01:00