Skip to content

[906] Frontend: Add robust form validation for deposit/withdraw flows - #919

Merged
Junirezz merged 3 commits into
Junirezz:mainfrom
Max-Owolabi:fix/906-frontend-add-robust-form-validation-for-deposit-withdraw-flows
Jul 29, 2026
Merged

[906] Frontend: Add robust form validation for deposit/withdraw flows#919
Junirezz merged 3 commits into
Junirezz:mainfrom
Max-Owolabi:fix/906-frontend-add-robust-form-validation-for-deposit-withdraw-flows

Conversation

@Max-Owolabi

Copy link
Copy Markdown
Contributor

Summary

  • Harden deposit/withdraw amount validation to match API AmountSchema (max 7 decimals, no scientific notation) via shared parseAmountInput
  • Gate the Review CTA on live validation, force-validate before advancing, and use vault holdings (not wallet USDC) for withdraw balance checks
  • Add docs (FRONTEND_FORM_VALIDATION.md), schema/component coverage, and fix pre-existing frontend unit failures that blocked Monorepo CI

Closes #906

Test plan

  • cd frontend && npm run test:run (740 tests)
  • cd frontend && npm run build
  • cd frontend && npm run lint
  • npm run test:validate-frontend-env
  • CI Monorepo CI (frontend lint + test + build) green on this PR

Max-Owolabi and others added 2 commits July 24, 2026 10:37
Align amount rules with API precision, validate before review,
use vault holdings for withdraw balances, and revalidate on change.

Closes Junirezz#906
Add deposit/withdraw schema cases for API AmountSchema parity and withdraw
XLM fees, and fix pre-existing frontend unit test failures that blocked
Monorepo CI. Narrow scripts vitest config to the env validation suite.

Co-authored-by: Cursor <cursoragent@cursor.com>
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Max-Owolabi 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

Clear eslint errors that fail Monorepo CI, migrate api-schemas to
Node16 module resolution for modern TypeScript, and bump ethnum to
1.5.3 so Rust docs compile on current stable.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Junirezz
Junirezz merged commit f809861 into Junirezz:main Jul 29, 2026
12 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Add robust form validation for deposit/withdraw flows

2 participants