Skip to content

feat(keychain): show USD equivalent in bundle checkout cost breakdown - #2659

Merged
bal7hazar merged 1 commit into
mainfrom
feat/bundle-usd-price-prefix
Jul 21, 2026
Merged

bal7hazar merged 1 commit into
mainfrom
feat/bundle-usd-price-prefix

Conversation

@bal7hazar

Copy link
Copy Markdown
Collaborator

Summary

  • Prefix the payment-token amount in the bundle checkout cost breakdown with its USD equivalent when available, rendered as ($107.50) 107.50 — the price in parentheses in foreground-300, the token amount keeping its existing style.
  • Applied to both token branches (payment token identical to the quote's, and Ekubo-converted equivalent). Fiat rails (Credits/Coinflow/Apple Pay) already display USD and the Layerswap total includes bridge fees, so they are unchanged.
  • Make the onchain checkout page select-none (content + footer).
  • Fix the onchain-cost stories, which were broken by the missing CreditPurchaseContext mock, and add a USDCPaymentWithUsdPrefix story covering the new prefix.

Testing

  • Verified in Storybook: prefix shown with usdAmount set, rendering unchanged when unavailable.
  • tsc -b, ESLint and Prettier pass; pre-commit hooks (lint, tests, build) green.

🤖 Generated with Claude Code

…eckout

Prefix the payment-token amount in the cost breakdown with its USD
equivalent (in parentheses, foreground-300) when available, and make the
onchain checkout page select-none. Also fix the onchain-cost stories,
which were broken by the missing CreditPurchaseContext mock, and add a
story covering the USD prefix.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
controller-example-next Ready Ready Preview Jul 21, 2026 1:39pm
controller-ui Ready Ready Preview Jul 21, 2026 1:39pm
keychain Ready Ready Preview Jul 21, 2026 1:39pm
keychain-storybook Ready Ready Preview Jul 21, 2026 1:39pm

Request Review

This branch was successfully deployed

4 active deployments
Preview – keychain-storybook — 0ae5461e Deployed Jul 21, 2026 by vercel[bot]
Preview – keychain — 0ae5461e Deployed Jul 21, 2026 by vercel[bot]
Preview – controller-ui — 0ae5461e Deployed Jul 21, 2026 by vercel[bot]
Preview – controller-example-next — 0ae5461e Deployed Jul 21, 2026 by vercel[bot]
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