feat: Implement the "Manage in settings" variation for the STX Opt In modal#24771
feat: Implement the "Manage in settings" variation for the STX Opt In modal#24771
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 [1113c78]
Page Load Metrics (1403 ± 581 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #24771 +/- ##
===========================================
+ Coverage 65.69% 65.72% +0.03%
===========================================
Files 1360 1360
Lines 54081 54083 +2
Branches 14051 14051
===========================================
+ Hits 35525 35542 +17
+ Misses 18556 18541 -15 ☔ View full report in Codecov by Sentry. |
Builds ready [8448fe2]
Page Load Metrics (751 ± 498 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Update a .snap file Update E2E tests
| className="mm-smart-transactions-opt-in-modal__no-thanks-link" | ||
| > | ||
| {t('dontEnableEnhancedProtection')} | ||
| {t('manageInSettings')} |
There was a problem hiding this comment.
Dan, I was thinking about the "managing in settings" button and had a small suggestion. The button text seems to imply that the user is deferring the opt-in decision rather than explicitly declining it. Since the default for an "opt-in" is false, calling setSmartTransactionsOptInStatus(false) might not be necessary when they click that button.
However, if we need to track whether the user has seen the opt-in modal (set smartTransactionsOptInStatus to something other than undefined), maybe we could rename the handler to "handleMarkOptInModalSeen" instead of "handleNoThanks"? And we could add a comment like: "We setSmartTransactionsOptInStatus(false) to track that user has seen the opt-in modal."
What do you think?
There was a problem hiding this comment.
As we have discussed, I've renamed the NoThanks component to ManageInSettings + its on-click handler as well. I've also added an explanation comment about that we need to call setSmartTransactionsOptInStatus(false), so a user wouldn't see the opt-in modal again.
Builds ready [05bcec5]
Page Load Metrics (834 ± 499 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [c419b85]
Page Load Metrics (846 ± 504 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
|
Missing release label release-11.16.1 on PR. Adding release label release-11.16.1 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.1. |
Description
Slight variation for the STX Opt In modal: Add a link to "Manage in settings"
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
STX Opt In modal:

Advanced Settings with STX:

Pre-merge author checklist
Pre-merge reviewer checklist