Skip to content

feat: Adding context to get current confirmation PR-4#26649

Merged
jpuri merged 26 commits intodevelopfrom
confirmation_context_4
Sep 3, 2024
Merged

feat: Adding context to get current confirmation PR-4#26649
jpuri merged 26 commits intodevelopfrom
confirmation_context_4

Conversation

@jpuri
Copy link
Copy Markdown
Contributor

@jpuri jpuri commented Aug 26, 2024

Description

Using context to get currently selected confirmation in re-designed confirmation pages. This is done to switch to using react context transient UI state in re-designed confirmation pages.

Related issues

Ref: #26414

Manual testing steps

NA

Screenshots/Recordings

NA

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 the team-confirmations Push issues to confirmations team label Aug 26, 2024
@jpuri jpuri requested review from a team as code owners August 26, 2024 10:35
@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.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [d7f6945]
Page Load Metrics (90 ± 12 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint781721202813
domContentLoaded49145872612
load56145902412
domInteractive166334147
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 2.72 KiB (0.04%)
  • common: -461 Bytes (-0.01%)

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 26, 2024

Codecov Report

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

Project coverage is 70.13%. Comparing base (0a90e50) to head (710b825).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
...shared/transaction-details/transaction-details.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26649      +/-   ##
===========================================
+ Coverage    70.12%   70.13%   +0.01%     
===========================================
  Files         1423     1424       +1     
  Lines        49539    49568      +29     
  Branches     13864    13868       +4     
===========================================
+ Hits         34736    34763      +27     
- Misses       14803    14805       +2     

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

matthewwalsh0
matthewwalsh0 previously approved these changes Aug 29, 2024
Copy link
Copy Markdown
Contributor

@digiwand digiwand left a comment

Choose a reason for hiding this comment

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

Nice work! minor TS suggesiton to remove as unknown

Base automatically changed from confirmation_context_3 to develop September 3, 2024 01:10
@jpuri jpuri dismissed matthewwalsh0’s stale review September 3, 2024 01:10

The base branch was changed.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [0c90ccb]
Page Load Metrics (1745 ± 139 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23628901670436209
domContentLoaded152026911713248119
load154129011745290139
domInteractive13128342411
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -323 Bytes (-0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [dbf1d1c]
Page Load Metrics (1485 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21118091368383184
domContentLoaded1342175614658239
load1349184314859947
domInteractive125529115
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -323 Bytes (-0.00%)
  • common: 0 Bytes (0.00%)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Sep 3, 2024

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [710b825]
Page Load Metrics (1778 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1635195017799445
domContentLoaded1601193717579747
load16111953177810450
domInteractive186437126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -323 Bytes (-0.00%)
  • common: 0 Bytes (0.00%)

};

if (!currentConfirmation?.msgParams) {
if (!(currentConfirmation as SignatureRequestType)?.msgParams) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: This type may not be needed given it's already used above

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.

good point this is indeed not needed, I will fix this in following PR

@jpuri jpuri merged commit 851db4c into develop Sep 3, 2024
@jpuri jpuri deleted the confirmation_context_4 branch September 3, 2024 14:15
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 3, 2024
@gauthierpetetin gauthierpetetin added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.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.5.0 Issue or pull request that will be included in release 12.5.0 team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants