google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Metric tile design improvements #7860

Closed nfmohit closed 9 months ago

nfmohit commented 11 months ago

Feature Description

In an effort to retain consistency between metric tiles and improve responsiveness across multiple devices, the design of the metric tiles has been updated in Figma, which should be implemented in the application. Here is a summary of the changes:

  1. The info tooltip icon should be aligned to the right in all viewports. Screenshot:

image

  1. Tiles with the "text" & "numeric" types should have a change in their layout in smaller viewports, i.e. instead of aligning the tile content to the right, it should be placed under the title as in larger viewports, but the "tile change percentage" should be aligned to the right. Figma link. Screenshot:

image

  1. The text content in zero data/gathering data states of tiles should have a font-size of body/medium.

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

To address the AC points in order:

  1. The info tooltip icon should be aligned to the right.
  1. In mobile viewports, "Numeric" & "Text" type tiles should have their tile content placed under the title and the metric change percentage should be aligned to the right, according to this Figma design.
  1. The text content in zero data/gathering data states should have a font-size of body/medium.

Additionally, remove any redundant styling e.g. flex-direction: column can be removed from .googlesitekit-km-widget-tile--table.

Test Coverage

QA Brief

Changelog entry

nfmohit commented 11 months ago

Note: It would be good to verify with Sigal after adding the ACs to confirm if there is any improvement we've missed.

nfmohit commented 11 months ago

Note: There are a few other improvements that aren't a part of this issue, such as:

  1. The tile title should take a height same as a tile with the highest title in the KMW area, e.g. if a tile's title is 2 lines long, all the tiles' titles should be 2 lines long. This will be implemented as a part of #7761. Screenshot: image
  2. In tile error states, the CTA height should be reduced to 32px. This should be implemented as a part of #7763. Screenshot: image
  3. In tile error states for smaller viewports, the CTA should be aligned to the right. This should be implemented as a part of #7763. Screenshot: image
nfmohit commented 11 months ago

@sigal-teller Co-assigning this to you just to ensure that the current ACs cover all the improvements made to the individual metric tiles that have been applied in Figma to date.

nfmohit commented 10 months ago

For the record, Sigal and I discussed this internally and this should cover all the improvements needed. Moving to ACR.

tofumatt commented 10 months ago

@nfmohit Strangely, it looks like all of the screenshots here aren't appearing πŸ€”

Not sure what's happening there, but it makes it tough to review the issue in full πŸ˜…

CleanShot 2023-12-28 at 23 29 31

CleanShot 2023-12-28 at 23 29 37

The Figma link seems off too, can you double-check that stuff to make sure it references what the ACs refer to?

nfmohit commented 10 months ago

Thank you for the review, @tofumatt. I have updated the Figma links to correctly point to the appropriate screen. However, the screenshots in the issue does load for me. I have also checked from different browsers and devices.

image

Could you give it another look? Thank you!

tofumatt commented 10 months ago

Weird, now they're all fine! πŸ˜…

I guess it was a CDN thing or something πŸ€”

tofumatt commented 10 months ago

ACs look good, moving to IB πŸ‘πŸ»

tofumatt commented 10 months ago

Looks good to me πŸ‘πŸ»

IB βœ…

mohitwp commented 9 months ago

QA Update βœ…

![image](https://github.com/google/site-kit-wp/assets/94359491/eee75704-e68d-432f-a5a6-6623fac32832) ![image](https://github.com/google/site-kit-wp/assets/94359491/142f6f5f-ae1a-4b2b-8da1-b89df3c4fd3b) ![image](https://github.com/google/site-kit-wp/assets/94359491/05434e8d-fdc1-4b46-be34-183402c2354d) ![image](https://github.com/google/site-kit-wp/assets/94359491/89420264-f9aa-4a13-91f1-d884d5166da7) ![image](https://github.com/google/site-kit-wp/assets/94359491/0571e783-5533-44c7-8a86-ab32cc917dd6 https://github.com/google/site-kit-wp/assets/94359491/a30f5953-ee22-4636-9fcd-19265acde70b https://github.com/google/site-kit-wp/assets/94359491/d90798ca-2e87-4e39-a6ce-743c97f4a10b