From fdbae7472b42cf9bb8bbdf7d069be287a1cb7fc9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 4 Jul 2026 08:20:41 -0700 Subject: Gift claim: instant 'Payment received!' after claiming Claiming into an existing wallet used to drop onto the Receive tab (address/QR visibly rotating) until the background scan noticed the credit and fired the celebration. The claim already knows it succeeded and for how much, so the celebration now shows immediately; the scan runs behind it and its receive-index advance is acknowledged so the generic celebration doesn't fire a second time. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QFAcD4V284DvYZZHP7Rxxy --- tools/ark/gift-shot.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/ark') diff --git a/tools/ark/gift-shot.js b/tools/ark/gift-shot.js index b4bf2d1..b0c9ca5 100644 --- a/tools/ark/gift-shot.js +++ b/tools/ark/gift-shot.js @@ -83,6 +83,13 @@ await waitText('Claim it', 15000); await sleep(400); await page.screenshot({ path: '/tmp/gift-claim-existing.png' }); console.log('claim copy:', await page.evaluate(() => [...document.querySelectorAll('p')].map((e) => e.textContent).find((x) => x.includes('Claim it')))); + +// claim it — the celebration should be instant (no scan wait) +await clickText('button', 'Claim it'); +const t0 = Date.now(); +const celebrated = await waitText('Payment received', 10000); +console.log('celebration:', celebrated, 'after', Date.now() - t0, 'ms'); +await page.screenshot({ path: '/tmp/gift-claimed.png' }); console.log('done'); await browser.close(); dev.kill(); -- cgit v1.2.3