Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review of #490The review ran on The three fixes do what #472 and #479 ask. One real issue should be fixed before merge. The rest are small UX gaps and test gaps. Should fix1. Back during the confirm-time FIL pre-check does not cancel the payment. Verified and reproduced; found independently by three reviewers. Minor, introduced here2. No indicator while the dialog waits for the fresh FIL balance. Verified. 3. Notice handling. Verified.
Suggest typing the notice ( 4. Race: a funded poll during the pre-check is ignored. Reproduced; narrow window. 5. The signing-freshness fix (#472 §2) is not pinned by any test. Verified; reproduced by two reviewers. 6. The settlement
7. Other test gaps found by mutation. Reproduced. Each of these mutations leaves all 108 tests green:
The dialog tests stub Pre-existing (not blocking, FYI)
Notes
🤖 Generated with Claude Code |
|
Follow-up to the review: "Should fix" #1 is fixed in e4cae33.
The test "keeps the review visible while its live balance check is pending" is replaced by "shows progress and disables Back while the live balance check is pending". It checks that Back and Pay are disabled during the read, and that after a funded result nothing runs, the notice shows, and Close is enabled again. It failed on Verified locally: Biome on the changed files, 🤖 Generated with Claude Code |
Mainnet validation preflight (PR head
|
|
Follow-up to the review: the minor items (2–7) are addressed in 7967aae.
Verified locally: Biome on the changed files, 🤖 Generated with Claude Code |
Mainnet validation (PR head
|
Follow-up review at 7967aaeVerdict: no new correctness issues. The "should fix" item and minor items 2–7 are addressed, and CI is green. Rechecked in e4cae33 and 7967aae
CI: the first Test run on 7967aae failed in the subgraph package, not the explorer: Still open (pre-existing, not blocking)
Housekeeping
🤖 Generated with Claude Code |
|
Code looks clean, the interface looks good. I think the copy is all aligned with our standards. I ran mainnet txs with and without the checkbox and it worked as intended. |
| // Busy from the click: Back during the FIL read below would show the form while this payment carries on. | ||
| setSignature(null); | ||
| setStage("preparing"); | ||
| if (reviewed.quote.filGasTopUp) { |
There was a problem hiding this comment.
the effect on 489 already drops a FIL review when a poll sees FIL. Drop this read, the ref, and setQueryData?
There was a problem hiding this comment.
Keeping the confirm-time FIL read for the gap after the last poll and before Pay: read and cache update (L727-L745), covered by the FIL-arrives-before-Pay test (L885-L904). The ref covers a poll that completes during the read, including a stale or failed read: poll/read race test (L945-L983).
Enter the preparing stage before the live FIL read in confirm(), so Back and Pay are disabled while it is pending. Previously Back returned to the form and the payment still ran once the read reported an unfunded wallet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Show "Checking your FIL balance…" while the fresh FIL read gates the quote. - Type the dialog notice so gas-maximum notices stay on the review card and the FIL notice stays on the form, hidden once the wallet is low again. - Treat FIL a background poll saw during the pre-pay check as funded. - Pin the pre-route signer recheck, wagmi-shaped reverts, settlement callback exclusivity, FIL opt-in, balance polls, and quote masking.
…ts/DirectSquidDepositDialog.tsx Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
…ts/DirectSquidDepositDialog.tsx Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
…id-deposit-execution.test.ts Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
…ts/DirectSquidDepositDialog.test.tsx Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
76fa0ea to
6b4605c
Compare
|
Deployment failed for project filecoin-pay-explorer with the following error: |
Drop the confirm-time FIL re-read, its ref and setQueryData, as asked in review; the balance poll already drops a FIL review once FIL lands. Derive "fresh balance not read yet" from the query's isPending instead of mirroring it into state through an effect.
Closes #472
Closes #479
Summary
Decision
#479 replaces #472's "funded starts unchecked" with "funded sees no option". That brings back #377's balance-aware intent and keeps #444's checked default for an unfunded wallet. One shared dialog serves MetaMask and Privy. Following review, the pre-Pay balance re-read was dropped: FIL arriving less than 30 s before Pay can still buy a top-up the user had just approved (about 0.06 USDFC).
Screenshot
Low-FIL recipient in the Squid deposit dialog: the 0.05 FIL top-up is selected by default.
Validation
pnpm lint && pnpm format && pnpm test: passed.pnpm type-check: passed.pnpm build: passed with process-only placeholder values forNEXT_PUBLIC_SUBGRAPH_URL_MAINNETandNEXT_PUBLIC_SUBGRAPH_URL_CALIBRATION.The public subgraph URL values are supplied only for local build-time prerendering; no environment file or deployment configuration changed.