Skip to content

fix(flashcard): put the Cashu card's actions under its balance - #748

Merged
islandbitcoin merged 2 commits into
mainfrom
jabariennis/flashcard-v2-actions-first
Oct 4, 2026
Merged

islandbitcoin merged 2 commits into
mainfrom
jabariennis/flashcard-v2-actions-first

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

The Cashu card screen listed its actions (Top up, Set or Change PIN, Remove card) last, below the PIN notice and the details card (slots, applet version, card id). They now sit right under the balance.

  • flashcard-v2.tsx: the buttons block moves up, unchanged. No style changes, since the blocks below it keep their own top margins.
  • Test: a new card-screen test pins the order (balance, actions, PIN notice, details). It fails on the old layout.

Requested during the 2026-10-02 device test.

🤖 Generated with Claude Code

Dread and others added 2 commits October 2, 2026 10:11
Top up, Set or Change PIN and Remove card sat at the bottom of the card
screen, below the PIN notice and the details card (slots, applet version,
card id), so the actions were the last thing on the screen. They now sit
right under the balance, above the PIN notice and the details.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The order test found the action row by its Top up label alone, so it held
only one of the three actions the screen moves. Remove card could drop back
below the card details and nothing failed, and on a blocked or unknown-PIN
card that is the only action the row has.

Check Top up, Change PIN and Remove card each sit between the balance and
the PIN notice. Fails on a layout that splits Remove card off to the bottom,
and on the pre-#748 layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@islandbitcoin
islandbitcoin merged commit 6138969 into main Oct 4, 2026
8 of 9 checks passed
islandbitcoin pushed a commit that referenced this pull request Oct 5, 2026
Replaces the static flashcard.png with the Flash Card physical design
(Concept A, Bearer) as vector art: app/components/flashcard-v2-art/
cardArtV2.tsx is a byte-for-byte copy of flash-pos's card face, and the
parity spec pins the file's SHA-256, the node digest and the rendered
trees so the two apps cannot drift without a test failing. The card is
drawn in flow (centred, 10 dp above, 16 dp below) instead of the old
PNG's absolute placement, so the balance and the action row sit where
they did on main. In dark mode a 1 dp outline keeps the near-black card
visible on the black page. The accessibility label says the card's
masked id letter by letter ("Flashcard ending 0 C 6 7"); the printed id
derives from the pubkey's last four hex digits as in flash-pos.

FLASH, BEARER CARD and ₿ are outlined Inter glyph paths; the bundled
Sora fonts and those glyphs are credited in THIRD_PARTY_NOTICES.md. The
shared file keeps flash-pos's Prettier style through a self-contained
override. New i18n key FlashcardV2.cardEnding; translations regenerated.

Rebased onto main after #748-#754; the branch's own copy of #748's
action-row move was dropped in favour of main's.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
islandbitcoin added a commit that referenced this pull request Oct 6, 2026
* feat(flashcard): draw the Bearer card on the Cashu card screen

Replaces the static flashcard.png with the Flash Card physical design
(Concept A, Bearer) as vector art: app/components/flashcard-v2-art/
cardArtV2.tsx is a byte-for-byte copy of flash-pos's card face, and the
parity spec pins the file's SHA-256, the node digest and the rendered
trees so the two apps cannot drift without a test failing. The card is
drawn in flow (centred, 10 dp above, 16 dp below) instead of the old
PNG's absolute placement, so the balance and the action row sit where
they did on main. In dark mode a 1 dp outline keeps the near-black card
visible on the black page. The accessibility label says the card's
masked id letter by letter ("Flashcard ending 0 C 6 7"); the printed id
derives from the pubkey's last four hex digits as in flash-pos.

FLASH, BEARER CARD and ₿ are outlined Inter glyph paths; the bundled
Sora fonts and those glyphs are credited in THIRD_PARTY_NOTICES.md. The
shared file keeps flash-pos's Prettier style through a self-contained
override. New i18n key FlashcardV2.cardEnding; translations regenerated.

Rebased onto main after #748-#754; the branch's own copy of #748's
action-row move was dropped in favour of main's.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* feat(flashcard): draw the Bearer card as the home row's thumbnail

The home screen's Cashu card row used the BoltCard's flag icon. It now shows
the Flashcard v2 art (FlashcardV2Art) at the icon's width, without the card
screen's drop shadow, and hidden from screen readers: the row's title and
amount already say what it is. `Balance` takes an optional `iconNode` to
draw in place of its icon; the BoltCard row keeps its icon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Dread <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
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