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

feat: enable smart transactions by default for new users #4885

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

dan437
Copy link
Contributor

@dan437 dan437 commented Nov 1, 2024

Explanation

We want to enable smart transactions by default for new users.

References

Changelog

@metamask/preferences-controller

### Changed

- Enable smart transactions by default for new users by setting the initial value of the `smartTransactionsOptInStatus` state property to 'true' ([#4885](https://github.com/MetaMask/core/pull/4885))

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@dan437 dan437 requested a review from a team as a code owner November 1, 2024 13:16
@dan437 dan437 added the team-transactions Transactions team label Nov 1, 2024
@dan437 dan437 changed the title chore: enable smart transactions by default for new users feat: enable smart transactions by default for new users Nov 1, 2024
@dan437 dan437 force-pushed the enable-stx-for-new-users branch from 3adb7f5 to 5c2701e Compare November 4, 2024 11:03
@dan437 dan437 force-pushed the enable-stx-for-new-users branch from 5c2701e to 75e3675 Compare November 5, 2024 10:44
@dan437 dan437 enabled auto-merge (squash) November 5, 2024 10:57
@dan437 dan437 force-pushed the enable-stx-for-new-users branch from 75e3675 to dd2ed3f Compare November 6, 2024 10:56
Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

Looks good!

@dan437 dan437 merged commit b27a5d7 into main Nov 6, 2024
120 checks passed
@dan437 dan437 deleted the enable-stx-for-new-users branch November 6, 2024 14:03
@dan437 dan437 mentioned this pull request Nov 8, 2024
dan437 added a commit that referenced this pull request Nov 8, 2024
## Explanation
New release with preferences-controller changes:
#4885

## References


## Changelog


## Checklist
github-merge-queue bot pushed a commit to MetaMask/metamask-mobile that referenced this pull request Nov 19, 2024
## **Description**

This PR:
- Removes the Smart Transactions Opt In modal
- New users will have STX toggled on by default once we use this change
from @metamask/preferences-controller:
MetaMask/core#4885

## **Related issues**

Fixes:

## **Manual testing steps**

1. After installing the app a user will not see the STX opt in modal
2. In Advanced Settings Smart Transactions will be on. A user can turn
them off if they want

## **Screenshots/Recordings**

Smart Transactions enabled by default in Advanced settings for new
users:

![image](https://github.com/user-attachments/assets/e08f9dc5-5df6-4de6-a3fc-1c3cbc293e4c)

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] 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](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
sethkfman pushed a commit to MetaMask/metamask-mobile that referenced this pull request Nov 19, 2024
## **Description**

This PR:
- Removes the Smart Transactions Opt In modal
- New users will have STX toggled on by default once we use this change
from @metamask/preferences-controller:
MetaMask/core#4885

## **Related issues**

Fixes:

## **Manual testing steps**

1. After installing the app a user will not see the STX opt in modal
2. In Advanced Settings Smart Transactions will be on. A user can turn
them off if they want

## **Screenshots/Recordings**

Smart Transactions enabled by default in Advanced settings for new
users:

![image](https://github.com/user-attachments/assets/e08f9dc5-5df6-4de6-a3fc-1c3cbc293e4c)

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] 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](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-transactions Transactions team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants