Skip to content

[11] feat(checkout): auto-resume lone deposit and abandon transfer flow#807

Open
tomiiide wants to merge 4 commits into
checkout/10-cash-fiat-quote-flowfrom
checkout/11-flow-cleanup
Open

[11] feat(checkout): auto-resume lone deposit and abandon transfer flow#807
tomiiide wants to merge 4 commits into
checkout/10-cash-fiat-quote-flowfrom
checkout/11-flow-cleanup

Conversation

@tomiiide

Copy link
Copy Markdown
Contributor

Which Linear task is linked to this PR?

Why was it implemented this way?

Cleanup pass on the checkout flow, stacked on #10. Grouped because the changes share the pending-checkout lifecycle and the same i18n/test scaffolding:

  • Auto-resume: a single in-flight deposit resumes on the funding screen; failed or multiple records stay in the activity list so the user picks. pickAutoResumeItem keeps the selection rule in one tested place.
  • Abandon transfer: back on transfer-deposit is destructive (the deposit address is committed), so it prompts a confirmation that clears the frozen quote + pending record rather than silently navigating.
  • Route-not-found: non-wallet funding sources get checkout-specific copy ("can't buy this token here") instead of the generic swap card.
  • Status step labels: state-aware (upcoming/loading/done) so the step list reads as progress, not a static list.
  • Resumed exchange on error: resumed exchange records have no live session to retry against, so a poll error marks them failed and routes retry to amount entry.
  • Cash subtext: the fiat "pay" field already shows the amount; the token subtext under it was noise.

Visual showcase (Screenshots or Videos)

N/A

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.
  • If this PR modifies the Widget API or adds new features that require documentation, I have updated the documentation in the public-docs repository.

- Auto-resume a single in-flight deposit; failed/multiple stay listed
- Abandon a transfer from the back button (clears quote + pending record)
- Checkout-specific route-not-found copy for non-wallet sources
- State-aware status step labels (upcoming/loading/done)
- Fail resumed exchange records on poll error; retry goes to amount entry
- Hide redundant token subtext under the cash "pay" field
@changeset-bot

changeset-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2ecd2cd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@lifi/widget-checkout Minor
@lifi/widget Patch
nft-checkout Patch
tanstack-router-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

tomiiide added 2 commits June 26, 2026 02:09
- Cards follow the widget theme (shared border radius); from/to token
  icons and labels and the header back button align with content.
- Refresh-quotes button now refetches; route query keeps previous data
  so values update in place instead of flashing a skeleton.
- Drop funding-screen activity cards and the Mesh error message.
- Reuse the widget send-to-wallet card for the recipient and the shared
  step link on the status page.
- A quote with no deposit address is treated as unavailable; back from
  the amount screen no longer returns to set-destination.
- Cash card: disclaimer moved inside, smoother expand, tighter spacing.
- Transak close shown immediately; block destination token as source.
- Add copy-address feedback on the transfer QR page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants