Skip to content

Show banks, spending limits and cards in the UI - #28

Merged
IAmJSD merged 2 commits into
bank/4-cryptofrom
bank/5-ui
Oct 21, 2026
Merged

IAmJSD merged 2 commits into
bank/4-cryptofrom
bank/5-ui

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Part 5 of 7 in the bank stack, on #27.

What this adds

  • Settings → Bank: each bank the server has set up, its balance, and any whose settings are wrong.
  • A nibblet's settings → Spending, shown once there's a bank:
    • a limit per currency and period, and what's left of each
    • its cards, each one that isn't closed with a Kill button
    • what a card is waiting on: being made, or closing until its provider settles it
    • closed cards behind a toggle
  • Cards update live from cards_changed.
  • The mock server (?mock=1) has a Slash and a Bitcoin bank and a few of Pip's cards, to try it.

I checked it in the mock at desktop and phone widths: killing a card, saving a limit and the "left" amounts all update.

Setting a bank up from here comes in #31.

Screenshots

All from the mock server (?mock=1).

Settings → Bank

Bank section listing Slash and Bitcoin (signet) with balances

Pip's settings → Spending, then with closed cards shown, then after killing the Lisbon flight card (USD left goes from 17.12 to 137.12)

Spending limits and three open cards The same, with the closed registrar card shown After killing the flight card: two open cards, 2 closed

Phone width

Bank section at phone width Spending section at phone width

Review fixes

  • The Spending form resets only when the saved limits change, not on every live update to the nibblet, which wiped a half-typed limit.
  • Card events no longer refetch bank status, which asks every provider for its balance.

Checks

pnpm format:check, pnpm -r typecheck, pnpm --filter @nibblet/web build and pnpm test pass.


Generated by Claude Code

claude and others added 2 commits October 21, 2026 11:15
Settings gains a Bank section: each bank the server has set up, what it has
left to fund cards with, and any whose settings are wrong. A nibblet's
settings gain Spending, shown once there's a bank: a limit per currency and
period, what's left of each, and its cards, each one that isn't closed with
a Kill button and what it's waiting on (being made, or closing until its
provider settles it). Cards update live as they're made, spent on and
killed.

The mock server has a Slash and a Bitcoin bank and a few of Pip's cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KGXXQcj3hZN2jiB6As6kk5
…ents

- The Spending form only resets when the saved limits change, not on every
  live update to the nibblet, which wiped what was being typed.
- A card event no longer refetches the banks' status, which asks every
  provider for its balance and has nothing a card changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IAmJSD
IAmJSD merged commit 5ef2dbd into main Oct 21, 2026
4 of 6 checks passed
@IAmJSD
IAmJSD deleted the bank/5-ui branch October 21, 2026 10: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.

2 participants