Skip to content

Update Text import paths: component library/#19987

Merged
georgewrmarshall merged 9 commits intodevelopfrom
part/19986/update-text-import-paths-component-library
Jul 17, 2023
Merged

Update Text import paths: component library/#19987
georgewrmarshall merged 9 commits intodevelopfrom
part/19986/update-text-import-paths-component-library

Conversation

@georgewrmarshall
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall commented Jul 12, 2023

Explanation

Currently, there are deprecated instances of the Text component that use the JavaScript version of the Box component. This PR updates those deprecated import paths to the new component in the component-library/ folder as well as updating some components and PropTypes to utilize the TypeScript version of the Box component correctly

Screenshots/Screencaps

I have added Before/After screencasts to ensure no visual regressions have occurred to components with some significant updates other than snapshot updates in the code comments

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.

@github-actions
Copy link
Copy Markdown
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 force-pushed the part/19986/update-text-import-paths-component-library branch 2 times, most recently from 347fc43 to a3a4602 Compare July 12, 2023 22:07
@georgewrmarshall georgewrmarshall added team-design-system All issues relating to design system in Extension DO-NOT-MERGE Pull requests that should not be merged labels Jul 12, 2023
@georgewrmarshall georgewrmarshall self-assigned this Jul 12, 2023
@georgewrmarshall georgewrmarshall force-pushed the part/19986/update-text-import-paths-component-library branch from a3a4602 to 3c5e281 Compare July 12, 2023 23:01
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 12, 2023

Codecov Report

Merging #19987 (ddd968b) into develop (343cde9) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #19987      +/-   ##
===========================================
+ Coverage    69.41%   69.42%   +0.01%     
===========================================
  Files          990      990              
  Lines        37418    37418              
  Branches     10039    10039              
===========================================
+ Hits         25973    25976       +3     
+ Misses       11445    11442       -3     
Impacted Files Coverage Δ
...nents/component-library/banner-base/banner-base.js 100.00% <ø> (ø)
...ponents/component-library/banner-tip/banner-tip.js 100.00% <ø> (ø)
...nents/component-library/button-base/button-base.js 100.00% <ø> (ø)
...components/component-library/checkbox/checkbox.tsx 88.46% <ø> (ø)
...omponents/component-library/help-text/help-text.js 89.47% <ø> (ø)
ui/components/component-library/input/input.js 100.00% <ø> (ø)
ui/components/component-library/label/label.js 100.00% <ø> (ø)
...ts/component-library/modal-header/modal-header.tsx 100.00% <ø> (ø)
...component-library/picker-network/picker-network.js 100.00% <ø> (ø)
...omponent-library/popover-header/popover-header.tsx 100.00% <ø> (ø)
... and 4 more

... and 2 files with indirect coverage changes

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3c5e281]
Page Load Metrics (1507 ± 49 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint104157117126
domContentLoaded13871837150710149
load13871837150710149
domInteractive13871837150710149
Bundle size diffs
  • background: 0 bytes
  • ui: 12292 bytes
  • common: 0 bytes

@georgewrmarshall georgewrmarshall force-pushed the part/19986/update-text-import-paths-component-library branch 2 times, most recently from b5cf715 to b1fba90 Compare July 14, 2023 18:39
@georgewrmarshall georgewrmarshall removed the DO-NOT-MERGE Pull requests that should not be merged label Jul 14, 2023
@georgewrmarshall georgewrmarshall marked this pull request as ready for review July 14, 2023 19:05
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner July 14, 2023 19:05
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b1fba90]
Page Load Metrics (1586 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint110166128168
domContentLoaded14061933158612660
load14061933158612660
domInteractive14061933158612660
Bundle size diffs
  • background: 0 bytes
  • ui: -1562 bytes
  • common: 0 bytes

Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jul 14, 2023

Choose a reason for hiding this comment

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

Avatars

Before/After screencast showing no visual regressions for all avatar components

Before

before.avatars.mov

After

after.avatars.mov

@georgewrmarshall georgewrmarshall force-pushed the part/19986/update-text-import-paths-component-library branch 2 times, most recently from 3f5ef57 to c55c362 Compare July 14, 2023 21:25
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

PropTypes will be resolved in TS migration of this component #18886

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was used because the Box didn't accept 0 values this has now been resolved in the TS version of the Box so it's no longer needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Buttons

Before/After screencast showing no visual regressions for all button components

Before

button.before.mov

After

button.after.mov

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [e7e7483]
Page Load Metrics (1424 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint94158114178
domContentLoaded1308156914235728
load1308156914245728
domInteractive1308156914235728
Bundle size diffs
  • background: 0 bytes
  • ui: -1644 bytes
  • common: 0 bytes

garrettbear
garrettbear previously approved these changes Jul 14, 2023
Copy link
Copy Markdown
Contributor

@garrettbear garrettbear left a comment

Choose a reason for hiding this comment

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

LGTM. Lots of snapshot updates 😅

Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jul 14, 2023

Choose a reason for hiding this comment

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

Banners

Before

before.banner.mov

After

after.banner.mov

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Forms

Before

form.before.2.mov
form.before.mov

After

Screen.Recording.2023-07-14.at.3.29.30.PM.mov

darkwing
darkwing previously approved these changes Jul 17, 2023
@georgewrmarshall georgewrmarshall dismissed stale reviews from darkwing and garrettbear via ddd968b July 17, 2023 19:24
@georgewrmarshall georgewrmarshall force-pushed the part/19986/update-text-import-paths-component-library branch from e7e7483 to ddd968b Compare July 17, 2023 19:24
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ddd968b]
Page Load Metrics (1488 ± 30 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint107144119105
domContentLoaded1402167314886330
load1402167314886330
domInteractive1402167314886330
Bundle size diffs
  • background: 0 bytes
  • ui: -1644 bytes
  • common: 0 bytes

@georgewrmarshall georgewrmarshall merged commit 5d17f86 into develop Jul 17, 2023
@georgewrmarshall georgewrmarshall deleted the part/19986/update-text-import-paths-component-library branch July 17, 2023 21:00
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2023
@metamaskbot metamaskbot added the release-10.35.0 Issue or pull request that will be included in release 10.35.0 label Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-10.35.0 Issue or pull request that will be included in release 10.35.0 team-design-system All issues relating to design system in Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants