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

Adding alerts for transaction inside deprecation #21193

Merged
merged 7 commits into from
Oct 12, 2023

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Oct 4, 2023

Description

Add transaction insight deprecation notice

Screenshots/Recordings

Screenshot 2023-10-04 at 8 35 50 PM

Screenshot 2023-10-04 at 8 50 16 PM

If applicable, add screenshots and/or recordings to visualize the before and after of your change.

Related issues

_Fixes MetaMask/MetaMask-planning#1326

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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 team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Oct 4, 2023
@jpuri jpuri requested a review from a team as a code owner October 4, 2023 15:26
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

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.

@bschorchit bschorchit added team-confirmations-secure-ux-PR PRs from the confirmations team and removed team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead labels Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5ca6dee) 68.64% compared to head (3a6321e) 68.64%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #21193   +/-   ##
========================================
  Coverage    68.64%   68.64%           
========================================
  Files         1017     1018    +1     
  Lines        40788    40791    +3     
  Branches     10896    10896           
========================================
+ Hits         27997    28000    +3     
  Misses       12791    12791           
Files Coverage Δ
ui/components/app/confirm-data/confirm-data.js 93.75% <100.00%> (ø)
...irm-data/transaction-insights-deprecation-alert.js 100.00% <100.00%> (ø)
...details/transaction-list-item-details.component.js 62.82% <ø> (ø)

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

@metamaskbot
Copy link
Collaborator

Builds ready [3a6321e]
Page Load Metrics (833 ± 392 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint85138102147
domContentLoaded6613991157
load771883833817392
domInteractive6613991157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.22 KiB (0.03%)
  • common: 183 Bytes (0.00%)

<Box marginLeft={4} marginRight={4} marginTop={4}>
<TransactionInsightsDeprecationAlert />
</Box>
<Box color={Color.textAlternative} className="confirm-data" padding={4}>
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] we can move `className="confirm-data" to the parent Box element to follow the pattern we have in our codebase. This would also require us to update one of the styles

& > .disclosure {& .disclosure { (or specifying a new classname)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is existing div only wrapped in a parent element and an alert placed on top of it. I would avoid refactoring it and functionality is being deprecated.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I don't think there is much reason to spend time maintaining this if we are gonna remove it in a couple of releases.

@jpuri jpuri requested a review from digiwand October 12, 2023 14:15
Copy link
Member

@FrederikBolding FrederikBolding left a comment

Choose a reason for hiding this comment

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

Code LGTM, but is it intentional that it doesn't match the designs? @jpuri

Designs has the deprecation alert at the bottom but here it is implemented at the top 🤔

EDIT: My bad, the screenshots on the issue were out of date.

@jpuri jpuri merged commit 7ba9654 into develop Oct 12, 2023
64 checks passed
@jpuri jpuri deleted the trx_insight_deprecation_alert branch October 12, 2023 16:23
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Oct 12, 2023
@metamaskbot metamaskbot added the release-11.4.0 Issue or pull request that will be included in release 11.4.0 label Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.4.0 Issue or pull request that will be included in release 11.4.0 team-confirmations-secure-ux-PR PRs from the confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants