Commit graph

1078 commits

Author SHA1 Message Date
Jérémy
800138930d Merge branch 'to-pvc-less' into 'develop'
Removes pvc usage

See merge request ldc-web/projets/boutique-cnc-sable!90
2026-11-17 12:47:48 +01:00
Jérémy Munsch
1894e45907
fix(stats): exclude technical PENDING and FAILED orders from active clients metric 2026-11-17 12:39:18 +01:00
Jérémy Munsch
aba49edaee
chore(config,tests): disable local disk serving route and freeze time in ShopperTest 2026-11-17 12:32:21 +01:00
Jérémy Munsch
0a52798a3e
fix(filesystems): correct default disk configuration
Ensure the default filesystem disk falls back to 'local' if not set.
Set 'serve' option to false for the local disk.
2026-11-17 12:32:18 +01:00
Jérémy Munsch
7ae12f71fe
test(arch): forbid direct Ramsey\Uuid\Uuid and Symfony\Component\Uid usage 2026-11-17 12:15:45 +01:00
Jérémy Munsch
d9edcd7f6b
test(uuid): migrate test suite to UuidHelper and add missing describe blocks 2026-11-17 12:15:39 +01:00
Jérémy Munsch
75784ae719
refactor(uuid): migrate app, domain, infra, and factories to UuidHelper 2026-11-17 12:15:34 +01:00
Jérémy Munsch
ad2c8f631b
feat(shared): encapsulate UUID generation and parsing in UuidHelper 2026-11-17 12:15:28 +01:00
Jérémy Munsch
617d1f70e9
feat(manifest): add LOG_LEVEL configuration
Added LOG_LEVEL with a default value of "warning" to the manifest for better logging control.
2026-11-17 12:13:55 +01:00
Jérémy Munsch
d2a7afc020
Merge branch 'develop' into to-pvc-less
# Conflicts:
#	app/Services/EmployeeCsvReaderService.php
#	tests/Feature/App/Console/Commands/UpsertEmployeesFormFileTest.php
#	tests/Unit/App/Services/EmployeeCsvReaderServiceTest.php
2026-11-17 10:36:59 +01:00
Jérémy Munsch
3a1b34602c
fix(ImportEmployees): include matricule in error messages
fix(UpsertEmployeesFormFile): return failure on import errors

test(UpsertEmployeesFormFileTest): add tests for CSV import error handling

test(EmployeeCsvReaderServiceTest): validate error messages for invalid headers
2026-11-17 10:32:25 +01:00
Jérémy Munsch
df885e3805
test(EmployeeCsvReaderService): add tests for CSV import with different encodings
Added tests to verify employee import functionality from comma-delimited Windows-1252 and UTF-16LE BOM tab-delimited CSV files.
2026-11-17 10:25:21 +01:00
Jérémy Munsch
b6c5660d5e
feat(EmployeeCsvReaderService): refactor CSV reader creation
Updated the importEmployeesFromCsv method to use a dedicated createCsvReader method for better encoding handling and improved readability.
2026-11-17 09:49:03 +01:00
Jérémy Munsch
101d0ff018
feat(EmployeeCsvReaderService): refactor CSV reader creation
Updated the importEmployeesFromCsv method to use a dedicated createCsvReader method for better encoding handling and improved readability.
2026-11-17 09:46:05 +01:00
Jérémy Munsch
1085a2d4db
test(enums): add enum fixtures for testing BaseEnum functionality
- Introduced IntStatusFixture, StringStatusFixture, and MissingLabelFixture for comprehensive testing of enum behavior.
2026-11-17 09:37:58 +01:00
Jérémy Munsch
ec7aaa5cfe
ci(gitlab): install icu-data-full in tests_laravel for French locale currency formatting 2026-11-16 22:09:41 +01:00
Jérémy Munsch
17cca9c43d
ci(tests_laravel): add mariadb-connector-c and update DB user setup
Enhance the CI pipeline for Laravel tests by adding mariadb-connector-c
and improving the database user setup process for better reliability.
2026-11-16 22:02:10 +01:00
Jérémy Munsch
c734ee41e4
ci(gitlab): install mariadb-client and disable TLS verification for CI mysql:8.0 2026-11-16 21:32:19 +01:00
Jérémy Munsch
470c2d1b9d
ci(gitlab): install mysql-client in tests_laravel for RefreshDatabase schema import 2026-11-16 21:19:39 +01:00
Jérémy Munsch
7a701328f9
test(orders): verify selected HTML option, failed status filter, and all OrderStatus cases 2026-11-16 20:39:50 +01:00
Jérémy Munsch
758605be09
refactor(domain,orders): convert OrderStatus enum to lowercase string 2026-11-16 20:31:25 +01:00
Jérémy Munsch
3b24436263
feat(stats,orders): track tunnel attempts in DB to preserve waiting stats 2026-11-16 20:19:31 +01:00
Jérémy Munsch
c58a2c8b23
feat(orders): add checkout lock, FAIL/PENDING isolation, and stale pending expiration 2026-11-16 20:05:35 +01:00
Jérémy Munsch
53f49fea9c
refactor(domain,infra): isolate PENDING/FAILED order states and add lockForUpdate 2026-11-16 19:57:06 +01:00
Jérémy Munsch
24acaf56e9
test(tunnel): add end-to-end confirmation HTTP tests without mocking Executor 2026-11-16 18:34:10 +01:00
Jérémy Munsch
dc6b00fbc1
chore(deps): bound wildcard constraints for league/csv and uwil/storage-laravel 2026-11-16 18:34:09 +01:00
Jérémy Munsch
757f9aebaa
fix(casts): treat empty string as null in FilePathCast 2026-11-16 18:34:09 +01:00
Jérémy Munsch
85aceedd1f
fix(http): guard null route when redirecting guests in middleware 2026-11-16 18:34:09 +01:00
Jérémy Munsch
392dcdc6c3
fix(auth): validate forgot-password email through Email value object 2026-11-16 18:34:08 +01:00
Jérémy Munsch
1f3d25d61a
fix(ci,tests): resolve PHPStan CI failures with .env.example and Intelephense warnings 2026-11-16 18:34:08 +01:00
Jérémy Munsch
45fc35b1f7
fix(products): query published associated products in pivot order on FO product page 2026-11-16 18:34:07 +01:00
Jérémy Munsch
0fb5a25a4a
ci: update phpstan configuration to copy .env.example
This change ensures that the .env file is created from the example
before running phpstan, allowing for proper environment setup.
2026-11-16 17:12:54 +01:00
Jérémy
f7ce006c58 Merge branch 'refactor-in-order-to-reintroduce-import' into 'develop'
Add employee Import command Closes #128

See merge request ldc-web/projets/boutique-cnc-sable!89
2026-11-16 17:10:52 +01:00
Jérémy Munsch
8ffe04c388
ci: add AWS_DEFAULT_REGION variable for phpstan 2026-11-16 17:08:29 +01:00
Jérémy Munsch
cdc04d0104
test(coverage): cover Arcadia jobs and employee service, add describe blocks (Lot 7C) 2026-11-16 17:01:12 +01:00
Jérémy Munsch
3aaec0a6db
test(coverage): cover post-commit Listeners and AppSessionService (Lot 7B) 2026-11-16 16:53:21 +01:00
Jérémy Munsch
241ad87a2e
test(coverage): cover remaining CQS Queries and FO product HTML rendering (Lot 7A) 2026-11-16 16:47:33 +01:00
Jérémy Munsch
aee7d4b8e7
chore(config): force APP_ENV to testing in phpunit.xml
Ensures the testing environment is consistently set.
2026-11-16 16:37:52 +01:00
Jérémy Munsch
b4384c00a7
chore(lint): resolve remaining PHPCS warnings across domain, infra, shared, and unit tests 2026-11-16 16:34:21 +01:00
Jérémy Munsch
14fd20c303
test(quality): resolve PHPStan level 10 errors in Feature tests and wrap long test lines 2026-11-16 16:29:17 +01:00
Jérémy Munsch
08c9028f91
test: update tests to use Assert for type checking
- Refactored tests to utilize Webmozart Assert for type assertions.
- Improved clarity and consistency in test expectations across multiple test files.
- Ensured that all relevant tests now check for expected types and values.
2026-11-16 16:26:51 +01:00
Jérémy Munsch
1b44f9d178
test(quality): resolve all PHPStan level 10 errors in Unit and Integration tests 2026-11-16 16:13:14 +01:00
Jérémy Munsch
2db00301f4
test(shared): add pure unit test suites across Helpers, Enums, Filesystem, Pagination, and ValueObjects 2026-11-16 16:01:08 +01:00
Jérémy Munsch
a4f2343eb2
test(eloquent,container): use Model::query() and direct dependency instantiation 2026-11-16 15:54:41 +01:00
Jérémy Munsch
c9d53f43c0
test(clock): add global clock reset and freeze time across 22 test files 2026-11-16 15:49:48 +01:00
Jérémy Munsch
c2490e0339
test(phpstan): remove all 55 redundant RefreshDatabase uses() 2026-11-16 15:45:21 +01:00
Jérémy Munsch
c083d74032
test(phpstan): remove all 145 redundant Pest expectations 2026-11-16 15:43:10 +01:00
Jérémy Munsch
7ad5acebd3
test(requests): overhaul FO request tests and lock Architecture rules 2026-11-16 15:31:41 +01:00
Jérémy Munsch
6f81d94648
test(requests): overhaul Basket and remaining BO request tests with controller failure checks 2026-11-16 15:23:40 +01:00
Jérémy Munsch
1f642b185e
test(requests): overhaul BO Tags/Slides/Ranges/Products request tests and failure responses 2026-11-16 15:19:01 +01:00