Skip to content

Feat/frontend modal format slippage csv - #703

Merged
Emmy123222 merged 3 commits into
Emmy123222:mainfrom
nonso7:feat/frontend-modal-format-slippage-csv
Jul 29, 2026
Merged

Feat/frontend modal format slippage csv#703
Emmy123222 merged 3 commits into
Emmy123222:mainfrom
nonso7:feat/frontend-modal-format-slippage-csv

Conversation

@nonso7

@nonso7 nonso7 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Smart contract change

Related issue

Closes #

Changes

Testing

  • Tested locally on Testnet
  • Added/updated unit tests
  • Manually tested UI flow

Screenshots (if UI change)

Checklist

  • My code follows the project style
  • I've updated docs if needed
  • No console errors or warnings
  • I've rebased on latest main

Closes #616
Closes #619
Closes #627
Closes #628

nonso7 and others added 3 commits July 29, 2026 11:05
QRCodeModal, PaymentStatusModal and QuickSendModal each carried their own
backdrop, dialog semantics, Escape handling and (in two of three) a copy of the
same focus-trap/focus-return logic.

Adds components/Modal.tsx owning all of it, with per-modal behaviour kept as
props: overlay/panel classes, backdrop-click and Escape opt-outs (the payment
tracker still refuses both until the flow is terminal) and an optional
body-scroll lock (quick send).

QuickSendModal now gets the focus trap it lacked, and role="dialog" moved from
the backdrop onto the panel — its backdrop-click test targets the backdrop
directly. Initial focus is set in the effect rather than a rAF, which also fixes
the previously failing QRCodeModal focus-trap test.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Market orders built a strict-receive path payment whose destination amount was
just the input amount, so there was no protection against the price moving.

TradeForm now quotes the pair (debounced) via the new fetchStrictSendQuote,
shows the expected and minimum received amounts, and lets the user pick a
tolerance (0.1/0.5/1% presets or a custom value up to 50%). Submission re-quotes
and builds a strict-send path payment whose destMin is the fresh quote reduced
by that tolerance, over the quoted path.

Amounts in the quote panel go through the shared formatAsset helper (Emmy123222#628).

Also corrects two limit-order test expectations that asserted a success message
the component never produced.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…23222#616, Emmy123222#628)

Emmy123222#628 — utils/format.ts gains formatAssetPrecise/formatXLMPrecise for the
full-precision, trailing-zero form the batch total renders by hand today.
BatchPaymentForm's total and both RecurringPayments amount labels now use the
shared formatters instead of inline string building.

Emmy123222#616 — parseBatchRecipientsCSV reads address/amount/memo from a CSV, with an
optional (and reorderable) header row and positional fallback. Malformed rows
come back flagged rather than dropped, and BatchPaymentForm imports them as
failed rows with an inline reason so the valid recipients around them stay
sendable. Rows past the 10-recipient cap are reported as skipped.

Also fixes the fixture addresses in BatchPaymentForm.test.tsx, which were 59
characters and so failed the suite's own 56-character validity mock.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@nonso7 is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@nonso7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emmy123222
Emmy123222 merged commit ae91f39 into Emmy123222:main Jul 29, 2026
8 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants