Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove product images duplication#18380

Merged
Rafikooo merged 3 commits into
Sylius:1.14from
Glancu:fix/prodcut-images-duplication-1.14
Oct 2, 2025
Merged

Remove product images duplication#18380
Rafikooo merged 3 commits into
Sylius:1.14from
Glancu:fix/prodcut-images-duplication-1.14

Conversation

@Glancu
Copy link
Copy Markdown
Contributor

@Glancu Glancu commented Sep 17, 2025

Q A
Branch? 1.14
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #16771
License MIT

@Glancu Glancu requested a review from a team as a code owner September 17, 2025 12:10
@probot-autolabeler probot-autolabeler Bot added the Shop ShopBundle related issues and PRs. label Sep 17, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Sep 17, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 17, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

@Rafikooo Rafikooo linked an issue Sep 22, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@Rafikooo Rafikooo left a comment

Choose a reason for hiding this comment

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

Here are the issues I encountered:

  1. If a product has only one image, it cannot be clicked to open in full-screen mode, even though the cursor: pointer CSS class suggests that interaction is possible.
  2. Sylius provides a mechanism to bind images to specific variants (see the configurable product edit page in the admin panel). For example, if variant 1 is linked to image 1 and variant 2 to image 2, when you visit the product page, switch to variant 2, and then click the image, the lightbox still opens image 1 instead of image 2.
  3. It would be more robust to use delegated events on document instead of binding directly to #main-image, and the code can be simplified without wrapping it in an extra named function.

@Rafikooo Rafikooo merged commit f43a51e into Sylius:1.14 Oct 2, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Shop ShopBundle related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First image being displayed 2 times on the image view slider!

3 participants