Commit be24760
committed
Add multi-step top-up flow with QR invoice support
Redesign budget modal from single screen to multi-step flow:
- Step 1: Balance display with single Top Up button
- Step 2: Preset amount tiles (50/100/500/1000) + custom input
- Step 3: QR code invoice with copy button and balance polling
Sphinx users skip to payment directly. WebLN users pick amount
then pay via extension. Manual users (L402 but no wallet) get
QR invoice flow via /top_up_lsat with 5-minute polling timeout.
Adds qrcode.react, topUpLsat/topUpConfirm API functions, and
plan doc for future no-wallet invoice flow via /buy_lsat.1 parent df608bb commit be24760
File tree
6 files changed
+436
-114
lines changed- plans
- src
- components/modals
- lib/sphinx
6 files changed
+436
-114
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments