Skip to content

Update Text import paths: /multichain#20061

Merged
georgewrmarshall merged 5 commits intodevelopfrom
part/19986/update-text-import-paths-multi-chain
Jul 18, 2023
Merged

Update Text import paths: /multichain#20061
georgewrmarshall merged 5 commits intodevelopfrom
part/19986/update-text-import-paths-multi-chain

Conversation

@georgewrmarshall
Copy link
Copy Markdown
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/multichain folder as well as snapshots

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.

class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative"
data-testid="multichain-token-list-item-value"
>
5.000
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.

No visual regressions

Before

Screenshot 2023-07-17 at 2 48 36 PM

After

Screenshot 2023-07-17 at 2 47 57 PM

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [e8028e5]
Page Load Metrics (1592 ± 36 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint114177143199
domContentLoaded1450176715917435
load1451176715927436
domInteractive1450176715917435
Bundle size diffs
  • background: 0 bytes
  • ui: -2052 bytes
  • common: 0 bytes

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 17, 2023

Codecov Report

Merging #20061 (70f5a8e) into develop (5d17f86) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #20061   +/-   ##
========================================
  Coverage    69.42%   69.42%           
========================================
  Files          990      990           
  Lines        37418    37418           
  Branches     10039    10039           
========================================
  Hits         25976    25976           
  Misses       11442    11442           
Impacted Files Coverage Δ
...in/account-details/account-details-authenticate.js 93.75% <ø> (ø)
.../multichain/account-details/account-details-key.js 85.71% <ø> (ø)
...ents/multichain/account-details/account-details.js 78.57% <ø> (ø)
...n/account-list-item-menu/account-list-item-menu.js 65.33% <ø> (ø)
.../multichain/account-list-item/account-list-item.js 81.97% <ø> (ø)
.../multichain/account-list-menu/account-list-menu.js 77.50% <ø> (ø)
...onents/multichain/account-picker/account-picker.js 100.00% <ø> (ø)
...i/components/multichain/global-menu/global-menu.js 68.97% <ø> (ø)
...onents/multichain/import-account/import-account.js 21.74% <ø> (ø)
ui/components/multichain/import-account/json.js 75.00% <ø> (ø)
... and 3 more


import { useI18nContext } from '../../../hooks/useI18nContext';
import { exportAccount, hideWarning } from '../../../store/actions';

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.

Updating to use BannerAlert description prop. This will keep the font size at 14px on popup view but 16px on expanded

Before

before.mov

After

after.mov

class="mm-box mm-text mm-text--body-sm mm-text--text-align-end mm-box--color-text-alternative"
>
<div
class="currency-display-component"
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.

No visual regressions

Before

account.list.item.before.mov

After

account.list.item.after.mov

class="mm-box mm-text mm-text--body-md mm-text--font-weight-bold mm-text--ellipsis mm-box--color-text-default"
>
Account 1
</span>
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.

No visual regressions

Before

accountpicker.before.mov

After

accountpicker.after.mov

class="mm-box mm-text mm-text--body-md mm-text--font-weight-bold mm-text--ellipsis mm-box--color-text-default"
>
Test Account
</span>
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.

no visual regressions

Screenshot 2023-07-17 at 4 47 57 PM Screenshot 2023-07-17 at 4 48 16 PM

class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative"
data-testid="multichain-token-list-item-value"
>

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.

No visual regressions

Before

tokenlistitem.before.mov

After

tokenlistitem.after.mov

@georgewrmarshall georgewrmarshall self-assigned this Jul 17, 2023
@georgewrmarshall georgewrmarshall added team-design-system All issues relating to design system in Extension needs-ux-ds-review labels Jul 17, 2023
@georgewrmarshall georgewrmarshall marked this pull request as ready for review July 17, 2023 23:56
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner July 17, 2023 23:56
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [70f5a8e]
Page Load Metrics (1902 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1303361714321
domContentLoaded16592232190114067
load16592232190214168
domInteractive16592232190114067
Bundle size diffs
  • background: 0 bytes
  • ui: -2103 bytes
  • common: 0 bytes

@georgewrmarshall georgewrmarshall merged commit 36be38e into develop Jul 18, 2023
@georgewrmarshall georgewrmarshall deleted the part/19986/update-text-import-paths-multi-chain branch July 18, 2023 05:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2023
@metamaskbot metamaskbot added the release-10.35.0 Issue or pull request that will be included in release 10.35.0 label Jul 18, 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