Skip to content

Conversation

@Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Jan 19, 2026

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

  1. ensureUser() guards identity creation - Returns false for light accounts (account.username == null), skipping identity creation entirely.

  2. uniqueId is randomly generated - Not derived from account keys. Generated via makeUuid() only when creating a new identity.

  3. Storage uses synced dataStore - Identities persist across devices for the same Edge account.

Light → Full Account Transition

Step Action Identity Created?
1 Light account browses market No - ensureUser returns false
2 Light account taps "Next" to purchase Blocked by checkAndShowLightBackupModal
3 User backs up account Account gains username
4 Full account browses again Yes - new identity created
5 Full account purchases Works, identity syncs

Why This Is Safe

  • No orphaned identities: Light accounts cannot create identities
  • No lost purchases: Blocked before order creation

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Note

Introduces centralized navigation and gating for the EdgeSpend (Phaze) gift card flow.

  • Adds navigateToGiftCards action to require country selection and route to giftCardList or giftCardMarket based on stored Phaze identity; updates HomeScene and SideMenu to use it
  • GiftCardMarketScene: adds fallback country selection via modal + synced settings, auto goBack() if none selected
  • GiftCardPurchaseScene: blocks light accounts at purchase via checkAndShowLightBackupModal
  • CHANGELOG: notes new EdgeSpend (Phaze) gift card feature

Written by Cursor Bugbot for commit 2eb6f84. This will update automatically on new commits. Configure here.


@Jon-edge Jon-edge force-pushed the jon/fix/final-phaze branch from 8b9a060 to 8f10cdd Compare January 19, 2026 23:42
@Jon-edge Jon-edge force-pushed the jon/fix/final-phaze branch from 8f10cdd to 2eb6f84 Compare January 20, 2026 22:58
@Jon-edge Jon-edge enabled auto-merge January 20, 2026 22:59
@Jon-edge Jon-edge merged commit 71e7a79 into develop Jan 20, 2026
4 checks passed
@Jon-edge Jon-edge deleted the jon/fix/final-phaze branch January 20, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants