-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: Remove 'Improved transactions requests' toggle #29695
Conversation
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. |
Builds ready [6919546]
Page Load Metrics (1739 ± 53 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
6919546
to
079f1f0
Compare
Builds ready [1d2f569]
Page Load Metrics (1584 ± 50 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
1d2f569
to
2d01514
Compare
2d01514
to
8e8b6c4
Compare
Builds ready [8e8b6c4]
Page Load Metrics (1594 ± 48 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
} | ||
|
||
function transformState(state: Record<string, unknown>) { | ||
const preferencesControllerState = state?.PreferencesController as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, is there any need for this line and the complex cast if we only reference preferences
?
preferences && | ||
hasProperty(preferences, 'redesignedTransactionsEnabled') | ||
) { | ||
delete preferences.redesignedTransactionsEnabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, is delete
a no-op if the property doesn't exist so could we remove the if
?
Description
We recently enabled the transaction redesign for all users by default. We also migrated some existing e2e tests to corresponding e2e tests for redesigned flows.
This PR removes the toggle that allowed users to opt out of the redesigned confirmations. It also removes the e2e tests for old confirmation flows that are no longer visible in any scenario.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3030
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist