Skip to content

Show every cash currency behind "Show more" on Deposit with cash - #2607

Merged
mul53 merged 1 commit into
qafrom
claude/cash-deposit-show-all-currencies
Sep 29, 2026
Merged

mul53 merged 1 commit into
qafrom
claude/cash-deposit-show-all-currencies

Conversation

@mul53

@mul53 mul53 commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

"Show more" on Deposit with cash now lists all 16 local currencies instead of adding only MXN.

  • Collapsed: unchanged. USD, EUR, BRL, BDT, PHP.
  • Expanded: those, then every other corridor in CARD_FUND_LOCAL_CURRENCIES in that list's order (AED, ARS, COP, GHS, IDR, KES, MXN, MYR, NGN, PEN, UGX, ZMW).
  • DEPOSIT_CASH_CURRENCY_COUNT is derived from the full list, so the "+N" circle on the chooser's Cash row goes from +4 to +15.

Why

DepositCashOptions kept its own allowlist (ADDITIONAL_LOCAL_CURRENCY_CODES = ['MXN']). It dates from when each row fetched its payment-method chips from TransFi, so every extra currency cost a request. Chips now come from the committed CARD_FUND_LOCAL_PAYMENT_METHODS map, so that reason no longer applies, and the card-fund "Cash deposit" group already shows all 16. A new corridor added to localCurrencies.tsx now shows up here too.

For reviewers

  • Replaces Show every cash currency behind "Show more" on Deposit with cash #2606, which was mistakenly built on master. This one is cut from qa.
  • The lists are computed once at module level, which replaces the useMemo.
  • The local-currency rows and the toggle still render only when TransFi is available in the viewer's country (isTransfiAvailable); that's unchanged.
  • I haven't checked this in the running app (it needs a signed-in session). The DepositOption jest suites pass; tsc shows no errors in DepositOption/CardFund, and eslint and prettier are clean for the file.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

"Deposit with cash" only expanded to MXN: the screen kept its own
allowlist of codes, left over from when each row fetched its payment
methods from TransFi. Chips now come from the committed corridor list,
so "Show more" lists every currency in localCurrencies.tsx after the
featured four, and the chooser's "+N" counts them all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 29, 2026 10:40pm UTC
solid-app-staging Ignored Ignored Preview Sep 29, 2026 10:40pm UTC

Request Review

@mul53
mul53 merged commit 0bc6a65 into qa Sep 29, 2026
6 checks passed
@mul53
mul53 deleted the claude/cash-deposit-show-all-currencies branch September 29, 2026 22:43
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.

1 participant