Skip to content

Peanut wallet: sync main into dev#1258

Merged
Hugo0 merged 10 commits intopeanut-wallet-devfrom
peanut-wallet
Sep 28, 2025
Merged

Peanut wallet: sync main into dev#1258
Hugo0 merged 10 commits intopeanut-wallet-devfrom
peanut-wallet

Conversation

@Hugo0
Copy link
Contributor

@Hugo0 Hugo0 commented Sep 28, 2025

No description provided.

@vercel
Copy link

vercel bot commented Sep 28, 2025

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

Project Deployment Preview Comments Updated (UTC)
peanut-wallet Ready Ready Preview Comment Sep 28, 2025 2:38pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 28, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This PR standardizes KYC fields (bridgeKycStatus → kycStatus), removes the Support modal in favor of /support navigation, adds PINTA/PNT flows and rewards, refactors Exchange Rate APIs/components (and deletes the widget/page), adjusts claim/bank/request flows, updates health API caching headers, and removes several components/hooks.

Changes

Cohort / File(s) Change summary
KYC field migration
src/interfaces/interfaces.ts, `src/app/(mobile-ui)/*/(history
home
Support modal removal → route navigation
src/context/SupportModalContext.tsx, `src/components/Global/(SupportDrawer
SupportCTA)/*, src/components/Global/(Banner
Exchange Rate refactor and removals
src/components/ExchangeRate/index.tsx, src/hooks/use(Get)ExchangeRate.tsx, src/components/Global/ExchangeRateWidget/* (deleted), src/app/(mobile-ui)/profile/exchange-rate/page.tsx (deleted), src/app/(mobile-ui)/withdraw/[country]/bank/page.tsx, src/components/Claim/Link/views/Confirm.bank-claim.view.tsx, src/components/LandingPage/noFees.tsx
Simplified ExchangeRate props to accountType; removed nonEuro/sourceCurrency. Removed enabled flags from hooks; always fetch. Deleted ExchangeRateWidget and profile page; inlined exchange UI into Landing NoFees. Updated consumers.
PINTA/PNT features and rewards
src/constants/zerodev.consts.ts, src/hooks/wallet/useWallet.ts, src/components/Global/RewardsModal/*, src/app/(mobile-ui)/home/page.tsx, `src/assets/(illustrations
peanut)/, src/components/Payment/(Form
Claim/request flow streamlining
`src/components/Claim/(Claim.tsx
Link/Initial.view.tsx
Health API caching controls
`src/app/api/health/(route
backend/route).ts`
Withdraw flow tweaks
`src/app/(mobile-ui)/withdraw/(page
crypto/page).tsx`
Add/Withdraw forms and country data
`src/components/AddWithdraw/(AddWithdrawCountriesList
DynamicBankAccountForm).tsx, src/components/AddMoney/UserDetailsForm.tsx, src/components/AddMoney/consts/index.ts, src/constants/countryCurrencyMapping.ts`
Profile UI updates
`src/components/Profile/(index
components/*
Setup/passkey and unsupported browser
src/app/(setup)/setup/page.tsx, `src/components/Setup/Views/(Welcome
SetupPasskey).tsx, src/components/Global/UnsupportedBrowserModal/*, src/hooks/usePasskeySupport.ts` (deleted)
General UI/text tweaks
src/components/Global/TokenAmountInput/*, src/components/Tooltip/*, src/components/Setup/Views/Signup.tsx, src/constants/general.consts.ts, public/game/peanut-game.html, `src/components/TransactionDetails/(TransactionDetailsDrawer
TransactionDetailsReceipt).tsx, src/components/Request/direct-request/views/Initial.direct.request.view.tsx, src/components/Global/Layout/index.tsx`

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~120 minutes

Possibly related PRs

Suggested reviewers

  • jjramirezn
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch peanut-wallet

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between da0e6d2 and cc4fafb.

📒 Files selected for processing (107)
  • public/game/peanut-game.html (1 hunks)
  • src/app/(mobile-ui)/add-money/[country]/bank/page.tsx (6 hunks)
  • src/app/(mobile-ui)/history/page.tsx (2 hunks)
  • src/app/(mobile-ui)/home/page.tsx (9 hunks)
  • src/app/(mobile-ui)/layout.tsx (2 hunks)
  • src/app/(mobile-ui)/profile/exchange-rate/page.tsx (0 hunks)
  • src/app/(mobile-ui)/withdraw/[country]/bank/page.tsx (2 hunks)
  • src/app/(mobile-ui)/withdraw/crypto/page.tsx (1 hunks)
  • src/app/(mobile-ui)/withdraw/page.tsx (0 hunks)
  • src/app/(setup)/setup/page.tsx (1 hunks)
  • src/app/[...recipient]/client.tsx (7 hunks)
  • src/app/[...recipient]/error.tsx (1 hunks)
  • src/app/actions/types/users.types.ts (1 hunks)
  • src/app/api/auto-claim/route.ts (0 hunks)
  • src/app/api/health/backend/route.ts (4 hunks)
  • src/app/api/health/route.ts (4 hunks)
  • src/app/api/peanut/user/update-user/route.ts (2 hunks)
  • src/assets/illustrations/index.ts (1 hunks)
  • src/assets/peanut/index.ts (1 hunks)
  • src/components/AddMoney/UserDetailsForm.tsx (3 hunks)
  • src/components/AddMoney/consts/index.ts (0 hunks)
  • src/components/AddWithdraw/AddWithdrawCountriesList.tsx (4 hunks)
  • src/components/AddWithdraw/DynamicBankAccountForm.tsx (6 hunks)
  • src/components/Claim/Claim.tsx (2 hunks)
  • src/components/Claim/Link/Initial.view.tsx (10 hunks)
  • src/components/Claim/Link/Onchain/Confirm.view.tsx (2 hunks)
  • src/components/Claim/Link/Onchain/Success.view.tsx (1 hunks)
  • src/components/Claim/Link/views/BankFlowManager.view.tsx (5 hunks)
  • src/components/Claim/Link/views/Confirm.bank-claim.view.tsx (4 hunks)
  • src/components/Claim/useClaimLink.tsx (0 hunks)
  • src/components/Common/ActionList.tsx (4 hunks)
  • src/components/Common/ActionListDaimoPayButton.tsx (3 hunks)
  • src/components/Common/SavedAccountsView.tsx (1 hunks)
  • src/components/CrispChat.tsx (1 hunks)
  • src/components/ExchangeRate/index.tsx (1 hunks)
  • src/components/Global/Banner/index.tsx (2 hunks)
  • src/components/Global/CreateAccountButton/index.tsx (0 hunks)
  • src/components/Global/DirectSendQR/__tests__/recognizeQr.test.ts (1 hunks)
  • src/components/Global/DirectSendQR/index.tsx (1 hunks)
  • src/components/Global/DirectSendQR/utils.ts (2 hunks)
  • src/components/Global/ExchangeRateWidget/index.tsx (0 hunks)
  • src/components/Global/GuestLoginCta/index.tsx (1 hunks)
  • src/components/Global/GuestVerificationModal/index.tsx (0 hunks)
  • src/components/Global/Icons/Icon.tsx (0 hunks)
  • src/components/Global/IframeWrapper/index.tsx (2 hunks)
  • src/components/Global/Layout/index.tsx (2 hunks)
  • src/components/Global/PeanutActionDetailsCard/index.tsx (1 hunks)
  • src/components/Global/PostSignupActionManager/index.tsx (2 hunks)
  • src/components/Global/PostSignupActionManager/post-signup-action.consts.ts (1 hunks)
  • src/components/Global/RewardsModal/index.tsx (2 hunks)
  • src/components/Global/SupportCTA/index.tsx (0 hunks)
  • src/components/Global/SupportDrawer/index.tsx (0 hunks)
  • src/components/Global/TokenAmountInput/index.tsx (2 hunks)
  • src/components/Global/UnsupportedBrowserModal/index.tsx (2 hunks)
  • src/components/Global/WalletNavigation/index.tsx (1 hunks)
  • src/components/Home/HomeHistory.tsx (6 hunks)
  • src/components/Kyc/KycStatusDrawer.tsx (4 hunks)
  • src/components/Kyc/KycStatusItem.tsx (4 hunks)
  • src/components/Kyc/index.tsx (0 hunks)
  • src/components/Kyc/states/KycCompleted.tsx (1 hunks)
  • src/components/Kyc/states/KycFailed.tsx (1 hunks)
  • src/components/Kyc/states/KycProcessing.tsx (1 hunks)
  • src/components/LandingPage/noFees.tsx (3 hunks)
  • src/components/Payment/PaymentForm/index.tsx (16 hunks)
  • src/components/Payment/Views/Confirm.payment.view.tsx (11 hunks)
  • src/components/Payment/Views/Initial.payment.view.tsx (1 hunks)
  • src/components/Payment/Views/Status.payment.view.tsx (1 hunks)
  • src/components/PintaReqPay/BeerInput.tsx (1 hunks)
  • src/components/PintaReqPay/PintaReqViewWrapper.tsx (1 hunks)
  • src/components/PintaReqPay/Views/Success.pinta.view.tsx (1 hunks)
  • src/components/Profile/components/ProfileHeader.tsx (2 hunks)
  • src/components/Profile/components/ProfileMenuItem.tsx (0 hunks)
  • src/components/Profile/components/PublicProfile.tsx (2 hunks)
  • src/components/Profile/components/ShowNameToggle.tsx (0 hunks)
  • src/components/Profile/index.tsx (3 hunks)
  • src/components/Profile/views/IdentityVerification.view.tsx (3 hunks)
  • src/components/Profile/views/ProfileEdit.view.tsx (1 hunks)
  • src/components/Request/direct-request/views/Initial.direct.request.view.tsx (1 hunks)
  • src/components/Request/views/ReqFulfillBankFlowManager.tsx (1 hunks)
  • src/components/SearchUsers/SearchResults.tsx (2 hunks)
  • src/components/Send/link/views/Success.link.send.view.tsx (5 hunks)
  • src/components/Setup/Views/SetupPasskey.tsx (2 hunks)
  • src/components/Setup/Views/Signup.tsx (1 hunks)
  • src/components/Setup/Views/Welcome.tsx (2 hunks)
  • src/components/Tooltip/index.tsx (0 hunks)
  • src/components/TransactionDetails/TransactionCard.tsx (1 hunks)
  • src/components/TransactionDetails/TransactionDetailsDrawer.tsx (1 hunks)
  • src/components/TransactionDetails/TransactionDetailsReceipt.tsx (5 hunks)
  • src/components/TransactionDetails/transactionTransformer.ts (3 hunks)
  • src/components/UserHeader/index.tsx (1 hunks)
  • src/constants/countryCurrencyMapping.ts (1 hunks)
  • src/constants/general.consts.ts (1 hunks)
  • src/constants/zerodev.consts.ts (3 hunks)
  • src/context/ClaimBankFlowContext.tsx (3 hunks)
  • src/context/SupportModalContext.tsx (0 hunks)
  • src/context/contextProvider.tsx (1 hunks)
  • src/hooks/useCreateOnramp.ts (1 hunks)
  • src/hooks/useDetermineBankClaimType.ts (2 hunks)
  • src/hooks/useDetermineBankRequestType.ts (2 hunks)
  • src/hooks/useExchangeRate.ts (0 hunks)
  • src/hooks/useGetExchangeRate.tsx (2 hunks)
  • src/hooks/useKycFlow.ts (4 hunks)
  • src/hooks/usePasskeySupport.ts (0 hunks)
  • src/hooks/usePaymentInitiator.ts (7 hunks)
  • src/hooks/useRecentUsers.ts (1 hunks)
  • src/hooks/wallet/useWallet.ts (2 hunks)
  • src/interfaces/interfaces.ts (2 hunks)
⛔ Files not processed due to max files limit (18)
  • src/lib/url-parser/parser.ts
  • src/lib/validation/token.ts
  • src/redux/constants/index.ts
  • src/redux/slices/bank-form-slice.ts
  • src/redux/slices/payment-slice.ts
  • src/redux/slices/wallet-slice.ts
  • src/redux/store.ts
  • src/redux/types/bank-form.types.ts
  • src/redux/types/payment.types.ts
  • src/redux/types/wallet.types.ts
  • src/services/sendLinks.ts
  • src/services/services.types.ts
  • src/services/users.ts
  • src/utils/bridge-accounts.utils.ts
  • src/utils/general.utils.ts
  • src/utils/sdkErrorHandler.utils.tsx
  • src/utils/sentry.utils.ts
  • src/utils/withdraw.utils.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Signed-off-by: Hugo Montenegro <hugo@peanut.to>
@coderabbitai coderabbitai bot added the enhancement New feature or request label Sep 28, 2025
This reverts commit e07ab8b, reversing
changes made to ba1b30b.
@Hugo0 Hugo0 merged commit 8bec03f into peanut-wallet-dev Sep 28, 2025
5 of 6 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Dec 15, 2025
@coderabbitai coderabbitai bot mentioned this pull request Mar 2, 2026
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants