Skip to content

feat(send): offline send suggestions sheet#181

Merged
Kelbie merged 1 commit intomainfrom
feat/send-offline-suggestions
Mar 7, 2026
Merged

feat(send): offline send suggestions sheet#181
Kelbie merged 1 commit intomainfrom
feat/send-offline-suggestions

Conversation

@Kelbie
Copy link
Contributor

@Kelbie Kelbie commented Mar 7, 2026

What / Why

  • When offline and the requested send amount requires a swap, users now see suggestions for nearby amounts they can send without a swap
  • Improves offline UX by surfacing round-down and round-up options based on available proof denominations

What changed

  • New offlineSendSuggestions lib: builds exact-amount index from proofs, computes round-down/round-up suggestions
  • New offline-send-suggestions sheet (popup) triggered from currency screen when offline and amount not exactly sendable
  • OfflineProvider moved from tab layout to app root so send-flow has access
  • Sheet layout config for offline-suggestions height
  • Unit tests for suggestion logic

Test plan

  1. Go offline (airplane mode)
  2. Open send flow, enter an amount that doesn't match available proof denominations
  3. Verify suggestions sheet appears with round-down/round-up options
  4. Run npm test offlineSendSuggestions — all 6 tests pass

Notes / Risks

  • None

Made with Cursor

- Add offline send suggestions when requested amount requires swap
- Show round-down/round-up options based on available proof denominations
- New sheet triggered from currency screen when offline and amount not exact
- OfflineProvider moved to app root for send-flow access
- Add offlineSendSuggestions lib with exact-amount index and unit tests

Made-with: Cursor
@Kelbie Kelbie merged commit 75b9c3a into main Mar 7, 2026
1 check passed
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.

1 participant