Commit graph

39940 commits

Author SHA1 Message Date
Rafikooo
cfe2f1e458
[CI] Configure runtime mode to prevent error pages in tests 2025-11-27 11:47:49 +01:00
Grzegorz Sadowski
7fb953f517
[UPMERGE] 1.14 -> 2.1 (#18582)
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.

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

## Summary by CodeRabbit

* **New Features**
* Added product channel eligibility validation to prevent checkout when
a product is no longer assigned to the order's channel.

* **Bug Fixes**
* Disabled duplicate product review rating updates during acceptance
transitions.

* **Documentation**
  * Added audit ignore documentation for security advisories.

* **Chores**
* Updated user-facing error messaging to indicate product unavailability
across all supported languages.
* Updated dependency injection patterns with union types and nullable
parameters.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-26 14:41:15 +01:00
Rafikooo
b16caa06c0
Resolve conflicts between 1.14 and 2.1 2025-11-26 12:55:33 +01:00
Grzegorz Sadowski
9fb6015ef9
Add info about disabled callback for state machine sylius_product_review (#18580)
| Q               | A
|-----------------|-----
| Branch?         | 2.1 
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | https://github.com/Sylius/Sylius/issues/16120
| License         | MIT


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

* **Bug Fixes**
* Fixed duplicate updates of product review average ratings so ratings
are now updated once when a review is accepted.

* **Documentation**
* Added upgrade notes for v2.1.8 explaining the change to review
acceptance behavior to prevent duplicate rating calculations.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-26 12:53:13 +01:00
Grzegorz Sadowski
1abb49218e
Update UPGRADE-2.1.md 2025-11-26 12:52:45 +01:00
Michal Kaczmarek
121e3afc9d Add info about disabled callback for state machine sylius_product_review 2025-11-26 11:25:18 +01:00
Rafał Jaskulski
caf3fed403
Fix twice calculation rating review (#18567)
This is connected with https://github.com/Sylius/Sylius/pull/18574
| Q               | A
|-----------------|-----
| Branch?         | 1.14 
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | https://github.com/Sylius/Sylius/issues/16120
| License         | MIT


The \Sylius\Bundle\ReviewBundle\EventListener\ReviewChangeListener
(registered as Doctrine event listener) already handles rating
recalculation for all review changes (postPersist, postUpdate,
preRemove), making the
  state machine callback redundant.

  Solution

Disable the sylius_update_rating callback by adding disabled: true
instead of removing it entirely.

  Why disabled: true instead of removal?

1. No BC break - the updateFromReview() method called by this callback
remains intact, preserving the ReviewableRatingUpdaterInterface and
service definitions
2. Flexibility - users who rely on this callback (e.g., for custom
priority ordering with their own callbacks) can re-enable it in their
configuration with disabled: false
3. Transparency - the callback definition remains visible in
configuration, documenting what was disabled and why, which helps with
debugging and understanding the system's
  history
2025-11-26 10:57:38 +01:00
Michal Kaczmarek
0dcbc5efc4 Fix after review 2025-11-26 10:53:58 +01:00
Grzegorz Sadowski
a7215dba0d
[CI] Parametrize Behat commands in E2E workflows (#18573)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT

Refactored E2E workflow files to use environment variables for Behat
commands, significantly improving readability and maintainability.

All Behat command invocations now use parametrized variables defined in
the job `env` section:
- `BEHAT_BASE_CMD` - base command with common flags
- `BEHAT_*_TAGS` - test tags for different test suites
- `BEHAT_*_SUITES` - suite tags

Changes applied to:
- `ci_e2e-mysql.yaml` (3 jobs)
- `ci_e2e-mariadb.yaml` (1 job)
- `ci_e2e-pgsql.yaml` (1 job)
- `ci_e2e-unstable.yaml` (3 jobs)

This makes it much easier to modify Behat configurations and reduces
duplication across retry logic.

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

## Summary by CodeRabbit

* **Chores**
* Streamlined CI/CD testing workflows by introducing centralized,
parameterized configurations for test execution across multiple database
environments, reducing redundancy and improving consistency.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-26 10:49:05 +01:00
Michal Kaczmarek
9f02085d5d Add info about disabled callback to upgrade file 2025-11-26 10:45:53 +01:00
Rafał Jaskulski
47b4f82f8f
[CS][DX] Refactor (#18577)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2025-11-26 09:47:07 +01:00
Sylius Bot
a4d17db879 [CS][DX] Refactor 2025-11-26 02:34:56 +00:00
Rafał Jaskulski
78ab2121ec
Validate product's channel eligibility when finalizing an order (#18445)
| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Related tickets | https://github.com/Sylius/Sylius/issues/17568
| License         | MIT

When finalizing an order, while checking whether products and variants
are "isEnabled," a check has also been added to see if they are assigned
to the current channel.
2025-11-25 13:42:23 +01:00
Rafikooo
104c513897
[CI] Parametrize Behat commands in E2E workflows 2025-11-25 13:02:08 +01:00
Rafał Jaskulski
37117981eb
[CS][DX] Refactor (#18570)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2025-11-25 09:07:26 +01:00
Grzegorz Sadowski
c09e2bc603
Bundle UX Icons locally instead of using Iconify API (#18557)
Fixes test failures when API is unavailable (third-party issues or
offline development).

**Problem:**
Tests failed with `HTTP/2 500 returned for
https://api.iconify.design/collections` when API was down. Default
Symfony UX Icons config uses on-demand API mode, causing failures
without network.

**Solution:**
Bundle commonly-used icons locally (`tabler:*` for UI, most popular
`flagpack:*` flags) using `icon_sets` configuration in
`SyliusUiExtension`. Icons are registered programmatically with
`__DIR__` paths that work correctly both in development and when bundle
is in vendor directory. Iconify API enabled as fallback for less common
country flags dynamically added by admins.

**Implementation:**
- Icons configured via `PrependExtensionInterface` in
`SyliusUiExtension`
- Uses `icon_sets` with absolute paths resolved at runtime (`__DIR__`)
- Removed YAML config that used `%kernel.project_dir%` (incorrect for
vendor bundles)

**Country flags:**
Default Sylius fixtures include 12 countries (US, FR, DE, AU, CA, MX,
NZ, PT, ES, CN, GB, PL). We bundle these plus 4 popular ones (JP, IT,
BR, IN) locally. For other countries added by admins, flags load via
Iconify API fallback.

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

* **Chores**
  * Enabled Iconify-based icon management for the UI.
  * Added Tabler and Flagpack icon sets for richer visuals.
  * Applied a default icon styling class ("icon") across UI icons.
* Configured the system to ignore missing icons gracefully, preventing
runtime errors.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-25 06:51:50 +01:00
Grzegorz Sadowski
ecea5cfcf6
[CI] Add PHP 8.5 support to workflows (#18563)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT

Added PHP 8.5 (released 2025-11-20) support to CI workflows.


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

## Summary by CodeRabbit

* **Chores**
* Updated CI/CD workflows to support PHP 8.5 testing across multiple
configurations (static-checks, e2e, frontend/packages).
* Configured architecture checks to skip on PHP 8.5 while expanding test
coverage to the latest PHP version.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-25 06:48:38 +01:00
Sylius Bot
4f7a27185c [CS][DX] Refactor 2025-11-25 02:33:52 +00:00
Tomasz Kaliński
a062a250c1
Add channel eligibility validation during order completion 2025-11-24 17:39:32 +01:00
Rafikooo
00a3a55141
[UiBundle] Move UX Icons config to Extension with correct paths 2025-11-24 17:07:04 +01:00
Rafał Jaskulski
8275ac3333
Solves the problem with changing product image (#18478)
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| License         | MIT

Fixes:


https://github.com/user-attachments/assets/f58ab45a-0277-473a-a0c9-b40d3257d42f
2025-11-24 16:09:17 +01:00
Michal Kaczmarek
fbb68dd58a Fix twice calculation rating review 2025-11-24 15:59:54 +01:00
Rafał Jaskulski
581b1c55ec
Fix product creation by admin api (#18484)
This is a continuation of pull request
https://github.com/Sylius/Sylius/pull/18417.

| 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.0 branch
 - Features and deprecations must be submitted against the 2.1 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 is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved product attribute handling during API denormalization:
attribute info is now consistently used for validation and value
processing, and attribute keys are ensured to be passed first to
downstream processing to prevent misordering and data inconsistencies.

* **Tests**
* Added a test that verifies the attribute key is reordered to be first
during denormalization to guard against regressions.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-24 15:51:34 +01:00
Rafikooo
d892ec076d
[CI] Exclude PHPArkitect checks for PHP 8.5 2025-11-24 14:34:39 +01:00
Rafikooo
d07e386565
[CI] Add PHP 8.5 support to workflows 2025-11-24 14:34:39 +01:00
Norbert Glanc
bc29770cba
Fix product creation by admin API
Ensure attribute is set before setValue() is called by reordering the data
array to ensure 'attribute' key comes first during denormalization.

This prevents BadMethodCallException when API Platform processes attribute
values in JSON key order.

Co-authored-by: Mateusz <mateusz@rustle.pl>
2025-11-21 18:41:14 +01:00
Rafał Jaskulski
5539dae490
Cleanup configuration shipping method after channel deletion (#18512)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets |
| License         | MIT

Ref:
```
After having deleted a channel in the admin view, I got form errors when editing the shipping methods.

I found out that the “configuration” column of the “sylius_shipping_method” table still contains the channel data as json, e.g.

{"WEB_EUR": {"amount": 960}, "FASHION_WEB": {"amount": 782}}

although both channels are deleted.

The users of our software need to delete the channel without errors.

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

* **New Features**
  * Find shipping methods by channel-specific configuration.
  * Automatically remove channel configuration entries from shipping methods when a channel is deleted.
  * Added a channel-aware shipping-method updater and wired it into the channel deletion workflow.

* **Tests**
  * Added tests for shipping-method lookup by channel code.
  * Added tests for channel-configuration removal (including flush behavior and edge cases).
  * Added fixtures for shipping methods and zones used by tests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-21 13:24:12 +01:00
Michal Kaczmarek
a6a415dada Fix after review 2025-11-19 13:53:34 +01:00
Michal Kaczmarek
c9b2599d63 Cleanup configuration shipping method after channel deletion 2025-11-19 12:39:23 +01:00
Grzegorz Sadowski
ba50603f09
Fix text overflow in category navigation menus (#18541)
## Summary

Fixes text overflow issues when category names are too long in
navigation menus across all resolutions.

**Implementation:**
- Created reusable SCSS mixins for text-overflow handling
(`mixins/_text-truncate.scss`)
- Refactored all text-overflow CSS to use mixins for better
maintainability
- Improved breadcrumb `max-width` to use responsive `min(300px, 30vw)`
instead of fixed `300px`

**Affected areas:**
- ShopBundle: navigation dropdown (all resolutions), mobile offcanvas
menu, category page headers
- AdminBundle: taxon tree sidebar, breadcrumbs

Text is now properly truncated with ellipsis (...) and users can see
full names via tooltip on hover.

Originally reported issue:
<img width="818" height="388" alt="image"
src="https://github.com/user-attachments/assets/a184a860-ce03-4ece-bdfe-9292d1ed375a"
/>

I enhanced a few other places as well:

Before:
<img width="1438" height="891" alt="image"
src="https://github.com/user-attachments/assets/e4b8dced-5e0e-4fdf-bb46-faf4ecb2081b"
/>
After:
<img width="1481" height="916" alt="image"
src="https://github.com/user-attachments/assets/dfd09dc5-f187-4abd-901d-2c30ea979017"
/>

---
Before:
<img width="807" height="772" alt="image"
src="https://github.com/user-attachments/assets/d781ae3a-0118-409a-8b39-24def88af256"
/>
After:
<img width="859" height="752" alt="image"
src="https://github.com/user-attachments/assets/a4fdf0f0-0cb5-4a09-9d0f-099fb216e591"
/>

Before:
<img width="1282" height="808" alt="image"
src="https://github.com/user-attachments/assets/2e31a2aa-a3a5-45f0-a424-b0c0d731f53f"
/>
After:
<img width="1376" height="851" alt="image"
src="https://github.com/user-attachments/assets/d5477492-643a-4dde-8466-2c1ec2632858"
/>


Other:
<img width="890" height="874" alt="image"
src="https://github.com/user-attachments/assets/b5bc6488-c449-4d21-91cd-173d23e46b9c"
/>
<img width="312" height="513" alt="image"
src="https://github.com/user-attachments/assets/1ef36b3d-691b-44d3-b26f-102bad5ecda7"
/>

<img width="1446" height="602" alt="image"
src="https://github.com/user-attachments/assets/880cee99-fb07-43cb-94a3-ff4f3da6e56f"
/>


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

## Summary by CodeRabbit

* **New Features**
* Added text truncation and responsive text-wrapping for long text in
breadcrumbs, navigation menus, and tree views.
  * Added tooltip support for navigation items and breadcrumb elements.

* **Bug Fixes**
* Improved text overflow handling across UI components for better
readability.
  * Enhanced HTML escaping for improved security.
  * Icon error handling now surfaces missing icons as exceptions.

* **Style**
* Increased dropdown menu width and improved responsive behavior across
breakpoints.
  * Optimized text display in product headers and offcanvas navigation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-19 11:04:43 +01:00
Rafikooo
0dcd9734db
[UiBundle] Add most common country flag icons with Iconify API fallback for missing flags 2025-11-18 18:59:48 +01:00
Rafikooo
391015a71c
Bundle Symfony UX Icons locally instead of using Iconify API 2025-11-18 17:27:41 +01:00
Rafikooo
b1ec4053b7
Fix text overflow in category navigation menus
- Add reusable SCSS mixins for text truncation (ellipsis, flex)
- Fix long category names in navbar dropdown (desktop: 1-line ellipsis, mobile: 2-line wrap)
- Fix taxon tree overflow in admin sidebar using flex truncation
- Fix XSS vulnerability in taxon tree by escaping HTML
- Remove global h1 overflow rule, use .text-break class instead
- Ensure offcanvas dropdown menu has no border on mobile/tablet
2025-11-18 14:34:56 +01:00
Rafał Jaskulski
c7cb75f310
Add md file with description ignored CVE and fix format (#18553)
| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | #18549
| License         | MIT

Details in file AUDIT-IGNORE.md
2025-11-17 14:18:56 +01:00
Michal Kaczmarek
97fdc9f544 Add md file with description ignored CVE and fix format 2025-11-17 13:05:07 +01:00
Rafał Jaskulski
ad251257b2
Add deprecation note to sylius_admin_address_log_entry configuration (#18488)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | -
| License         | MIT

Adding a note that this configuration is no longer used so that people
don't get confused when they edit it and nothing happens.

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

* **Deprecations**
* Address log entry grid rendering is deprecated and will be removed in
Sylius 3.0. Current behavior is unchanged for now; only deprecation
notices were added. Users should review and prepare their configurations
for upcoming removal.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-14 22:27:02 +01:00
Rafał Jaskulski
afca44fa93
Add filtering cve (#18549)
| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

Fix build CI through added a few cve to ignore section in file
composer.json.
  
1. PKSA-yhcn-xrg3-68b1 (Twig - CVE-2024-45411)

Sandbox bypass - Attackers can execute dangerous code in Twig templates
by bypassing sandbox security restrictions.
  - Fixed in: Twig 1.44.8, 2.16.1, 3.14.0

2. PKSA-2wrf-1xmk-1pky (Twig - CVE-2024-51755)

Access to protected data - Using the ?? operator and array access allows
reading private data without security policy checks.
  - Fixed in: Twig 3.11.2, 3.14.1

3. PKSA-gs8r-6kz6-pp56 (likely API Platform)

GraphQL data exposure - Improper caching in GraphQL allows access to
other users' data or bypassing operation security.
  - Related to API Platform GraphQL security issues
  - Fixed in: API Platform 3.4.17, 4.0.22

4. PKSA-gnn4-pxdg-q76m (likely API Platform or Twig)

Exception details disclosure - Error messages may contain sensitive
system information visible in JSON responses.
  - Related to API Platform error handling
  - Fixed in: API Platform 3.2.5+

Details:


https://www.cvedetails.com/vulnerability-list/vendor_id-19033/product_id-48690/Symfony-Twig.html
https://api-platform.com/docs/extra/security/
2025-11-14 17:38:50 +01:00
Michal Kaczmarek
5ecf8c421f Add filtering cve 2025-11-14 14:13:55 +01:00
Michał Pysiak
8aed2ae1f7
Remove unused RuntimeException import from RoboFile (#18548)
Fixes ECS error:
```
ERROR: The use statement with non-compound name 'RuntimeException' has no effect 
in /home/runner/work/Sylius/Sylius/RoboFile.php:18

Error: Process completed with exit code 123.
```

Changes:
- Removed unused `use RuntimeException;` import
- Used fully qualified `\RuntimeException` where needed
- Used `\PHP_EOL` instead of `PHP_EOL` for consistency
2025-11-14 13:20:45 +01:00
Rafikooo
428d3cd2d4
Remove unused RuntimeException import from RoboFile 2025-11-14 13:17:02 +01:00
Rafał Jaskulski
5154e37acc
BUGFIX: [2.0] [AdminBundle] add label option too CustomerType form class to load translations (#18483)
| Q               | A
|-----------------|-----
| Branch?         | 2.1 <!-- see the comment below -->
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | fixes #18482, partially #Y, mentioned in #Z
| License         | MIT

As described in #18482 i added the `label` key too the options for the
`firstName` and `lastName` childs of the CustomerType form class so that
the translations for `sylius.form.customer.first_name` /
`sylius.form.customer.last_name` are correctly displayed again when
creating/updating a customer in the sylius backend.
2025-11-14 11:21:01 +01:00
Grzegorz Sadowski
83cb436ef8
[CI] Remove DOCTRINE_ORM_VERSION from packages workflow (#18545)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

1. Removes `DOCTRINE_ORM_VERSION` support from packages CI workflow as
we no longer use it.
2. Refactors `RoboFile` slightly.
2025-11-14 08:04:57 +01:00
Rafikooo
9d5120a05b
Remove DOCTRINE_ORM_VERSION support from packages CI
- Remove ORM version environment variable and related logic
- Fix GitHub Actions group closing (move endGroup inside loop)
- Add RuntimeException import and remove unnecessary qualifiers
- Simplify exit condition and remove redundant null check
2025-11-13 17:11:37 +01:00
Grzegorz Sadowski
3cb0eb251b
Fix Symfony 7.4 compatibility (#18542)
Fixes Symfony 7.4 compatibility issue in PHPUnit tests where
KernelBrowser tests fail because error renderer selection changed.

## Problem

Symfony 7.4 introduced `RuntimeModeErrorRendererSelector` in
FrameworkBundle that selects error renderer based on runtime mode:
- CLI context → plain text error output
- Web context → HTML error pages

PHPUnit runs in CLI, so Symfony 7.4 renders plain text errors. But
`KernelBrowser` simulates web requests and tests expect HTML error
pages, causing failures like:

```
Failed asserting that 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException...' 
contains "The page you are looking for does not exist."
```

Tests expected HTML but got plain text exception dumps.

## Solution

Set `APP_RUNTIME_MODE=web=1` in `phpunit.xml.dist` to force web mode for
all PHPUnit tests.

This env var was introduced in Symfony 6.4 and sets the
`kernel.runtime_mode.web` parameter:
- Format: query string `web=1&worker=0` 
- `web=1` → parsed to `kernel.runtime_mode.web: true`
- Backward compatible: exists in Symfony 6.4 but only affects error
rendering in 7.4+

## Why this approach vs config parameter?

**Considered alternatives:**
1.  `kernel.runtime_mode.web: true` in
`config/packages/test/_sylius.yaml` - global, less flexible
2.  `APP_RUNTIME_MODE=web=1` in `phpunit.xml.dist` - proper Symfony
mechanism, test-level control

The env var approach is more idiomatic and allows per-test override if
needed.

## References

- Symfony commit introducing RuntimeModeErrorRendererSelector:
0681ef3b82
- kernel.runtime_mode docs:
https://symfony.com/doc/current/reference/configuration/kernel.html


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

## Summary by CodeRabbit

* **Chores**
* Updated test configuration to explicitly set the runtime mode to web
during testing, ensuring consistent error rendering behavior in web
mode.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-13 15:05:20 +01:00
Rafikooo
27ad875f1e
Fix Symfony 7.4 PHPUnit tests: set APP_RUNTIME_MODE=web=1 for KernelBrowser compatibility 2025-11-13 11:50:33 +01:00
Jan Góralski
69ec160dbe
BUGFIX: [2.1] [AdminBundle] adjust z-index in side navigation to prevent overlapping with header (#18517)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #18514, partially #Y, mentioned in #Z
| License         | MIT


This pull request adjusts the `z-index` for the side_navigation. Because
currently when you have many content on a page where the side_navigation
is used, and its scrollable, the side navigation starts collapsing with
the header. This was because the `z-index` was too high.

## Before:

<img width="1242" height="1189" alt="image"
src="https://github.com/user-attachments/assets/05e68e14-0587-4891-96e2-3d9823591238"
/>

## After:

<img width="1232" height="1131" alt="image"
src="https://github.com/user-attachments/assets/07520f68-2257-4ea6-9d9a-3332cb4ad79d"
/>



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

## Summary by CodeRabbit

* **Style**
* Fixed side navigation stacking order to ensure it displays correctly
above other page elements, preventing visual overlap issues.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-07 12:08:56 +01:00
Simon Krull
0a28fd31df BUGFIX: [2.1] adjust z-index in side navigation to prevent overlapping 2025-11-06 17:50:15 +01:00
mamazu
564ccf17e3 Add deprecation note to sylius_admin_address_log_entry configuration 2025-11-06 16:04:52 +01:00
Jan Góralski
699104063d
TASK: [2.1] [AdminBundle] [CoreBundle] [UiBundle] various missing german translations added (#18498)
| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | fixes #X, partially #Y, mentioned in #Z
| License         | MIT

This PR adds missing translations for german for various places in the
Sylius admin.

For the existing keys i checked also the german CH and german AT files
to make sure that the existing translations for the respective keys are
consistent/the same.


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

## Summary by CodeRabbit

* **Localization**
* Added descriptive label to the provinces field selector for improved
form usability
* Extended German translations with new localization keys for checkout
currency selection, channel pricing options, password reset fields, and
account credentials management

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-05 09:51:44 +01:00
Rafał Jaskulski
1c781f77c0
[CS][DX] Refactor (#18510)
This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
2025-11-04 13:00:24 +01:00