-
Notifications
You must be signed in to change notification settings - Fork 2k
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
791: Campaign details page #87744
791: Campaign details page #87744
Conversation
… add/woo-express-blaze-784
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.
Hello @ernestoSk13, I did another review/test and found some other details in the page (I added some comments for those).
In some medium screens, the header shows both of the buttons, but they are not aligned to the right, and have no gap between them
const overallSpendingFormatted = `$${ formatCents( total_budget_used || 0 ) }`; | ||
const deliveryEstimateFormatted = getCampaignEstimatedImpressions( display_delivery_estimate ); | ||
const campaignTitleFormatted = title || __( 'Untitled' ); | ||
const campaignCreatedFormatted = moment.utc( created_at ).format( 'MMMM DD, YYYY' ); | ||
const devicesListFormatted = devicesList ? `${ devicesList }` : __( 'All' ); |
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.
This is currently a valid target option, we shouldn't remove it from the page. I think it's OK to put in above or under Languages.
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.
Hi @ernestoSk13, with the last update we lose this targeting option. It is still a valid option, I think we need to include it in the final details.
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
client/my-sites/promote-post-i2/components/campaign-item-details/index.tsx
Outdated
Show resolved
Hide resolved
some comments from me as well not sure if this is ok and whether we should just have a breakpoint so that the labels should display in mobile one on top of the other (rather than just allowing the text to flow to different lines) same as below.. not sure if this is ok .. looks like the text on the left in relation to the button is not aligned or something is off |
hi @sbarbosa @therocket-gr I've fixed this behavior and another minor UI issues :) thanks for your review |
hi @sbarbosa I've cleaned the scss and the index file. The mobile views should be working now too :) |
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.
Nice work @ernestoSk13, the page adapts very well to the different screens now.
Great job!
I only find a comment related to the device target list. With the last changes, we lose that data, and still remains a valid targeting option in the Create campaign widget.
const overallSpendingFormatted = `$${ formatCents( total_budget_used || 0 ) }`; | ||
const deliveryEstimateFormatted = getCampaignEstimatedImpressions( display_delivery_estimate ); | ||
const campaignTitleFormatted = title || __( 'Untitled' ); | ||
const campaignCreatedFormatted = moment.utc( created_at ).format( 'MMMM DD, YYYY' ); | ||
const devicesListFormatted = devicesList ? `${ devicesList }` : __( 'All' ); |
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.
Hi @ernestoSk13, with the last update we lose this targeting option. It is still a valid option, I think we need to include it in the final details.
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.
everything seems ok to me now (i will approve even though i see a comment by @sbarbosa.. )
nice work
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 the changes! The PR looks good 👍
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/11500566 Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @ernestoSk13 for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Related to #
Proposed Changes
Testing Instructions
NOTE: Some elements like the CTA Button or the Weekly total row, are not included in this PR. Also the Preview button is still unclear where should we place it
#64626
Screenshots
WPCom blog
![Screenshot 2024-02-21 at 6 57 00 p m](https://private-user-images.githubusercontent.com/5014402/306818224-029c5fd2-170e-4554-97c1-61c73ff6381f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjAzMDAsIm5iZiI6MTcyMDc2MDAwMCwicGF0aCI6Ii81MDE0NDAyLzMwNjgxODIyNC0wMjljNWZkMi0xNzBlLTQ1NTQtOTdjMS02MWM3M2ZmNjM4MWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTJUMDQ1MzIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjUzNmZjZGQ1OWY0ZjIzYjYxNDEzNDZmNTkxNWU1MTQyODhlMGFiM2IyODBhM2YwMzQ4Y2JjYWJmOGRhODk3MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ZiTOA8Ez9Z4u6lfpG6uq22tpOe3TXaAIVMitxZ-RmyQ)
![Screenshot 2024-02-21 at 6 57 07 p m](https://private-user-images.githubusercontent.com/5014402/306818225-9631a017-7f6b-431f-9a16-d50187d6fa7f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjAzMDAsIm5iZiI6MTcyMDc2MDAwMCwicGF0aCI6Ii81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![Screenshot 2024-02-21 at 6 57 51 p m](https://private-user-images.githubusercontent.com/5014402/306818300-3954d9c7-d164-45c8-9407-8f521330afa8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjAzMDAsIm5iZiI6MTcyMDc2MDAwMCwicGF0aCI6Ii81MDE0NDAyLzMwNjgxODMwMC0zOTU0ZDljNy1kMTY0LTQ1YzgtOTQwNy04ZjUyMTMzMGFmYTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTJUMDQ1MzIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjdkZGRkNTU0OTAzYmVmMDVjNDUwMmQyYzgyZmQ5YzdlNTJlNTI1NTYwYzg0MDYyOWQ2OGFhNDUyYzUzNDgxYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TcoyFcJ76FhSCxaT0VZM3D7tT5j5w_y98OSqQ-lGxNo)
![Screenshot 2024-02-21 at 6 57 43 p m](https://private-user-images.githubusercontent.com/5014402/306818302-b8bf0583-d3e7-4bd8-a756-12c286916d80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjAzMDAsIm5iZiI6MTcyMDc2MDAwMCwicGF0aCI6Ii81MDE0NDAyLzMwNjgxODMwMi1iOGJmMDU4My1kM2U3LTRiZDgtYTc1Ni0xMmMyODY5MTZkODAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTJUMDQ1MzIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGE2NWQ2YmNkNjljN2ZjZDY3ZjhiYWQ3YTRiNjYzYjUwNzYzNGU1YTEwY2RiYWRhNmNiMGNlODEwYTZhZmZkYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.blCRO424P00tUHwquCTrfSJPhw40ZgSjmANnvOB90Mk)
Pre-merge Checklist