feat(web): remind high-balance users to self-custody $AUDIO#14442
Open
raymondjacobson wants to merge 1 commit into
Open
feat(web): remind high-balance users to self-custody $AUDIO#14442raymondjacobson wants to merge 1 commit into
raymondjacobson wants to merge 1 commit into
Conversation
Adds a wallet-page modal that encourages users holding 1000 or more $AUDIO to move their balance to an external wallet. Dismissing (or closing) suppresses the modal for two weeks via localStorage. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Contributor
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14442.audius.workers.dev Unique preview for this PR (deployed from this branch). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
/walletpage that encourages users holding 1000 $AUDIO or more (in-appaccountBalance) to move their balance to an external wallet they control.localStorage(secureWalletReminderDismissedAt) for 2 weeks before the modal can reappear.Implementation notes
SecureWalletReminderModalrendered fromWalletPage, gated onaccountBalance >= AUDIO(1000)viauseAudioBalance(). UsesaccountBalance(custodial erc/spl balance) rather thantotalBalance, so users who've already linked external wallets aren't nagged.Modal/ModalHeader/ModalContent/ModalFooterpattern.Test plan
/wallet, confirm modal appears/wallet— modal does not reappear within 2 weeks🤖 Generated with Claude Code