cherry-pick: fix: Update STX Banner Alert, include chainSupportsSmartTransactions
#29947
+149
−39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #29911
Related Issue (#29869)
The banner will now only show if the chain supports smart transactions and they are enabled in preferences.
Description
Reason for change: The Smart Transactions banner was showing incorrectly for users who had STX enabled before migration. The banner should only show for users when STX is newly enabled by the migration.
Improvement/solution: Modified migration script to only set
smartTransactionsMigrationApplied
when STX is newly enabled during migration, rather than setting it for all migrated users. This ensures the banner's display logic correctly identifies users who need to see the STX announcement.Related issues
Fixes: #29869
Manual testing steps
Screenshots/Recordings
Load old version 12.5.0 and turn STX OFF, go through migration and ensure that:
stx-off-to-on.mp4
Load old version 12.5.0 and turn STX ON, go through migration and ensure that:
stx-on-to-on.mp4
Before
Banner shows for all users after migration, even those who had STX previously enabled.
After
Banner only shows for users where migration newly enabled STX.
Pre-merge author checklist
Pre-merge reviewer checklist
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist