Skip to content

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Dec 22, 2025

What is this pull request for?

In a multi site environment, the languages have the
same code. Adding the site name helps to identify the
language per site.

Notable changes

Add a custom element and a view component to encapsulate behaviour and make it testable.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

The language select in picture descriptions
should be a testable component.

Signed-off-by: Thomas von Deyen <[email protected]>
Instead of an inline script tag we use a custom element
that handles the internal event handling much more reliable.

Signed-off-by: Thomas von Deyen <[email protected]>
In a multi site environment, the languages have the
same code. Adding the site name helps to identify the
language per site.

Signed-off-by: Thomas von Deyen <[email protected]>
@tvdeyen tvdeyen requested a review from a team as a code owner December 22, 2025 14:40
@tvdeyen tvdeyen added bug backport-to-8.0-stable Needs to be backported to 8.0-stable labels Dec 22, 2025
@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.21%. Comparing base (89ae8ab) to head (9547ddd).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3530   +/-   ##
=======================================
  Coverage   97.20%   97.21%           
=======================================
  Files         287      288    +1     
  Lines        7587     7608   +21     
=======================================
+ Hits         7375     7396   +21     
  Misses        212      212           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tvdeyen tvdeyen merged commit a715b27 into main Dec 23, 2025
28 of 30 checks passed
@tvdeyen tvdeyen deleted the picture-description-select branch December 23, 2025 11:25
@alchemycms-bot
Copy link

💔 All backports failed

Status Branch Result
8.0-stable Backport failed because of merge conflicts

You might need to backport the following PRs to 8.0-stable:
- Remove dialog sitemap css code
- Fix sitemap highlight color in dark mode
- Make create element dialog wider (#3445)
- Fix element icon hover for elements with warning (#3444)
- Fix select2 close icon visibility (#3443)

Manual backport

To create the backport manually run:

backport --pr 3530

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@alchemycms-ci-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
8.0-stable

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-8.0-stable Needs to be backported to 8.0-stable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants