Commit graph

40489 commits

Author SHA1 Message Date
Grzegorz Sadowski
b720639a24
Merge branch '2.1' into 2.2
* 2.1:
  Change application's version to v2.1.12-dev
  Generate changelog for v2.1.11
  Change application's version to v2.1.11
2026-01-20 12:52:29 +01:00
Grzegorz Sadowski
3f8d0c1906
Change application's version to v2.1.12-dev 2026-01-20 12:51:00 +01:00
Grzegorz Sadowski
ee37fd326a
Generate changelog for v2.1.11 2026-01-20 12:50:21 +01:00
Grzegorz Sadowski
8cd3f79a25
Change application's version to v2.1.11 2026-01-20 12:49:05 +01:00
Grzegorz Sadowski
b92fa2216d
Merge branch '2.1' into 2.2
* 2.1:
  Change application's version to v1.14.17-dev
  Generate changelog for v1.14.16
  Change application's version to v1.14.16
2026-01-20 12:48:30 +01:00
Grzegorz Sadowski
dda36b8d7f
Merge branch '1.14' into 2.1
* 1.14:
  Change application's version to v1.14.17-dev
  Generate changelog for v1.14.16
  Change application's version to v1.14.16
2026-01-20 12:47:43 +01:00
Grzegorz Sadowski
521e558b3d
Change application's version to v1.14.17-dev 2026-01-20 12:42:44 +01:00
Grzegorz Sadowski
af444857af
Generate changelog for v1.14.16 2026-01-20 12:42:23 +01:00
Grzegorz Sadowski
164a15543f
Change application's version to v1.14.16 2026-01-20 12:34:41 +01:00
Kamil Grygierzec
7ebb6fae70
[UPMERGE] 2.1 -> 2.2 (#18738)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-01-20 11:25:04 +01:00
Kamil Grygierzec
e7db9f691d
Bugfix/fix autocomplete in admin to be case insensitive (#18572)
This is a continuation of pull request
https://github.com/Sylius/Sylius/pull/18477
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | https://github.com/Sylius/Sylius/issues/18384
| License         | MIT

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Parent taxon autocomplete search is now case-insensitive for more
reliable results.

* **New Features**
* Admin taxon form returns richer autocomplete results for parent
selection.
  * Added UI actions to search and verify parent taxon results.
  * Support for creating taxons with explicit codes where needed.

* **Tests**
* New BDD tests covering case-insensitive parent taxon autocomplete and
related scenarios.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-20 10:50:14 +01:00
Kamil Grygierzec
ac5cb344f0
Add ternary operator to fix bug related with empty key (#18565)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | https://github.com/Sylius/Sylius/issues/17718
| License         | MIT

I reproduced error when chose nl_NL and ran command bin/console
sylius:install. Bug was caused lack translations for taxons.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Admin product list now correctly handles products whose main category
has no name — tooltips and category display no longer error or show
incorrect content.

* **Tests**
* Added a UI scenario and step coverage to verify browsing products with
unnamed main categories in the admin interface.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-20 10:49:11 +01:00
Kamil Grygierzec
07cea844a2
[UPMERGE] 1.14 -> 2.1 (#18739)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.1 -m "Resolve conflicts between 1.14 and 2.1"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-01-20 10:14:46 +01:00
TheMilek
78db173eaf
Resolve conflicts between 1.14 and 2.1 2026-01-20 09:56:37 +01:00
Tomasz Kaliński
6a94894c7e
Add fallback locale support to taxon product queries 2026-01-19 15:29:49 +01:00
Grzegorz Sadowski
14faf77bc9
TASK: [2.2] [UiBundle] adjust translations for admin password reset page (#18736)
| Q               | A
|-----------------|-----
| Branch?         | 2.2
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no/yes <!-- don't forget to update the UPGRADE-*.md
file -->
| Related tickets | fixes #X, partially #Y, mentioned in #Z
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

This PR adds the missing translation string for
`administration_reset_password` for `de_de` langauge makes it consistent
with the other DE languages.
2026-01-19 15:28:13 +01:00
Simon Krull
373895b133
TASK: [2.2] [UiBundle] adjust translations for admin password reset page 2026-01-19 15:19:09 +01:00
Kamil Grygierzec
84c8eaaa62
[UPMERGE] 1.14 -> 2.1 (#18723)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.1 -m "Resolve conflicts between 1.14 and 2.1"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-01-19 15:12:46 +01:00
TheMilek
ab6f423554
Resolve conflicts between 1.14 and 2.1 2026-01-19 14:53:08 +01:00
Grzegorz Sadowski
98558185f3
Fix typo in first_name.html.twig (#18711) 2026-01-19 14:37:52 +01:00
Luca
cd8cfd7281
Fix typo in first_name.html.twig 2026-01-19 14:35:30 +01:00
Grzegorz Sadowski
75b0d775b0
[DX] Improve AI contribution guidelines (#18708)
Expands `AGENTS.md` with practical reference paths and fills previously
empty sections.

Changes:
- Add Reference Files section with paths to entities, API Platform
configs, services, templates, tests, and migrations
- Document migration requirements: always create both MySQL and
PostgreSQL versions
- Fill PHPUnit, Behat, JavaScript sections with guidelines
- Add Common Mistakes to Avoid section
- Condense intro and remove redundant points
2026-01-19 14:34:25 +01:00
Grzegorz Sadowski
425eac2338
[Channel] Resolve localhost equivalents when matching channel by hostname (#18726)
When resolving channels by hostname, localhost, 127.0.0.1 and ::1 are
now treated as equivalents. If no channel is found for the exact
hostname but the hostname is one of these localhost variants, the
resolver will try the other variants.

Previously, Sylius did exact string comparison when matching channels by
hostname. This meant that a channel configured with `localhost` would
not be matched when accessing via `127.0.0.1`, and vice versa. This
caused friction in local development when browser URL and fixtures used
different hostname formats.

The fix adds fallback logic in `HostnameBasedRequestResolver` that
checks other localhost equivalents when:
1. No channel is found for the exact hostname
2. The hostname is one of the localhost equivalents (localhost,
127.0.0.1, ::1)
2026-01-19 14:31:11 +01:00
Grzegorz Sadowski
6da22f5d7e
[CS][DX] Refactor (#18735)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2026-01-19 14:22:28 +01:00
Grzegorz Sadowski
0a6b788edf
Add form help rendering to forms (#18369)
| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

Allows to add help to forms:
<img width="1083" height="1755" alt="image"
src="https://github.com/user-attachments/assets/3eaf475e-f812-4ecc-b720-e0ab630d3fcf"
/>
2026-01-19 07:50:26 +01:00
Sylius Bot
1e02dc3224 [CS][DX] Refactor 2026-01-17 02:35:07 +00:00
Rafał Jaskulski
0fe10471d6
Make PostgreSQL telemetry migration extend dedicated abstract (#18732)
| Q               | A
|-----------------|-----
| Branch?         | 1.14 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2026-01-16 15:09:56 +01:00
TheMilek
b198b5e6bb
Make PostgreSQL telemetry migration extend dedidcated abstract 2026-01-16 14:16:27 +01:00
TheMilek
9e45bfbc13
Add form_help in missing places 2026-01-16 13:57:28 +01:00
Kamil Grygierzec
2ede166a08
[API] Payment Request fix default action when IRI is given (#18722)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | none
| License         | MIT

## Description

This PR improves the handling of payment request actions by also
handling IRI payment method.

## Changes

### 1. Remove explicit action parameter from Behat tests
- Removed the hardcoded `action` field from payment request context in
Behat tests
- The action is already automatically determined based on the payment
method configuration

### 2. Enhanced PaymentRequestActionAwareContextBuilder
- Added IRI to identifier conversion support for `paymentMethodCode`
parameter
- Injected `IriToIdentifierConverterInterface` to handle IRI format
payment method codes
- When `paymentMethodCode` is provided as an IRI (e.g.,
`/api/v2/shop/payment-methods/code`), it's automatically converted to
the identifier before determining the default action
- This ensures the default action provider can correctly resolve the
action based on the payment method configuration

## Benefits

- **Improved flexibility**: Supports both direct payment method codes
and IRI references
- **Better consistency**: The default action is always determined from
the payment method configuration, reducing potential mismatches
- **Cleaner code**: Removes redundant action specifications from tests
and API calls

## Technical Details

The `PaymentRequestActionAwareContextBuilder` now:
1. Checks if the `paymentMethodCode` is an IRI
2. Converts it to an identifier if needed

This change maintains backward compatibility while adding support for
IRI-based payment method references.
2026-01-16 11:50:12 +01:00
TheMilek
60718c98bb
Add constuctor changes to upgrade file 2026-01-16 11:12:31 +01:00
Rafał Jaskulski
0ec47e718c
[UPMERGE] 2.1 -> 2.2 (#18728)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/2.2 -m "Resolve conflicts between 2.1 and 2.2"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2026-01-16 08:18:40 +01:00
Grzegorz Sadowski
e4aefc2709
[Composer] Remove outdated twig/twig conflicts from bundles (#18702)
Remove legacy `twig/twig` version conflicts that blocked users of
standalone bundles from upgrading to Twig 3.x:

- Remove `^3.0` conflict added in 2019, already removed in Sylius 2.0+
- Remove `^1.0` conflict (Twig 1.x reached EOL years ago)
- Keep `3.9.0` conflict as it's a specific buggy version documented in
`CONFLICTS.md`

Since Twig 2.x reached EOL in December 2023, these conflicts were
blocking users who use Sylius bundles standalone from upgrading.

Also adds `friendsofsymfony/rest-bundle` and `jms/serializer-bundle` to
UserBundle `require-dev` - they're used in functional tests but were
previously installed as transitive dependencies of
`sylius/resource-bundle` (moved from `require` to `require-dev` in
ResourceBundle 1.13).

Additionally adds conflict for `liip/imagine-bundle: 2.17.0` - this
version was released on 2026-01-05 and breaks container compilation when
AssetMapper is not used (unrelated to twig changes).

Affected bundles: AddressingBundle, CustomerBundle, CurrencyBundle,
InventoryBundle, LocaleBundle, MoneyBundle, OrderBundle, PaymentBundle,
PromotionBundle, ReviewBundle, ShippingBundle, TaxationBundle,
TaxonomyBundle, UiBundle, UserBundle

Closes #18700
2026-01-15 15:09:09 +01:00
TheMilek
fb749284d3
Restrict 1.11.x resource bundle for package tests with Symfony 5.4 and add upgrade file to inform about recommendations 2026-01-15 14:19:21 +01:00
Grzegorz Sadowski
9aa9696278
Bugfix/merged overrides missing operations (#18725)
| Q               | A
|-----------------|-----
| Branch?         | 1.14 <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
continuation of https://github.com/Sylius/Sylius/pull/16146
2026-01-15 14:15:41 +01:00
Grzegorz Sadowski
cde6f7043c
Fix ro PayumBundle Translation (#18366)
| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #X, partially #Y, mentioned in #Z
| License         | MIT

Fix the broken romanian plural translation. 
There are multiple other keys in the translation.
2026-01-15 14:14:41 +01:00
Grzegorz Sadowski
5ace9525c6
[FIXTURES] Fix menu taxon code (#16892)
| Q               | A
|-----------------|-----
| Branch?         | 1.13 <!-- see the comment below -->
| Bug fix?        | a bit
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

We need to adjust the code to make it consistent everywhere we use it
hardcoded in our test app
2026-01-15 14:14:11 +01:00
Francis Hilaire
7ea1c15e33
Merge branch 'fix-default-action' of https://github.com/Prometee/Sylius into fix-default-action 2026-01-15 13:30:53 +01:00
Francis Hilaire
562c7a69a0
Add test for IRI 2026-01-15 13:30:20 +01:00
Rafikooo
07d4f31248
[Channel] Resolve localhost equivalents when matching channel by hostname
When resolving channels by hostname, localhost, 127.0.0.1 and ::1 are now treated as equivalents. If no channel is found for the exact hostname but the hostname is one of these localhost variants, the resolver will try the other variants.

This improves local development experience when browser URL and fixtures use different formats (e.g. localhost in fixtures but 127.0.0.1 in browser).
2026-01-15 13:24:39 +01:00
Francis Hilaire
e31f75f03e
Update src/Sylius/Bundle/ApiBundle/Serializer/ContextBuilder/PaymentRequestActionAwareContextBuilder.php
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
2026-01-15 12:58:08 +01:00
Francis Hilaire
51731afba4
Fix URI, the full one was used instead of the partial one required 2026-01-15 10:48:56 +01:00
Francis Hilaire
d8a27eb2d4
Improve paymentMethodCode handling by converting it to identifier if IRI is given 2026-01-15 10:48:50 +01:00
Francis Hilaire
50b79a3df7
Remove not needed action since the default value will be auto set between capture or authorize 2026-01-15 10:48:44 +01:00
Kamil Grygierzec
3d5866e0df
Fix tests application error templates (#18721)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

When there is an error on Behat for example, the template is not ok
<img width="1437" height="358" alt="image"
src="https://github.com/user-attachments/assets/e84dfac5-371c-47e0-bccb-59306650c4a8"
/>
2026-01-15 10:20:39 +01:00
Kamil Grygierzec
4265c13e88
Fix menu taxon code 2026-01-15 08:47:05 +01:00
Kamil Grygierzec
e4d3df0dfe
[DX] Update branch aliases to 1.14-dev (#18707)
Updates the `branch-alias` in all `composer.json` files from `1.13-dev`
to `1.14-dev`.

Affects all bundles and components (41 files).
2026-01-14 17:05:36 +01:00
Rafikooo
2f3fdb3a51
[DX] Update branch aliases to 1.14-dev 2026-01-14 14:29:44 +01:00
TheMilek
e8ce73da70
Minor fix and extend the MetadataMerger tests 2026-01-14 14:08:12 +01:00
Jan Esser
eaca439f27
fix merging of data failes or has existing data go missing
in case certain xml keys are missing from extending config
like properties, item opteration, collection operations or resources
2026-01-14 12:14:24 +01:00