feat: add manteca claim link#1275
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughAdds a waitForTx boolean to the claim flow and threads it through actions, services, and the Manteca review step. Makes history completion async, adds BRIDGE_GUEST_OFFRAMP type, and integrates currency pricing/uppercasing into history processing. Updates Manteca details step with validated input and error state. Normalizes USD code checks to case-insensitive. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/app/actions/claimLinks.ts
📄 File: src/app/actions/history.ts (Click to Expand)
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
src/app/actions/claimLinks.ts(2 hunks)src/app/actions/history.ts(1 hunks)src/components/Claim/Link/views/MantecaDetailsStep.view.tsx(2 hunks)src/components/Claim/Link/views/MantecaReviewStep.tsx(2 hunks)src/components/TransactionDetails/TransactionCard.tsx(1 hunks)src/services/sendLinks.ts(1 hunks)src/utils/history.utils.ts(4 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2024-10-25T11:33:46.776Z
Learnt from: jjramirezn
PR: peanutprotocol/peanut-ui#484
File: src/components/Cashout/Components/Initial.view.tsx:273-274
Timestamp: 2024-10-25T11:33:46.776Z
Learning: In the `InitialCashoutView` component (`src/components/Cashout/Components/Initial.view.tsx`), linked bank accounts should not generate error states, and the `ValidatedInput` component will clear any error messages if needed. Therefore, it's unnecessary to manually clear the error state when selecting or clearing linked bank accounts.
Applied to files:
src/components/Claim/Link/views/MantecaDetailsStep.view.tsx
📚 Learning: 2025-08-14T14:42:54.411Z
Learnt from: Zishan-7
PR: peanutprotocol/peanut-ui#1094
File: src/utils/withdraw.utils.ts:181-191
Timestamp: 2025-08-14T14:42:54.411Z
Learning: The countryCodeMap in src/components/AddMoney/consts/index.ts uses uppercase 3-letter country codes as keys (like 'AUT', 'BEL', 'CZE') that map to 2-letter country codes, requiring input normalization to uppercase for proper lookups.
Applied to files:
src/components/TransactionDetails/TransactionCard.tsx
🧬 Code graph analysis (6)
src/components/Claim/Link/views/MantecaReviewStep.tsx (2)
src/services/sendLinks.ts (1)
sendLinksApi(37-217)src/constants/manteca.consts.ts (1)
MANTECA_DEPOSIT_ADDRESS(1-1)
src/services/sendLinks.ts (2)
src/services/services.types.ts (1)
SendLink(349-391)src/app/actions/claimLinks.ts (1)
claimSendLink(86-112)
src/app/actions/history.ts (1)
src/utils/history.utils.ts (1)
completeHistoryEntry(188-279)
src/components/Claim/Link/views/MantecaDetailsStep.view.tsx (2)
src/constants/manteca.consts.ts (1)
MANTECA_COUNTRIES_CONFIG(67-120)src/utils/withdraw.utils.ts (1)
validateCbuCvuAlias(160-196)
src/utils/history.utils.ts (1)
src/app/actions/currency.ts (1)
getCurrencyPrice(8-41)
src/components/TransactionDetails/TransactionCard.tsx (1)
src/utils/general.utils.ts (1)
formatNumberForDisplay(334-380)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Deploy-Preview
No description provided.