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

Update Text import paths: /pages #20117

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

georgewrmarshall
Copy link
Contributor

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 ui/components/pages folder as well as snapshots. There should be no visual or component API difference between the two. Just className changes which will touch many snapshots

Searching for path of the deprecated Text import paths returns no results 🥳

Screenshot 2023-07-20 at 10 51 58 AM

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.

@georgewrmarshall georgewrmarshall self-assigned this Jul 20, 2023
@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 20, 2023
@georgewrmarshall georgewrmarshall marked this pull request as ready for review July 20, 2023 18:19
@georgewrmarshall georgewrmarshall requested review from a team as code owners July 20, 2023 18:19
Comment on lines +21 to -26
Text,
///: END:ONLY_INCLUDE_IN
IconName,
IconSize,
} from '../../components/component-library';
///: BEGIN:ONLY_INCLUDE_IN(snaps)
import { Text } from '../../components/component-library/text/deprecated';
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Jul 20, 2023

Choose a reason for hiding this comment

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

Making sure the import is still only included in snaps. This is the only other file in the codebase and it is outside of /pages but thought it would be ok to include in this PR

@metamaskbot
Copy link
Collaborator

Builds ready [59cb054]
Page Load Metrics (1518 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1011771302110
domContentLoaded13831849151710651
load13831870151811053
domInteractive13821849151710651
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -8.41 KiB (-0.11%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #20117 (59cb054) into develop (6ce80fe) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #20117   +/-   ##
========================================
  Coverage    69.34%   69.34%           
========================================
  Files          986      986           
  Lines        37299    37299           
  Branches     10011    10011           
========================================
  Hits         25864    25864           
  Misses       11435    11435           
Impacted Files Coverage Δ
ui/helpers/utils/permission.js 16.48% <ø> (ø)
...irm-add-suggested-nft/confirm-add-suggested-nft.js 83.33% <ø> (ø)
...prove-content/confirm-approve-content.component.js 76.88% <ø> (ø)
...ploy-contract/confirm-deploy-contract.component.js 25.00% <ø> (ø)
ui/pages/create-account/connect-hardware/index.js 42.76% <ø> (ø)
...pages/desktop-pairing/desktop-pairing.component.js 100.00% <ø> (ø)
ui/pages/home/home.component.js 44.95% <ø> (ø)
...add-custodian-token/confirm-add-custodian-token.js 75.81% <ø> (ø)
...ages/institutional/connect-custody/account-list.js 95.24% <ø> (ø)
ui/pages/institutional/custody/custody.js 49.73% <ø> (ø)
... and 29 more

Copy link
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.

YESSSSSS

@garrettbear garrettbear merged commit 733391a into develop Jul 20, 2023
@garrettbear garrettbear deleted the part/19986/update-text-import-paths-pages branch July 20, 2023 19:49
@metamaskbot metamaskbot added the release-10.36.0 Issue or pull request that will be included in release 10.36.0 label Jul 20, 2023
@Gudahtt Gudahtt added release-11.1.0 Issue or pull request that will be included in release 11.1.0 and removed release-10.36.0 Issue or pull request that will be included in release 10.36.0 labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.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.

6 participants