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

refactor: Convert Avatar stories to csf format #7374

Merged
merged 20 commits into from
Nov 17, 2023

Conversation

brianacnguyen
Copy link
Contributor

@brianacnguyen brianacnguyen commented Oct 3, 2023

Description

  • Updated Avatar Base's const, stories, and test files.
  • Updated Avatar Account's const, stories, and test files.
  • Updated Avatar Favicon's const, stories, and test files.
  • Updated Avatar Icon's const, stories, and test files.
  • Updated Avatar Network's const, stories, and test files.
  • Updated Avatar Token's const, stories, and test files.

Screenshots/Recordings

after.mov

Related issues

Fixes #???

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@brianacnguyen brianacnguyen added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) Spot Check on the Release Build If a ticket doesn't require feature QA, but does require some form of manual spot checking team-design-system All issues relating to design system in Mobile labels Oct 3, 2023
@brianacnguyen brianacnguyen requested a review from a team as a code owner October 3, 2023 04:55
@brianacnguyen brianacnguyen self-assigned this Oct 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 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.

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.

Looking good. Left some comments. This PR is quite large and addresses several issues that could potentially be split into multiple PRs. To make it easier on the reviewer I would suggest breaking up PRs like this in future. Pulled branch and checked

  • for any remaining references to AvatarVariants to ensure none were overlooked.
  • stories, controls and console

Copy link
Contributor

github-actions bot commented Nov 9, 2023

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0d3586f7-8653-4e01-9565-2e91d6ad95b0
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2023

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (3e5c9da) 34.98% compared to head (0a442ff) 35.06%.

Files Patch % Lines
...brary/components/Avatars/Avatar/Avatar.stories.tsx 0.00% 9 Missing ⚠️
...r/variants/AvatarFavicon/AvatarFavicon.stories.tsx 0.00% 3 Missing ⚠️
...r/variants/AvatarNetwork/AvatarNetwork.stories.tsx 0.00% 3 Missing ⚠️
...vatar/variants/AvatarToken/AvatarToken.stories.tsx 0.00% 3 Missing ⚠️
...onent-library/components/Avatars/Avatar/Avatar.tsx 71.42% 1 Missing and 1 partial ⚠️
...r/variants/AvatarAccount/AvatarAccount.stories.tsx 0.00% 2 Missing ⚠️
.../Avatar/variants/AvatarIcon/AvatarIcon.stories.tsx 0.00% 2 Missing ⚠️
.../Avatars/Avatar/variants/AvatarIcon/AvatarIcon.tsx 50.00% 1 Missing and 1 partial ⚠️
...rs/Avatar/variants/AvatarAccount/AvatarAccount.tsx 50.00% 1 Missing ⚠️
...rs/Avatar/variants/AvatarFavicon/AvatarFavicon.tsx 66.66% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7374      +/-   ##
==========================================
+ Coverage   34.98%   35.06%   +0.08%     
==========================================
  Files        1040     1040              
  Lines       27690    27669      -21     
  Branches     2345     2345              
==========================================
+ Hits         9686     9702      +16     
+ Misses      17480    17442      -38     
- Partials      524      525       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? 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.

Running into some issues

  • Avatar variant favicon is square is that intentional?
  • Error on Avatar variant token
Screen.Recording.2023-11-10.at.11.49.32.AM.mov

@brianacnguyen
Copy link
Contributor Author

Running into some issues

  • Avatar variant favicon is square is that intentional?
  • Error on Avatar variant token

Screen.Recording.2023-11-10.at.11.49.32.AM.mov

fixed

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.

Stories are working but looks like you have some failing tests. This is the video I would like to see as a reviewer to see that you have also checked all the stories. Keep in mind the more stories you add the more that need to be QA'd I would expect these to be checked by the author first. This will also help for faster review

after.mov

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

65.8% 65.8% Coverage
0.0% 0.0% Duplication

@georgewrmarshall georgewrmarshall merged commit ad2986f into main Nov 17, 2023
30 checks passed
@georgewrmarshall georgewrmarshall deleted the morph/convert-avatars branch November 17, 2023 00:34
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Nov 17, 2023
@metamaskbot metamaskbot added the release-7.12.0 Issue or pull request that will be included in release 7.12.0 label Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-7.12.0 Issue or pull request that will be included in release 7.12.0 Spot Check on the Release Build If a ticket doesn't require feature QA, but does require some form of manual spot checking team-design-system All issues relating to design system in Mobile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants