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

Page Speed widget - "Mobile" & "Desktop" icon change #3162

Closed
Pratheep-lab opened this issue Apr 15, 2021 · 11 comments
Closed

Page Speed widget - "Mobile" & "Desktop" icon change #3162

Pratheep-lab opened this issue Apr 15, 2021 · 11 comments
Labels
Good First Issue Good first issue for new engineers Module: PageSpeed PageSpeed Insights module related issues P2 Low priority Type: Enhancement Improvement of an existing feature UX Issues that require UX input
Milestone

Comments

@Pratheep-lab
Copy link
Collaborator

Pratheep-lab commented Apr 15, 2021

On the Page Speed widget found at the bottom of the SK dashboard, the mobile and desktop icons need to be changed to standard material design icons.

Current screenshot showing Page speed widget:
image

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

Acceptance criteria

  • The icons used for the PageSpeed insights widget for toggling device-specific reports should be updated to use the following Material icons (new svg files linked):
  • The source of the new icons should be amended to inherit the fill color using currentColor instead of a fixed hex code
  • The previous icons which are no longer used should be deleted

Implementation Brief

  • Replace assets/svg/device-size-mobile-icon.svg by the smartphone icon in the AC.
  • Replace assets/svg/device-size-desktop-icon.svg by the computer icon in the AC.
  • In both SVGs, add the fill attribute with the currentColor value to the last path element.
  • Using assets/sass/components/global/_googlesitekit-DeviceSizeTabBar.scss,
    • Add the color styles to svg, both including the one for .mdc-tab--active, having the same value as the corresponding svg path fill styles.
    • Remove the fill styles for svg path, and the resulting empty path selector.

Test Coverage

  • No new tests to be added.

Visual Regression Changes

  • Expected change to the Page Speed dashboard component with the icon changes.

QA Brief

On the Page Speed widget found at the bottom of the SK dashboard:

  • Toggle between the mobile and desktop icons
  • Verify that they have been updated with icons in AC

Changelog entry

  • Update viewport icons used in PageSpeed Insights widget.
@Pratheep-lab Pratheep-lab added Type: Enhancement Improvement of an existing feature Module: PageSpeed PageSpeed Insights module related issues labels Apr 15, 2021
@aaemnnosttv
Copy link
Collaborator

@Pratheep-lab are the current icons not from Material? I believe whatever is there was provided by @aarondruck in the original designs but perhaps he can confirm.

cc: @felixarntz @marrrmarrr

@aarondruck
Copy link

aarondruck commented Apr 20, 2021 via email

@Pratheep-lab Pratheep-lab added the UX Issues that require UX input label Apr 27, 2021
@aaemnnosttv
Copy link
Collaborator

@aarondruck here they are side-by-side which makes it a bit easier to compare.
image

The color looks more balanced with the new phone icon, but I think I prefer the laptop icon to the monitor.

How about smartphone and computer icons?

image
image

What do you think?

@aarondruck
Copy link

aarondruck commented May 5, 2021 via email

@aaemnnosttv aaemnnosttv added Good First Issue Good first issue for new engineers P2 Low priority labels May 5, 2021
@aaemnnosttv aaemnnosttv removed their assignment May 5, 2021
@asvinb asvinb assigned asvinb and unassigned asvinb Jun 3, 2021
@eugene-manuilov eugene-manuilov self-assigned this Jul 12, 2021
@eugene-manuilov
Copy link
Collaborator

IB ✔️

@danielgent
Copy link
Contributor

This is ready to go into CR but as it is outside of the current sprint I'm leaving it in execution

@danielgent
Copy link
Contributor

Setting to Code Review as I'm unassigning tickets from myself 😄

@felixarntz felixarntz self-assigned this Aug 23, 2021
@felixarntz
Copy link
Member

Adding to the 1.40.0 release since this is a trivial enhancement and good to go. cc @aaemnnosttv

@felixarntz felixarntz removed their assignment Aug 23, 2021
@wpdarren wpdarren self-assigned this Aug 24, 2021
@wpdarren
Copy link
Collaborator

wpdarren commented Aug 24, 2021

QA Update: ❌

@aaemnnosttv @felixarntz in my opinion the icons look a lot smaller than the previous ones. Maybe it's my eyes 😃

What are your thoughts? They appear small on desktop and mobile.

On Develop/Main
image

On latest release
image

@aaemnnosttv
Copy link
Collaborator

Thanks @wpdarren, they are a bit smaller now you're right. I've opened a PR to fix this 👍

@aaemnnosttv aaemnnosttv assigned tofumatt and unassigned aaemnnosttv Aug 24, 2021
@tofumatt tofumatt assigned wpdarren and unassigned tofumatt Aug 24, 2021
@wpdarren
Copy link
Collaborator

QA Update: Pass ✅

Verified:

  • On the Page Speed widget: confirmed that the new icons appear as per the AC.
  • Checked the icons on desktop and mobile screen sizes.

image

@wpdarren wpdarren removed their assignment Aug 25, 2021
@eclarke1 eclarke1 added this to the Sprint 56 milestone Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good first issue for new engineers Module: PageSpeed PageSpeed Insights module related issues P2 Low priority Type: Enhancement Improvement of an existing feature UX Issues that require UX input
Projects
None yet
Development

No branches or pull requests

10 participants