Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9d41645
[Sylius 2] Update composer dependencies to Sylius 2.x / Symfony 7 / P…
LucaGallinari Jul 27, 2026
31520ec
[Sylius 2] Move src/Resources/* to flat config/, templates/, translat…
LucaGallinari Jul 27, 2026
cb325d3
[Sylius 2] Migrate state machine to sylius/state-machine-abstraction
LucaGallinari Jul 27, 2026
6f0ae79
[Sylius 2] Replace in-repo dummy test app with sylius/test-application
LucaGallinari Jul 27, 2026
ab945a6
[Sylius 2] Fix Behat contexts/pages/services for renamed Sylius 2.x APIs
LucaGallinari Jul 27, 2026
d620c05
[Sylius 2] Modernize static analysis tooling and apply code style fixes
LucaGallinari Jul 27, 2026
9406ed7
[Sylius 2] Rewrite CI workflow for the new Sylius 2.x test stack
LucaGallinari Jul 27, 2026
f195158
[Sylius 2] Add Docker development setup
LucaGallinari Jul 27, 2026
295d08e
[Sylius 2] Align CI workflow and phpunit testsuites with SyliusMailch…
LucaGallinari Jul 27, 2026
7c7d879
[Sylius 2] Add tests/TestApplication/config/bundles.php, align env wi…
LucaGallinari Jul 27, 2026
11e6dd3
Do not log infinite totally useless entries locally for nothing
LucaGallinari Jul 27, 2026
c81277e
Renames namespace and module to "Webgriffe SyliusAdminOrderCreationEx…
LucaGallinari Jul 27, 2026
97472fa
Align composer.json with latest versions
LucaGallinari Jul 27, 2026
0796a61
Add empty assets entrypoint files
LucaGallinari Jul 27, 2026
760de08
Update Docker/tooling config for the Sylius 2.x test environment
LucaGallinari Sep 1, 2026
30f2501
style: fix import ordering across the plugin's core classes
LucaGallinari Sep 1, 2026
e822f5c
docs: add AGENTS.md and CLAUDE.md project instructions
LucaGallinari Sep 1, 2026
0ca9fb2
Migrate customer-selection page to Sylius 2 Bootstrap/Tabler UI
LucaGallinari Sep 1, 2026
98c2faf
Migrate order-creation form to a Live Component on Bootstrap/Tabler
LucaGallinari Sep 1, 2026
9184bbf
Migrate order-preview page to a Live Component on Bootstrap/Tabler
LucaGallinari Sep 1, 2026
d295993
Rebuild Order Show page customizations with Sylius 2 Twig Hooks
LucaGallinari Sep 1, 2026
8056bb6
Rewrite Behat suite for the Sylius 2 admin UI
LucaGallinari Sep 1, 2026
5447a8f
Regenerate phpstan/psalm baselines for the Sylius 2 migration
LucaGallinari Sep 1, 2026
3e735d6
Fix composer validate --strict by replacing exact pins with a real co…
LucaGallinari Sep 1, 2026
b77651b
docs: correct AGENTS.md note on the composer version constraints
LucaGallinari Sep 1, 2026
0b5884b
style: fix import ordering in phpspec specs
LucaGallinari Sep 1, 2026
5c4313a
Add a Behat step for non-offline payment methods, no new dependency
LucaGallinari Sep 2, 2026
0bfbc81
Fix a race in removeProduct() surfaced by the newly-runnable reorder …
LucaGallinari Sep 2, 2026
768a8b9
Make sending the payment-link email opt-in, unchecked by default
LucaGallinari Sep 2, 2026
2a2fe15
Fix order preview losing prices and shipment on any Live Component ac…
LucaGallinari Sep 2, 2026
ad90613
Make the offline payment gateway names configurable
LucaGallinari Sep 3, 2026
d22c94a
Allow disabling payment-link generation via configuration
LucaGallinari Sep 3, 2026
d30e77e
Fix the plugin's DI extension never being registered/loaded
LucaGallinari Sep 3, 2026
0fc9d31
Reference OrderFactoryInterface instead of the concrete class in routing
LucaGallinari Sep 3, 2026
1b7c320
Dispatch a plugin-owned OrderCreatedByAdminEvent after order creation
LucaGallinari Sep 3, 2026
3acef11
Rewrite the README's Extension points section to match Sylius 2 code
LucaGallinari Sep 3, 2026
fcd5496
Add two more generic extension-point events
LucaGallinari Sep 3, 2026
9471ba1
Document the two new extension-point events in the README
LucaGallinari Sep 3, 2026
0636f36
Migrate the order creation page body to a Twig Hook
LucaGallinari Sep 3, 2026
d61713f
Migrate the order preview page body to a Twig Hook
LucaGallinari Sep 3, 2026
c7369fd
Migrate the select-customer page cards to Twig Hooks
LucaGallinari Sep 3, 2026
9026a45
Update README/AGENTS.md for the completed Twig Hooks migration
LucaGallinari Sep 3, 2026
6d480d6
Validate the order form before advancing from create to preview step
LucaGallinari Sep 3, 2026
e0ace8f
Show validation errors for fields hidden on the order preview page
LucaGallinari Sep 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
**/*.log
**/*.md
**/*.php~
**/._*
**/.dockerignore
**/.DS_Store
**/.git/
**/.gitattributes
**/.github
**/.gitignore
**/.gitkeep
**/.gitmodules
**/.idea
**/Dockerfile
**/Thumbs.db
**/docker-compose*.yaml
**/docker-compose*.yml
.editorconfig
.php_cs.cache
.travis.yml
composer.phar
docker/mysql/data/
etc/build/*
node_modules/
var/*
vendor/
public/assets/
public/build/
public/bundles/
public/css/
public/js/
public/media/
82 changes: 82 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.feature]
indent_style = space
indent_size = 4

[*.js]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[*.neon]
indent_style = space
indent_size = 4

[*.php]
indent_style = space
indent_size = 4

[*.sh]
indent_style = space
indent_size = 4

[*.{yaml,yml}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[.babelrc]
indent_style = space
indent_size = 2

[.gitmodules]
indent_style = tab
indent_size = 4

[.php_cs{,.dist}]
indent_style = space
indent_size = 4

[composer.json]
indent_style = space
indent_size = 4

[package.json]
indent_style = space
indent_size = 2

[phpspec.yml{,.dist}]
indent_style = space
indent_size = 4

[phpstan.neon]
indent_style = space
indent_size = 4

[phpunit.xml{,.dist}]
indent_style = space
indent_size = 4
151 changes: 99 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build

on:
push: ~
push:
branches-ignore:
- 'dependabot/**'
pull_request: ~
release:
types: [created]
Expand All @@ -19,32 +21,33 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1"]
symfony: ["^4.4", "^5.4"]
sylius: ["~1.10.11", "~1.11.2"]
node: ["14.x"]
mysql: ["5.7", "8.0"]
php: ["8.4"]
symfony: ["^7.3"]
sylius: ["~2.2.0"]
node: ["22.x"]
mysql: ["8.4"]

env:
APP_ENV: test
BEHAT_BASE_URL: "https://127.0.0.1:8080/"
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?serverVersion=${{ matrix.mysql }}"

steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4

-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
extensions: intl, gd
tools: symfony
extensions: intl
tools: flex,symfony
coverage: none

-
name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node }}"

Expand All @@ -64,25 +67,17 @@ jobs:
run: php -v | head -n 1 | awk '{ print $2 }' > .php-version

-
name: Install certificates
run: symfony server:ca:install

-
name: Run Chrome Headless
run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &

-
name: Run webserver
run: (cd tests/Application && symfony server:start --port=8080 --dir=public --daemon)
name: Validate composer.json
run: composer validate --ansi --strict

-
name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

-
name: Cache Composer
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
Expand All @@ -93,7 +88,8 @@ jobs:
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
composer global config --no-plugins allow-plugins.symfony/flex true
composer config extra.symfony.require "${{ matrix.symfony }}"

-
Expand All @@ -103,16 +99,40 @@ jobs:

-
name: Install PHP dependencies
run: composer update --no-interaction
run: composer install --no-interaction

-
name: Validate container
run: vendor/bin/console lint:container

-
name: Run ECS
run: vendor/bin/ecs check

-
name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/

-
name: Run Psalm
run: vendor/bin/psalm

-
name: Run PHPSpec
run: vendor/bin/phpspec run --ansi -f progress --no-interaction

-
name: Run unit tests
run: vendor/bin/phpunit --colors=always --testsuite=unit

-
name: Get Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

-
name: Cache Yarn
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }}
Expand All @@ -121,61 +141,88 @@ jobs:

-
name: Install JS dependencies
run: (cd tests/Application && yarn install)
run: (cd vendor/sylius/test-application && yarn install)

-
name: Prepare test application database
run: |
(cd tests/Application && bin/console doctrine:database:create -vvv)
(cd tests/Application && bin/console doctrine:migrations:migrate -n -vvv -q)
vendor/bin/console doctrine:database:create -vvv
vendor/bin/console doctrine:schema:create -vvv

-
name: Validate database schema
run: vendor/bin/console doctrine:schema:validate

-
name: Prepare test application assets
run: |
(cd tests/Application && bin/console assets:install public -vvv)
(cd tests/Application && yarn build)
vendor/bin/console assets:install -vvv
(cd vendor/sylius/test-application && yarn build)

-
name: Prepare test application cache
run: (cd tests/Application && bin/console cache:warmup -vvv)
run: vendor/bin/console cache:warmup -vvv

-
name: Load fixtures in test application
run: (cd tests/Application && bin/console sylius:fixtures:load -n)

-
name: Validate composer.json
run: composer validate --ansi --strict

-
name: Validate database schema
run: (cd tests/Application && bin/console doctrine:schema:validate)
run: vendor/bin/console sylius:fixtures:load -n

-
name: Run security check
run: symfony security:check
name: Run Non-unit PHPUnit tests
run: vendor/bin/phpunit --colors=always --testsuite=non-unit

-
name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/
name: Install certificates
run: symfony server:ca:install || true

-
name: Run PHPSpec
run: vendor/bin/phpspec run --ansi -f progress --no-interaction
name: Run Chrome Headless
run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &

-
name: Run PHPUnit
run: vendor/bin/phpunit --colors=always
name: Run webserver
run: symfony server:start --port=8080 --daemon

-
name: Run Behat
run: vendor/bin/behat --colors --strict -vvv --no-interaction -f progress || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun
run: vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun

-
name: Upload Behat logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: Behat logs
name: "Behat logs - ${{ matrix.sylius }}-${{ github.run_id }}-${{ github.run_number }}"
path: etc/build/
if-no-files-found: ignore
compression-level: 6
overwrite: true

roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
env:
PHP_VERSION: 8.4
steps:
-
name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ env.PHP_VERSION }}"
extensions: intl
tools: flex,symfony
coverage: none

-
name: Install roave/backward-compatibility-check.
run: composer require --dev roave/backward-compatibility-check --no-plugins

-
name: Run roave/backward-compatibility-check.
run: vendor/bin/roave-backward-compatibility-check --format=github-actions
22 changes: 15 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
/bin/*
!/bin/.gitkeep

/vendor/
/var/
/node_modules/
/drivers/
/composer.lock
/docker/

/etc/build/*
!/etc/build/.gitkeep
!/etc/build/.gitignore

/tests/Application/yarn.lock
/.phpunit.result.cache
/behat.yml
/behat.sh
/phpunit.xml
/compose.override.yml
/compose.test.yml

/web/media
# Symfony CLI https://symfony.com/doc/current/setup/symfony_server.html#different-php-settings-per-project
/.php-version
/php.ini

/.phpunit.result.cache
/tests/TestApplication/.env.local
/tests/TestApplication/.env.*.local
Loading
Loading