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

Migrate component to TS: Tag #20086

Merged
merged 18 commits into from
Jul 24, 2023
Merged

Migrate component to TS: Tag #20086

merged 18 commits into from
Jul 24, 2023

Conversation

dhruvv173
Copy link
Contributor

Explanation

Screenshots/Screencaps

Before

image
image
image

After

image
image
image

unit test coverage
image

Manual Testing Steps

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.

@dhruvv173 dhruvv173 requested a review from a team as a code owner July 19, 2023 08:44
@github-actions
Copy link
Contributor

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.

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Jul 19, 2023
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.

Hey @dhruvv173, I still need to do a full review but it looks like there are some snapshot and lining issues that need resolving?

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #20086 (288cdff) into develop (23c30d9) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #20086      +/-   ##
===========================================
- Coverage    69.36%   69.36%   -0.00%     
===========================================
  Files          987      987              
  Lines        37289    37290       +1     
  Branches     10011    10012       +1     
===========================================
- Hits         25864    25863       -1     
- Misses       11425    11427       +2     
Impacted Files Coverage Δ
ui/components/component-library/tag/tag.tsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

@dhruvv173
Copy link
Contributor Author

dhruvv173 commented Jul 20, 2023

Hey @dhruvv173, I still need to do a full review but it looks like there are some snapshot and lining issues that need resolving?

addressed issues in the recent commit, passes all the tests. However, I think we'll also need a review from snaps engineer?

@garrettbear
Copy link
Contributor

Hey @dhruvv173, I still need to do a full review but it looks like there are some snapshot and lining issues that need resolving?

addressed issues in the recent commit, passes all the tests. However, I think we'll also need a review from snaps engineer?

Yes we will get someone from snaps to review

@garrettbear garrettbear added team-snaps DEPRECATED: Use "team-snaps-platform" or "team-snaps-ecosystem" instead needs-ux-ds-review labels Jul 20, 2023
@garrettbear
Copy link
Contributor

garrettbear commented Jul 20, 2023

Looking really good @dhruvv173! I committed my suggestions to your PR, so be sure to pull locally if you end up needing to do any changes.

@dhruvv173
Copy link
Contributor Author

Looking really good @dhruvv173! I committed my suggestions to your PR, so be sure to pull locally if you end up needing to do any changes.

Yes, will do. Thank you so much for making the changes!

/**
* The label props of the component. Most Text component props can be used
*/
labelProps?: TextProps<'span'>;
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this is fine but would note that this prevents things like <Tag labelProps={{ as: 'p' }} />

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.

Left one comment, we may want to remove some of the styling on he Tag component in future so we can use the style utility props more

ui/pages/keyring-snaps/snap-account-detail-page/header.tsx Outdated Show resolved Hide resolved
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! Thanks for your contribution @dhruvv173 and for supporting @garrettbear

@dhruvv173
Copy link
Contributor Author

thanks alot for assisting @garrettbear :)

@garrettbear garrettbear added team-accounts and removed team-snaps DEPRECATED: Use "team-snaps-platform" or "team-snaps-ecosystem" instead labels Jul 24, 2023
@garrettbear garrettbear merged commit edbc728 into MetaMask:develop Jul 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2023
@dhruvv173 dhruvv173 deleted the fix/19125 branch July 25, 2023 05:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external-contributor team-accounts team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate components to TS: Tag
3 participants