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

icon audit, remove xxs icon size #17089

Merged
merged 15 commits into from
Jan 24, 2023
Merged

icon audit, remove xxs icon size #17089

merged 15 commits into from
Jan 24, 2023

Conversation

garrettbear
Copy link
Contributor

@garrettbear garrettbear commented Jan 5, 2023

Explanation

Update Icon names, remove unused icons, add missing icons, and fix icons with stroke/line issues.

Screenshots/Screencaps

Before

Screenshot 2023-01-10 at 1 37 18 PM

Screenshot 2023-01-10 at 1 37 52 PM

After

Screenshot 2023-01-10 at 1 38 03 PM

Screenshot 2023-01-10 at 1 37 25 PM

Manual Testing Steps

yarn test:unit:jest ui/components/component-library

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2023

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Collaborator

Builds ready [fea715f]
Page Load Metrics (1605 ± 189 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1001528207305146
domContentLoaded121430731592393189
load121430731605394189
domInteractive121430731592393189
Bundle size diffs
  • background: 0 bytes
  • ui: -16 bytes
  • common: 0 bytes

highlights:

storybook

@metamaskbot
Copy link
Collaborator

Builds ready [9a3a2f8]
Page Load Metrics (1425 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1011761262311
domContentLoaded11921729141917684
load11921729142517483
domInteractive11921729141917684
Bundle size diffs
  • background: 0 bytes
  • ui: -1711 bytes
  • common: 0 bytes

highlights:

storybook

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Hmm I did write the generate icons script to remove the icon- prefix and have it as a requirement for all icon files. I'm actually surprised it still works but now I see that it takes all svgs in the icons folder not the ones prefixed with icon-

Screenshot 2023-01-09 at 5 25 52 PM

@garrettbear
Copy link
Contributor Author

Hmm I did write the generate icons script to remove the icon- prefix and have it as a requirement for all icon files. I'm actually surprised it still works but now I see that it takes all svgs in the icons folder not the ones prefixed with icon-

Screenshot 2023-01-09 at 5 25 52 PM

Oh you are right the generator does remove the icon- for the name, but I guess it was unclear to me if the raw file names were supposed to match the Figma file which is why I renamed them all. We can keep the functions for removing icon- in the generator in the event that someone does add a file starting with that name or I can remove it.

@garrettbear garrettbear marked this pull request as ready for review January 10, 2023 21:42
@garrettbear garrettbear requested a review from a team as a code owner January 10, 2023 21:42
@garrettbear garrettbear requested a review from kumavis as a code owner January 10, 2023 21:51
@metamaskbot
Copy link
Collaborator

Builds ready [6e39bad]
Page Load Metrics (1280 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint91139111136
domContentLoaded11171701126918890
load11171709128019192
domInteractive11171701126918890
Bundle size diffs
  • background: 0 bytes
  • ui: -1649 bytes
  • common: 0 bytes

highlights:

storybook

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

I think we can also remove all the ids from the svgs files.

@metamaskbot
Copy link
Collaborator

Builds ready [1471f39]
Page Load Metrics (1531 ± 135 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint961791312512
domContentLoaded116222151516266128
load116222871531282135
domInteractive116222151515266128
Bundle size diffs
  • background: 0 bytes
  • ui: -1649 bytes
  • common: 0 bytes

highlights:

storybook

@garrettbear garrettbear force-pushed the feat/16786/icon-audit branch from 6be9cce to 77ba798 Compare January 11, 2023 16:59
@metamaskbot
Copy link
Collaborator

Builds ready [eb82787]
Page Load Metrics (1193 ± 37 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint89150117147
domContentLoaded1039131111847034
load1039131111937637
domInteractive1039131111837034
Bundle size diffs
  • background: 0 bytes
  • ui: -1649 bytes
  • common: 0 bytes

highlights:

storybook

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Everything looks great! Just one suggestion about the font awesome story

ui/components/component-library/icon/icon.stories.js Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [321b212]
Page Load Metrics (1295 ± 113 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint881891162010
domContentLoaded97416871274236113
load97416871295236113
domInteractive97416871274236113
Bundle size diffs
  • background: 0 bytes
  • ui: -1654 bytes
  • common: 0 bytes

highlights:

storybook

@codecov-commenter
Copy link

Codecov Report

Merging #17089 (321b212) into develop (83d74b6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #17089   +/-   ##
========================================
  Coverage    59.80%   59.80%           
========================================
  Files          937      937           
  Lines        36141    36141           
  Branches      9284     9284           
========================================
  Hits         21614    21614           
  Misses       14527    14527           
Impacted Files Coverage Δ
...-request-siwe/signature-request-siwe-icon/index.js 0.00% <ø> (ø)
...component-library/avatar-favicon/avatar-favicon.js 100.00% <ø> (ø)
...nents/component-library/button-base/button-base.js 100.00% <ø> (ø)
...omponents/component-library/icon/icon.constants.js 100.00% <ø> (ø)
ui/components/component-library/icon/icon.js 100.00% <ø> (ø)
ui/components/component-library/tag-url/tag-url.js 100.00% <ø> (ø)
...ent-library/text-field-search/text-field-search.js 80.00% <ø> (ø)
...ponents/component-library/text-field/text-field.js 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM!

@metamaskbot
Copy link
Collaborator

Builds ready [a2d9910]
Page Load Metrics (1301 ± 102 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint100173125199
domContentLoaded10301658126120699
load103017381301212102
domInteractive10301658126120699
Bundle size diffs
  • background: 0 bytes
  • ui: -1654 bytes
  • common: 0 bytes

@garrettbear garrettbear merged commit 0bf6aeb into develop Jan 24, 2023
@garrettbear garrettbear deleted the feat/16786/icon-audit branch January 24, 2023 17:39
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icon audit updates
5 participants