Skip to content

feat(frontend): upgrade dependencies and refactor Fiat Onramp Integration Interface#1239

Merged
emdevelopa merged 2 commits into
emdevelopa:mainfrom
Abidoyesimze:feature/fe-upgrade-dependencies-and-refactor-fiat-onramp-integration-interface
Jul 24, 2026
Merged

feat(frontend): upgrade dependencies and refactor Fiat Onramp Integration Interface#1239
emdevelopa merged 2 commits into
emdevelopa:mainfrom
Abidoyesimze:feature/fe-upgrade-dependencies-and-refactor-fiat-onramp-integration-interface

Conversation

@Abidoyesimze

Copy link
Copy Markdown
Contributor

Summary

  • Builds on feat(frontend): enhance interactive loading states in Fiat Onramp Integration Interface #1237 and feat(frontend): implement internationalization (i18n) support for Fiat Onramp Integration Interface #1238 (those must land first) — FiatOnrampModal (deposit) and the existing WithdrawalModal duplicated the same SEP-0001 discovery -> SEP-0010 auth -> SEP-0024 interactive-URL sequence almost line for line. Extracts useSep24AnchorFlow, a single hook that drives both directions and owns the CONNECTING/AUTH/SUBMITTING/READY state machine, and ports both modals onto it.
  • WithdrawalModal's visible behavior is unchanged aside from gaining the same "connecting" loading state FiatOnrampModal already had (previously a bare disabled button during anchor discovery).
  • Dependency upgrades: framer-motion (^12.41.0 -> ^12.42.2) and next-intl (^4.8.3 -> ^4.13.4) — the two libraries this module depends on directly, both safe in-range patch/minor bumps verified against the full test suite.
  • stellar-sdk and @stellar/freighter-api also have updates available, but they're major version jumps (12->13, 1->6) used app-wide well beyond this module — bumping them here would risk an unreviewed blast radius across unrelated payment flows, so left out of scope.

Note: since this branch is built on top of the #1212 branch, this diff includes those commits until #1237 and #1238 merge — the "Files changed" tab will show only the refactor/upgrade-specific delta once they do.

Test plan

  • vitest run src/hooks/useSep24AnchorFlow.test.ts — 6/6 passing (idle state, deposit walk-through, withdrawal branch, unsupported-anchor error path, wallet-unavailable error path, reset)
  • vitest run src/components/FiatOnrampModal.test.tsx — 7/7 passing after the refactor
  • tsc --noEmit clean on touched files
  • eslint clean on touched files

Closes #1213

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

Abidoyesimze and others added 2 commits July 24, 2026 21:08
Replaces the hardcoded English copy added for the SEP-24 deposit modal
(title, form labels, per-step loading messages, error fallback, iframe
title) with next-intl translations under a new "fiatOnramp" namespace,
translated for all three supported locales (en, es, pt). The dashboard's
"Buy / Deposit" trigger button is localized too since it's part of the
same feature surface.

Closes emdevelopa#1212

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
FiatOnrampModal (deposit) and WithdrawalModal duplicated the same
SEP-0001 discovery -> SEP-0010 auth -> SEP-0024 interactive-URL sequence
almost line for line. Extracts useSep24AnchorFlow, a single hook that
drives both directions and owns the CONNECTING/AUTH/SUBMITTING/READY
state machine, and ports both modals onto it. WithdrawalModal's visible
behavior is unchanged aside from gaining the same "connecting" loading
state FiatOnrampModal already had, instead of a bare disabled button.

Also bumps framer-motion (^12.41.0 -> ^12.42.2) and next-intl
(^4.8.3 -> ^4.13.4), the two libraries this module depends on directly,
both safe in-range updates verified against the full test suite.
stellar-sdk and @stellar/freighter-api have major-version updates
available (12->13, 1->6) but are used app-wide well beyond this module,
so bumping them is out of scope here to avoid an unreviewed blast radius.

Closes emdevelopa#1213

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Abidoyesimze
Abidoyesimze force-pushed the feature/fe-upgrade-dependencies-and-refactor-fiat-onramp-integration-interface branch from 84416e1 to 8058f22 Compare July 24, 2026 20:12
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Abidoyesimze 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

@emdevelopa
emdevelopa merged commit 50ef47e into emdevelopa:main Jul 24, 2026
2 of 5 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] Upgrade dependencies and refactor Fiat Onramp Integration Interface

2 participants