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: replace deprecated mixins with Text component in qr-code-view #25637

Merged
merged 7 commits into from
Jul 30, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jul 2, 2024

Description

This pull request replaces deprecated mixins @include H1 - @include H9 in the SCSS file with the Text component in the qr-code-view component. The changes include updating the SCSS file to remove the deprecated mixins and modifying the JavaScript file to use the Text component with appropriate properties.

Devin Run Link : https://preview.devin.ai/devin/8158744e0716415fb64b023769e4ffab

Open in GitHub Codespaces

Related issues

Partially Fixes: #20496

Manual testing steps

  1. Go to the latest build of storybook in this PR
  2. Verify that the QrCodeView component renders correctly without any visual issues
  3. Ensure that the Text component is used instead of the deprecated mixins

Screenshots/Recordings

Before

Before Changes

After

After Changes

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

This Devin run was requested by Devin.

Copy link
Contributor

github-actions bot commented Jul 2, 2024

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.

@metamaskbot
Copy link
Collaborator

Builds ready [9b26550]
Page Load Metrics (164 ± 178 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint691731082512
domContentLoaded10105372412
load471772164370178
domInteractive10105372412
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 343 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.93%. Comparing base (182f609) to head (3b7361c).

Files Patch % Lines
ui/components/ui/qr-code-view/qr-code-view.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25637   +/-   ##
========================================
  Coverage    69.93%   69.93%           
========================================
  Files         1409     1409           
  Lines        49786    49786           
  Branches     13769    13769           
========================================
  Hits         34817    34817           
  Misses       14969    14969           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [7ceca07]
Page Load Metrics (194 ± 192 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70166952411
domContentLoaded96125147
load431415194400192
domInteractive96125147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 343 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Jul 15, 2024
@georgewrmarshall georgewrmarshall requested a review from a team July 15, 2024 17:39
garrettbear
garrettbear previously approved these changes Jul 17, 2024
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.

Made some suggestions. Can we also add a storybook js story to ui/components/ui/qr-code-view/qr-code-view.stories.jscalled MessageArray and take before and after screenshots of that story to add to the PR

MessageArray.args = {
  Qr: {
    message: ['message', 'array'],
    data: 'data',
  },
  warning: <div>warning</div>,
};

ui/components/ui/qr-code-view/index.scss Show resolved Hide resolved
ui/components/ui/qr-code-view/qr-code-view.tsx Outdated Show resolved Hide resolved
@georgewrmarshall georgewrmarshall added team-ai AI team (for the Devin AI bot) and removed external-contributor labels Jul 25, 2024
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

@georgewrmarshall georgewrmarshall marked this pull request as ready for review July 26, 2024 21:45
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner July 26, 2024 21:45
Copy link

sonarcloud bot commented Jul 26, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [3b7361c]
Page Load Metrics (324 ± 293 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint652391084321
domContentLoaded9122312412
load401865324611293
domInteractive9121312412
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 311 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@garrettbear garrettbear merged commit 649a793 into develop Jul 30, 2024
76 checks passed
@garrettbear garrettbear deleted the devin/mixin-uSI branch July 30, 2024 16:37
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Jul 30, 2024
@gauthierpetetin gauthierpetetin added release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-ai AI team (for the Devin AI bot) team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated mixins @include H1 - @include H9 in SCSS with Text component
4 participants