Skip to content
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

Get started page UX improvements: add customer quotes card #1449

Conversation

ianlin
Copy link
Member

@ianlin ianlin commented Apr 27, 2022

Changes proposed in this Pull Request:

Part of #1392, this PR adds the customer quotes card to the new get started page.

Design for desktop: eQ9O4m2flzrcAiDMXkOW0m-fi-7350%3A121231
Design for mobile: eQ9O4m2flzrcAiDMXkOW0m-fi-7476%3A123025

Screenshots:

Desktop

Screenshot 2022-04-27 at 18 47 38

Mobile

Screenshot 2022-04-27 at 18 48 29

Detailed test instructions:

  1. Go to GLA's get started page: https://domain.test/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fstart
  2. Check the fourth card of the get started page, the UI should align with the design.

Changelog entry

Update - Add the customer quotes card for UX improvements on get started page.

@ianlin ianlin added the type: enhancement The issue is a request for an enhancement. label Apr 27, 2022
@ianlin ianlin requested a review from a team April 27, 2022 10:52
@ianlin ianlin self-assigned this Apr 27, 2022
@@ -14,6 +15,7 @@ const GetStartedPage = () => {
<GetStartedWithVideoCard />
<BenefitsCard />
<FeaturesCard />
<CaseStudiesCard />
Copy link
Contributor

Choose a reason for hiding this comment

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

💅

CaseStudies? In this case I guess it will be more accurate to use CustomerQuotes or Testimonials.

Copy link
Member Author

@ianlin ianlin Apr 28, 2022

Choose a reason for hiding this comment

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

Both terms of case studies and customer quotes appear in the design brief document in this post: pcTzPl-i7-p2#design-requirements. But I agree that customer quotes is more straightforward, updated in ca06c61, thanks!

Comment on lines 2 to 12
// Adjust <CardHeader> imported from @wordpress/components.
// Repeat selector to make it higher priority.
.components-card__header.components-card__header {
flex-direction: column;
padding: $grid-unit * 5.75 $grid-unit * 14 $grid-unit-50;
text-align: center;

@media (max-width: $break-small) {
padding: $grid-unit-30;
}
}
Copy link
Contributor

@puntope puntope Apr 27, 2022

Choose a reason for hiding this comment

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

💅 / 🚧

Inserting this selector inside .components-flex also works and we can avoid that double selector patch.

.components-flex {
		gap: $grid-unit * 3.5;
		padding: 0 $grid-unit * 7.75 $grid-unit * 5.75;

		&.components-card__header {
			flex-direction: column;
			... 

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for it! Using this form is clearer, updated in c673732. Also updated for other cards in fd58db1.

Note that it works for CardHeader since it has .components-flex class, while CardBody doesn't have that class so in js/src/get-started-page/benefits-card/index.scss I still use the repeating selectors hack in order to override the CardBody's original styles.

</Text>
</CardHeader>
<Flex gap={ 0 }>
<ContentBlock
Copy link
Contributor

Choose a reason for hiding this comment

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

💅 I'm not convinced neither by ContentBlock as name for this. Maybe TestimonialItem or Quote or Testimonial?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! Updated in 6404822.


.components-flex {
gap: $grid-unit * 3.5;
padding: 0 $grid-unit * 7.75 $grid-unit * 5.75;
Copy link
Contributor

Choose a reason for hiding this comment

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

💅 / ❓

Not sure if this is already discussed but maybe we can create some SCSS variables for the fonts and some spacing is being reused all over get-started-page directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! I added a commit 13e1ac1 to extract some shared variables for font sizes and line heights as they've got more common uses.

There are too many different sizes of the spacing that I've used in get started page based on the design, for example:

10px;
20px;
28px;
40px;
44px;
46px;
50px;
55px;
62px;
88px;
112px;

It's a bit tricky to make them as variables tho.

Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

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

Looking good ✅ thanks for working on this.

I'd love to discuss about that "Repeat selector to make it higher priority." hack. I guess there here are more standard ways to do so.

Would be nice also to evaluate the use and creation of variables for the common css values.

Rest of my comments are just opinions about naming.

@ianlin ianlin changed the title Get started page UX improvements: add case studies card Get started page UX improvements: add customer quotes card Apr 28, 2022
@ianlin
Copy link
Member Author

ianlin commented Apr 28, 2022

Hey @puntope, thanks for the review. I pushed some commits based on your suggestions and it's ready for another round of review.

@ianlin ianlin requested a review from puntope April 28, 2022 07:34
Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

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

Thanks for the adjustments it looks accurate with design and cleaner now.

Sorry. I want to mention 2 details more before approve. 1 of them seems to be regarding previous PRs since its related to other section.

  • I saw that in my tablet in vertical some resolutions the image on benefits-card is not covering the container. Wrapping the image in flex and playing with object-fit: cover maybe solves it.

Screenshot 2022-04-28 at 18 31 46

  • In the quotes, if one paragraph is higher than the other (because resolution or content length) it looks unbalanced

Screenshot 2022-04-28 at 18 33 43

Maybe align-items: stretch ??

Screenshot 2022-04-28 at 18 36 46

@ianlin
Copy link
Member Author

ianlin commented Apr 29, 2022

Thanks @puntope! Miss the tablet's resolution, noted! I pushed two commits a369c68 and 0011c43 to address the problem.

@puntope
Copy link
Contributor

puntope commented Apr 29, 2022

commits a369c68

Thanks for the change, it is no space anymore in the container, however now the image gets stretched. Adding object-fit: cover to the img element may solve this issue.

Screenshot 2022-04-29 at 11 02 36

and 0011c43

it works! 👌 Thanks

So it will work best on all resolutions of devices.
@ianlin
Copy link
Member Author

ianlin commented Apr 29, 2022

@puntope

I did try object-fit: cover and it looks like it's being stretched, while it looks normal when object-fit: cover is not added.

With object-fit: cover

Screenshot 2022-04-29 at 18 08 33

Without object-fit: cover

Screenshot 2022-04-29 at 18 08 18

But I was using the dev tool's device toolbar to check the result, it might not be accurate as using the real tablet so I still added object-fit: cover in 8f321ed as it doesn't look harm if we apply it.

Thanks for the detailed review!

@ianlin ianlin requested a review from puntope April 29, 2022 10:20
Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

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

✅ APPROVED good work!

Thanks for all the adjustments. The comment about _shared.scss here #1460 (comment)

I guess will be addressed in future PR.

@ianlin ianlin merged commit 4669394 into feature/1392-ux-improvements-on-get-started-page May 3, 2022
@ianlin ianlin deleted the add/1392-case-studies-card branch May 3, 2022 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants