Skip to content

Conversation

@jpuri
Copy link
Contributor

@jpuri jpuri commented Jul 4, 2024

Description

Add option of copy to info row component

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2743

Manual testing steps

  1. Run storybook locally
  2. Check CopyEnabled story in InfoRow component

Screenshots/Recordings

Screenshot 2024-07-04 at 6 17 13 PM Screenshot 2024-07-05 at 8 08 59 PM

Pre-merge author checklist

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.

@jpuri jpuri added confirmation-redesign team-confirmations Push issues to confirmations team labels Jul 4, 2024
@jpuri jpuri requested a review from a team as a code owner July 4, 2024 12:52
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 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.

@jpuri jpuri requested a review from a team as a code owner July 5, 2024 06:30
@metamaskbot
Copy link
Collaborator

Builds ready [90b949f]
Page Load Metrics (68 ± 10 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint59140992110
domContentLoaded97028157
load39125682110
domInteractive97028157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.88 KiB (0.03%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Jul 5, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 69.96%. Comparing base (072ba38) to head (49701b4).
Report is 3 commits behind head on develop.

Files Patch % Lines
ui/components/app/confirm/info/row/copy-icon.tsx 83.33% 1 Missing ⚠️
ui/components/app/confirm/info/row/row.tsx 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25682   +/-   ##
========================================
  Coverage    69.96%   69.96%           
========================================
  Files         1390     1391    +1     
  Lines        48895    48905   +10     
  Branches     13451    13456    +5     
========================================
+ Hits         34207    34216    +9     
- Misses       14688    14689    +1     

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

@metamaskbot
Copy link
Collaborator

Builds ready [54a405c]
Page Load Metrics (270 ± 252 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint793761296732
domContentLoaded11120322612
load541885270526252
domInteractive11120312612
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.92 KiB (0.03%)
  • common: 0 Bytes (0.00%)

<ConfirmInfoRow label={t('advancedDetailsHexDesc')}>
<ConfirmInfoRow
label={t('advancedDetailsHexDesc')}
copyEnabled
Copy link
Member

Choose a reason for hiding this comment

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

Can we now delete the copy button below?

Copy link
Contributor Author

@jpuri jpuri Jul 8, 2024

Choose a reason for hiding this comment

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

Button here is like copy link Copy raw transaction data you see in this image:

Screenshot 2024-07-08 at 11 03 47 AM

Copy link
Member

@matthewwalsh0 matthewwalsh0 Jul 11, 2024

Choose a reason for hiding this comment

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

Exactly, my understanding was they do the same thing, so we are switching to just the copy icon on the row itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, I removed that copy option now.

@jpuri jpuri requested a review from matthewwalsh0 July 8, 2024 09:49
@metamaskbot
Copy link
Collaborator

Builds ready [9d22922]
Page Load Metrics (186 ± 237 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint83139110157
domContentLoaded105926115
load452335186493237
domInteractive105926115
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 2 KiB (0.03%)
  • common: 0 Bytes (0.00%)

<ConfirmInfoRow label={t('advancedDetailsHexDesc')}>
<ConfirmInfoRow
label={t('advancedDetailsHexDesc')}
copyEnabled
Copy link
Member

@matthewwalsh0 matthewwalsh0 Jul 11, 2024

Choose a reason for hiding this comment

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

Exactly, my understanding was they do the same thing, so we are switching to just the copy icon on the row itself?

@jpuri jpuri requested a review from matthewwalsh0 July 11, 2024 11:06
@sonarqubecloud
Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [49701b4]
Page Load Metrics (340 ± 404 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint631941042813
domContentLoaded107028136
load413559340842404
domInteractive107028136
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.96 KiB (0.03%)
  • common: 0 Bytes (0.00%)

Copy link
Member

@matthewwalsh0 matthewwalsh0 left a comment

Choose a reason for hiding this comment

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

My understanding is we've not enabled this on the data row in this PR, but that can be done in a subsequent one.

@jpuri jpuri merged commit f01ead7 into develop Jul 15, 2024
@jpuri jpuri deleted the info_row_copy_icon branch July 15, 2024 09:32
@github-actions github-actions bot locked and limited conversation to collaborators Jul 15, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

confirmation-redesign release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants