magento / magento2-page-builder

Magento2 PageBuilder
Other
79 stars 59 forks source link

Community - Width & Height attribute - Pagebuilder image #767 #847

Closed aj-prajapati closed 4 months ago

aj-prajapati commented 1 year ago

Width and Height attribute added for Pagebuilder image element

https://github.com/magento/magento2-page-builder/issues/767

Description (*)

Story

Bug

Task

Fixed Issues (if relevant)

  1. magento/magento2-page-builder#: Issue title

Builds

Related Pull Requests

https://github.com/magento-commerce/magento2-infrastructure/pull/1880

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Checklist

Resolved issues:

  1. [x] resolves magento/magento2-page-builder#867: Width & Height attribute - Pagebuilder image #767
larsmbm commented 11 months ago

Hello @aj-prajapati

Thanks for making this code. We do use it. Although we did add code for loading attribute as wel. We think it's a good to at it to you merge request.

This is the code we made:

pagebuilder_image_form.xml `

text image_attribute_loading Place the value lazy on images that are below the fold on desktop for better page speed performance.
        <formElements>
            <select>
                <settings>
                    <options>
                        <option name="eager" xsi:type="array">
                            <item name="value" xsi:type="string">eager</item>
                            <item name="label" xsi:type="string">eager</item>
                        </option>
                        <option name="lazy" xsi:type="array">
                            <item name="value" xsi:type="string">lazy</item>
                            <item name="label" xsi:type="string">lazy</item>
                        </option>
                    </options>
                    <caption translate="true">Select the correct loading method for the image.</caption>
                </settings>
            </select>
        </formElements>
    </field>`

`

text mobile_image_attribute_loading Place the value lazy on images that are below the fold on mobile for better page speed performance.
        <formElements>
            <select>
                <settings>
                    <options>
                        <option name="eager" xsi:type="array">
                            <item name="value" xsi:type="string">eager</item>
                            <item name="label" xsi:type="string">eager</item>
                        </option>
                        <option name="lazy" xsi:type="array">
                            <item name="value" xsi:type="string">lazy</item>
                            <item name="label" xsi:type="string">lazy</item>
                        </option>
                    </options>
                    <caption translate="true">Select the correct loading method for the image.</caption>
                </settings>
            </select>
        </formElements>
    </field>`

image.xml <attribute name="image_attribute_loading" source="loading"/> <attribute name="mobile_image_attribute_loading" source="loading"/>

ImageData.xml `

Loading general image_attribute_loading eager ` ` Loading general mobile_image_attribute_loading eager `
engcom-Hotel commented 8 months ago

@magento run all tests

magento-automated-testing[bot] commented 8 months ago

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

engcom-Hotel commented 7 months ago

@magento run all tests

engcom-Hotel commented 6 months ago

We are picking this PR for further development

engcom-Hotel commented 6 months ago

@magento create issue

larsmbm commented 6 months ago

Hello @engcom-Hotel,

Great that this issue is picked up for further development :) I do question will the lazy loading attribute option be added as wel? Like my comment suggest in this ticket earlier.

Thank you in advance.

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 6 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Magento Health Index, Performance Acceptance Tests, Semantic Version Checker, Unit Tests, WebAPI Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests, WebAPI Tests, Integration Tests

engcom-Hotel commented 5 months ago

@magento run WebAPI Tests, Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Magento Health Index, Performance Acceptance Tests, Semantic Version Checker, Unit Tests

engcom-Hotel commented 5 months ago

@magento run WebAPI Tests, Functional Tests B2B, Functional Tests EE, Magento Health Index, Semantic Version Checker

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Magento Health Index, Performance Acceptance Tests, Semantic Version Checker, Unit Tests, WebAPI Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Static Tests

engcom-Hotel commented 5 months ago

@magento run Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Magento Health Index, Performance Acceptance Tests, Semantic Version Checker, Unit Tests, WebAPI Tests

engcom-Hotel commented 5 months ago

It seems the bot moved it to Changes Requested, moving back to Pending Review

engcom-Bravo commented 4 months ago

@magento run all tests

engcom-Bravo commented 4 months ago

@magento give me test instance

magento-deployment-service[bot] commented 4 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 4 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://d1a442a3dd69c2b3868e7229c0e5eebc.instances-prod.magento-community.engineering Admin access: https://d1a442a3dd69c2b3868e7229c0e5eebc.instances-prod.magento-community.engineering/admin_9df8 Login: 06e6d262 Password: 2875e3350d04

engcom-Bravo commented 4 months ago

Hi @aj-prajapati,

Thanks for the collaboration & contribution!

:heavy_check_mark: QA Passed

Preconditions:

Steps to reproduce

Before: :heavy_multiplication_x: 

Screenshot 2024-05-08 at 12 20 44

After: :heavy_check_mark:  

New-Pages-Elements-Content-Magento-Admin

Screenshot 2024-05-08 at 14 40 52 Screenshot 2024-05-08 at 14 41 44

Builds are failed. Hence, moving this PR to Extended Testing.

Thanks.

engcom-Hotel commented 4 months ago

@magento run Functional Tests B2B, Functional Tests CE, WebAPI Tests

engcom-Hotel commented 4 months ago

@magento run Functional Tests B2B, WebAPI Tests

engcom-Hotel commented 4 months ago

@magento run Functional Tests B2B, WebAPI Tests