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.
Consolidate navigation logic for the EdgeSpend feature into a helper action to ensure a region selection is guaranteed. Allow light account users to browse cards but block only at the purchase step.
Additional notes:
Light accounts can safely browse gift cards without creating a Phaze identity. Identity creation is deferred until a full account attempts to purchase.
Identity Creation Flow
ensureUser()guards identity creation - Returnsfalsefor light accounts (account.username == null), skipping identity creation entirely.uniqueIdis randomly generated - Not derived from account keys. Generated viamakeUuid()only when creating a new identity.Storage uses synced
dataStore- Identities persist across devices for the same Edge account.Light → Full Account Transition
ensureUserreturns falsecheckAndShowLightBackupModalusernameWhy This Is Safe
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have:
Note
Introduces centralized navigation and gating for the EdgeSpend (Phaze) gift card flow.
navigateToGiftCardsaction to require country selection and route togiftCardListorgiftCardMarketbased on stored Phaze identity; updatesHomeSceneandSideMenuto use itGiftCardMarketScene: adds fallback country selection via modal + synced settings, autogoBack()if none selectedGiftCardPurchaseScene: blocks light accounts at purchase viacheckAndShowLightBackupModalWritten by Cursor Bugbot for commit 2eb6f84. This will update automatically on new commits. Configure here.