Repository navigation
fix(flashcard): stop showing the raw lnurlw payload in the unsupported-card toast - #723
Merged
Merged
Conversation
islandbitcoin
force-pushed
the
fix/flashcard-log-withdraw-params
branch
from
September 22, 2026 23:12
a27982a to
eb81819
Compare
islandbitcoin
force-pushed
the
fix/flashcard-toast-payload
branch
from
September 22, 2026 23:12
d508a0b to
773d366
Compare
islandbitcoin
changed the base branch from
fix/flashcard-log-withdraw-params
to
main
September 23, 2026 18:16
…d-card toast When a tapped card resolves to something other than a withdrawRequest, the toast interpolated the full lnurlw payload (which carries the card's p/c parameters) and the LNURL server's reason string into the message. Replace both with fixed, actionable text. Tests cover the non-withdraw tag and the error-object response with synthetic parameter-bearing input and assert nothing sensitive reaches the toast or the console. Co-Authored-By: Claude Fable 5.1 <[email protected]>
islandbitcoin
force-pushed
the
fix/flashcard-toast-payload
branch
from
September 23, 2026 18:17
773d366 to
e3d097a
Compare
Review fix: the error-object test only asserted a toast fired. It now pins the fixed Flashcard message via objectContaining, scans console output for card secrets like the sibling tests, and asserts k1 stays unset. 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.
Why
Follow-up from #721. In
getPayDetails, when the tapped card is not awithdrawRequest, the error toast interpolated the fulllnurlwpayload and the LNURL server'sreasonstring on screen. The payload carries the card'sp/cparameters.What
Fixed text only: "This card is not set up as a Flashcard. Please tap a Flashcard." Neither the payload nor the server reason is rendered. The catch-path toast was already fixed text.
Two tests added to the Flashcard spec, both with synthetic parameter-bearing input (a
payRequesttag and an{status: "ERROR", reason}object whose strings contain the card URL, k1 and callback): they assert the toast message and that no secret appears in any toast argument or console output. No card or payment behaviour changes.Stacked on #721 (base branch
fix/flashcard-log-withdraw-params); retarget tomainonce #721 merges.Validation
yarn check-codegreen.yarn testfull suite green (see PR checks / Buzz issue for counts).Buzz issue:
92194f3413c76c4d410136c2e53a01f57ca9005c7c09048dccf172be7f742155🤖 Generated with Claude Code