Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Pull the duplicated MoneyInputDisplay + ConvertedMoneySwitcher out of send-input and receive-input into features/shared/money-input-display. The new component composes the raw amount display with the currency switcher and takes the same props both consumers were already threading through.
The prop name now describes intent (fires on invalid input) rather than implementation (shake animation). Consumers still own the animation choice via useAnimation — this just clarifies the contract.
Composes useMoneyInput + useAnimation into a single hook so consumers don't wire them together manually. handleNumberInput is now single-arg (shake fires internally on invalid input). Also exposes showDecimal and inputErrorClassName so consumers don't derive them.
Consolidate useMoneyInputField, MoneyInputLayout, and the display components into a single money-input-layout module. The hook and layout are always used together so they live in one file. Display components are now internal — consumers compose via the layout's slots (children, actions, belowDisplay). Send uses belowDisplay for its destination row between the amount display and account selector.
Add ReceiveQuote type and getReceiveQuote action to the receive store, allowing the buy flow (and future flows) to create receive quotes directly through the store. The provider injects cashu/spark quote creation as dependencies.
Buy flow lets users purchase bitcoin via Cash App Lightning payments. Uses the receive store to create invoices, then deep-links to Cash App for payment. Supports both Cashu and Spark accounts.
Contributor
Author
|
claude opened #905 for me instead, I meant to just force push to this pr. Closing this one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cash.app/launch/lightning/<bolt11>)New files
app/features/buy/— cash-app-logo, buy-provider (reuses receive store), buy-input (amount + numpad + account selector), buy-checkout (quote creation + deep link/QR)app/routes/_protected.buy*.tsx— layout, index, checkout routesModified files
app/features/receive/receive-cashu.tsx— exportedAmountBreakdownCardapp/routes/_protected._index.tsx— new home button layoutTest plan
🤖 Generated with Claude Code