-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMax Assets: Support the portrait marketing images #1873
PMax Assets: Support the portrait marketing images #1873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I tested locally and can see that the validation is working and the image gets cropped to the correct size.
Other things/opinions beyond this PR:
- I think the delete button looks too big compared with the preview images, what do you think? Or comparing with the Figma file, it seems that the preview images should be bigger.
- When I am in the editing asset section and I refresh the page, I get back to step one, shouldn't we get back to the editing asset section?
- Do you think we need the button "Scan for assets"? After I choose the Final URL, the only option possible is to scan for the assets, so I would expect to do this automatically.
js/src/data/types.js
Outdated
* @property {string[]} marketing_images The URLs of the landscape images. | ||
* @property {string[]} square_marketing_images The URLs of the square images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not introduced in this PR, and probably it was updated when I started to use the field types from the Google Ads library.
marketing_images
and square_marketing_images
should be in singular: marketing_image
and square_marketing_image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reminding me. Updated in 3736430.
js/src/data/types.js
Outdated
* @property {AssetEntity[]} [marketing_images] The URLs of the landscape images. | ||
* @property {AssetEntity[]} [square_marketing_images] The URLs of the square images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this. Fixed in 3736430.
…es of AssetsDictionary to align with the correct names. Address - #1873 (comment) - #1873 (comment)
@jorgemd24, thanks for the review. Could you provide the WP and WC versions you used for testing? From the screenshot, it seems that there were many styles that were overwritten or not applied to buttons and images. This might be a compatible issue or some styles were not loaded correctly for some reason. The styles on my local env look like this:
I guess you were on the campaign creation page. Only the campaign editing page will stay on the same step after refreshing the page. The creation page doesn't resume the current step because it doesn't keep the entered form values on the first step so it requires the user to re-fill from the first step.
If I understood it right, it tended to align with the same Card UI pattern of other similar features in GLA, so I think it should be fine. I will forward it to the designer to see if it needs to be adjusted. |
WP version: 6.1.1 Let me know if you can reproduce it with those versions, otherwise, I will look deeper into the issue.
It happens when I click on the editing campaign button, see this video: Screen.Capture.on.2023-02-09.at.11-30-04.mp4
👍 |
The conflict with the styling is with AutomateWoo 5.6.6 when I disable AW loads correctly. |
@jorgemd24, thanks for the seconde round and the more infomation!
You are right, it's a bug. I previously tested it with another "Edit" button on the campaign table, which is for demo purpose. 🤦♂️ I opened PR #1877 for this.
Nice finding! I guess it relates to #1391. |
… each marketing image type to make the sum of the maximum limits 20.
…es of AssetsDictionary to align with the correct names. Address - #1873 (comment) - #1873 (comment)
3736430
to
cbcabcc
Compare
Hi @jorgemd24, I got the update on this question.
After checking with the designer, the decision is to stay with the current UI, and here are the reasons copied from the conversation:
|
Thanks so much for the explanation @eason9487 ! |
Changes proposed in this Pull Request:
This PR implements the "Assets form" part of 📌 Assets form and related components in #1787.
The limits are adjusted to:
Screenshots:
📷 Added portrait marketing image asset and adjusted maximum limits
📷 Validation of the portrait marketing image asset
Detailed test instructions:
Additional details:
Changelog entry