Repository navigation
fix(flashcard): put the Cashu card's actions under its balance - #748
Merged
Merged
Conversation
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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Requested during the 2026-10-02 device test.
🤖 Generated with Claude Code