Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
28ee4dc
fix: take account owner name and use it to create external account on…
kushagrasarathe Dec 9, 2025
8f4758b
fix: validate two words in account owner name
kushagrasarathe Dec 9, 2025
fcc7e6f
feat: Add invites graph for seedlings badge holders
Zishan-7 Dec 10, 2025
463e71f
fix: typo
Zishan-7 Dec 10, 2025
2dc1bf0
feat: add user graph endpoint
Zishan-7 Dec 10, 2025
101f3ee
fix: timeout issue
Zishan-7 Dec 10, 2025
35e11d1
Add updated points component in withdraw flow
Zishan-7 Dec 10, 2025
040a3fc
chore: qr-payment adjustments
jjramirezn Dec 10, 2025
9975f09
Merge pull request #1542 from peanutprotocol/fix/points-component
Zishan-7 Dec 10, 2025
4d7dab0
Merge pull request #1538 from peanutprotocol/fix/third-party-ext-acco…
kushagrasarathe Dec 10, 2025
85da4b5
fix: update copy to be dynamic for install pwa screen wen on brave
kushagrasarathe Dec 10, 2025
629297f
fix: pwa installed state detection
kushagrasarathe Dec 10, 2025
8c67295
fix: use the new hook on setup wrapper
kushagrasarathe Dec 10, 2025
13e9a03
fix: early return brave browser type
kushagrasarathe Dec 10, 2025
8ba7e74
fix: handle installed pwa state
kushagrasarathe Dec 10, 2025
eb4730e
chore: added home carousel cta item
Hugo0 Dec 10, 2025
f3e161f
chore: update kyc reqs for modal
Hugo0 Dec 10, 2025
9b53e9d
Merge pull request #1547 from peanutprotocol/chore/home-carousel-cta-…
Hugo0 Dec 10, 2025
88795de
copy change
Zishan-7 Dec 11, 2025
1ab9181
fix: manteca loading state
Zishan-7 Dec 11, 2025
1ca6e60
fix: duplicate manteca KYC modal
Zishan-7 Dec 11, 2025
3a66d5c
add dynamic address formatting
Zishan-7 Dec 11, 2025
6963797
fix: minChars bug
Zishan-7 Dec 11, 2025
94b7f8d
Merge pull request #1546 from peanutprotocol/fix/brave-pwa-copy
kushagrasarathe Dec 11, 2025
8236fdd
Merge pull request #1549 from peanutprotocol/fix/manteca-loading-state
kushagrasarathe Dec 11, 2025
72aa7a6
Merge pull request #1540 from peanutprotocol/feat/seedling-graph
kushagrasarathe Dec 11, 2025
8794e0f
fix: reorder history entry types
kushagrasarathe Dec 11, 2025
1510add
fix: request pot redirect on signup
Zishan-7 Dec 12, 2025
1df7d1c
Merge pull request #1543 from peanutprotocol/fix/manteca-refunds
jjramirezn Dec 12, 2025
8d69b6d
fix: barrel imports
kushagrasarathe Dec 12, 2025
bf1dfe4
use `useAccountSetup` for handling redirects
Zishan-7 Dec 12, 2025
c9ab0e7
fix: stash conflict
kushagrasarathe Dec 12, 2025
136e3a8
fix: tests
kushagrasarathe Dec 12, 2025
7e3cc42
Merge pull request #1553 from peanutprotocol/fix/req-pots-redirect
Zishan-7 Dec 12, 2025
6327d42
fix: import
kushagrasarathe Dec 12, 2025
fd45b66
fix: another test
kushagrasarathe Dec 12, 2025
7e9dda3
Merge pull request #1556 from peanutprotocol/fix/barrel-imports
jjramirezn Dec 12, 2025
1585b8f
Merge pull request #1552 from peanutprotocol/fix/manteca-notif-deeplink
jjramirezn Dec 12, 2025
34fbe8b
fix: more barrel imports
kushagrasarathe Dec 15, 2025
24c151f
fix: update next.js version, add client providers, and improve metada…
kushagrasarathe Dec 15, 2025
725fd8b
refactor: optimize QR payment flow loading and update API URL import
kushagrasarathe Dec 15, 2025
7268d15
Merge branch 'peanut-wallet-dev' into fix/cold-start
kushagrasarathe Dec 15, 2025
fd3e039
fix: moreeeeee barrel imports lmao
kushagrasarathe Dec 15, 2025
563a531
fix: circular deps
kushagrasarathe Dec 15, 2025
c942b12
refactor: remove web-push integration and legacy push notification co…
kushagrasarathe Dec 15, 2025
af42ff9
chore: add import rules to improve build performance and prevent comm…
kushagrasarathe Dec 15, 2025
5b54cbf
Fix: Request pots not working for amount greater than 999
Zishan-7 Dec 15, 2025
dec880f
Merge pull request #1557 from peanutprotocol/fix/cold-start
jjramirezn Dec 15, 2025
fcd5086
Merge pull request #1559 from peanutprotocol/fix/large-req-pots-amount
jjramirezn Dec 15, 2025
ec3a960
fix: remove commas from displayValue in TokenAmountInput and PaymentA…
Zishan-7 Dec 16, 2025
8cd80bf
remove log
Zishan-7 Dec 16, 2025
64b1535
Merge pull request #1560 from peanutprotocol/fix/req-pots-bug
Zishan-7 Dec 16, 2025
194efaf
Merge pull request #1550 from peanutprotocol/feat/format-address
Zishan-7 Dec 16, 2025
0ab6a61
Fix scroll issue
Zishan-7 Dec 16, 2025
604634a
use native refresh
Zishan-7 Dec 16, 2025
898789f
remove outdated comment
Zishan-7 Dec 16, 2025
d707337
Merge pull request #1562 from peanutprotocol/fix/scroll-bug
Zishan-7 Dec 16, 2025
a3fa3f6
format and redeploy
Hugo0 Dec 16, 2025
c348d0a
feat: Cenralized state for modals
Zishan-7 Dec 16, 2025
86cf759
run formatter
Zishan-7 Dec 16, 2025
af8b7e1
feat: new directory architecture for payment flow and temp toggle config
kushagrasarathe Dec 16, 2025
c672744
feat: shared hooks
kushagrasarathe Dec 16, 2025
e9def31
feat: formatted wallet balance and insufficient balance check method
kushagrasarathe Dec 17, 2025
51a9d8d
refactor: remove DaimoPayButton
kushagrasarathe Dec 17, 2025
871bde2
feat: implement send flow components including useSendFlow hook, Send…
kushagrasarathe Dec 17, 2025
b5f27ac
feat: add send flow context and components for handling payment flow …
kushagrasarathe Dec 17, 2025
ef93890
refactor: replace ActionList with SendLinkActionList for claim flow a…
kushagrasarathe Dec 17, 2025
297a31e
refactor: replace SendSuccessView with PaymentSuccessView component f…
kushagrasarathe Dec 17, 2025
c8a08a8
feat: add contribute pot flow context, page, and wrapper component
kushagrasarathe Dec 17, 2025
0cbbdf0
feat: add ContributorsDrawer, RequestPotActionList, and ContributePot…
kushagrasarathe Dec 17, 2025
696d4dd
feat: implement PaymentMethodActionList component and update SendInpu…
kushagrasarathe Dec 17, 2025
1c33951
feat: add SemanticRequestFlow context and hook for managing semantic …
kushagrasarathe Dec 17, 2025
cde61db
feat: add SemanticRequest views for payment confirmation, input, and …
kushagrasarathe Dec 17, 2025
c6cb58f
feat: add SemanticRequestPage and wrapper for handling payment URL pa…
kushagrasarathe Dec 17, 2025
7d31f5f
feat: enhance SemanticRequestFlow with chargeId handling and URL updates
kushagrasarathe Dec 17, 2025
45b648b
refactor: payment page to use new component
kushagrasarathe Dec 17, 2025
f0bcc50
chore: remove unused payment view
kushagrasarathe Dec 17, 2025
898c5be
refactor: replace usePaymentInitiator with new hooks for route calcul…
kushagrasarathe Dec 17, 2025
5700bfb
refactor: remove payment store usage and clean up devconnect intent h…
kushagrasarathe Dec 18, 2025
c70df36
refactor: keep only one payment success view
kushagrasarathe Dec 18, 2025
10d8187
refactor: remove unused payment views and consolidate success view co…
kushagrasarathe Dec 18, 2025
2d3d992
refactor: simplify CountryListRouter component by removing unused pro…
kushagrasarathe Dec 18, 2025
0781312
refactor: update payment success view references to use PaymentSucces…
kushagrasarathe Dec 18, 2025
e09e58a
refactor: migrate send link flow sm to context and remove redux slice
kushagrasarathe Dec 18, 2025
dcaaf20
fix: test
kushagrasarathe Dec 18, 2025
8718509
Feat: Add account recovery page
Zishan-7 Dec 18, 2025
aafc850
run formatter
Zishan-7 Dec 18, 2025
639ab95
Refactor UploadCloudIcon: change fill color from black to currentColo…
Zishan-7 Dec 18, 2025
7fa8b8b
Refactor BackupPage: update wallet restore description to include dyn…
Zishan-7 Dec 18, 2025
33e2d44
Merge branch 'peanut-wallet-dev' into refactor/kill-redux
kushagrasarathe Dec 18, 2025
1ebb776
fix: insuffcient bal error wen making a payment
kushagrasarathe Dec 18, 2025
fa9f16c
fix: cr comments
kushagrasarathe Dec 18, 2025
918dc6e
feat: component documentation
kushagrasarathe Dec 18, 2025
24ec8f5
refactor: remove external wallet tokens handling logic from token sel…
kushagrasarathe Dec 18, 2025
04e8dff
chore: rename send to direct send
kushagrasarathe Dec 18, 2025
5e373d6
feat: add MUI icoons and updated Button to handle mui icons
kushagrasarathe Dec 18, 2025
16cfda4
fix: pass contributors prop to UserCard to prevent context error
kushagrasarathe Dec 18, 2025
54cd066
feat: remove duplicate iospwainstall Modal
Zishan-7 Dec 19, 2025
4ddb54d
run formatter
Zishan-7 Dec 19, 2025
6ab6dc3
remove unused import
Zishan-7 Dec 19, 2025
a53d369
feat: username validation in payment flows
kushagrasarathe Dec 19, 2025
d72275f
Merge pull request #1572 from peanutprotocol/refactor/kill-redux
kushagrasarathe Dec 19, 2025
ab32a6b
feat: add refunded status badge
jjramirezn Dec 19, 2025
86e0c1b
Improve zoom and nodes plotting
Zishan-7 Dec 19, 2025
ab14c2e
Merge branch 'peanut-wallet-dev' into feat/centralize-modals
Zishan-7 Dec 19, 2025
be097d0
chore: delete dead code
kushagrasarathe Dec 19, 2025
0511935
feat: better icons
kushagrasarathe Dec 19, 2025
c2b2952
Merge pull request #1563 from peanutprotocol/feat/centralize-modals
Zishan-7 Dec 19, 2025
51b81d5
chore: replace old icon implementation with new one (i delete dead code)
kushagrasarathe Dec 22, 2025
24fd72a
add notification step in setup flow for waitlisted users
Zishan-7 Dec 22, 2025
a1086e8
fix: spacing
Zishan-7 Dec 22, 2025
2f7edb3
refactor: clean up imports and remove unused components
kushagrasarathe Dec 22, 2025
7f743f0
chore: delete more unused components
kushagrasarathe Dec 22, 2025
73406ea
Merge pull request #1579 from peanutprotocol/refactor/icons
kushagrasarathe Dec 22, 2025
497e7b1
Merge pull request #1577 from peanutprotocol/feat/refunded-status
jjramirezn Dec 22, 2025
dbadbe2
Merge pull request #1580 from peanutprotocol/feat/setup-notif-screen
Zishan-7 Dec 22, 2025
4db0593
Merge branch 'peanut-wallet-dev' into feat/acc-recovery
Zishan-7 Dec 22, 2025
afcb70a
fix: empty state icon container radius
Zishan-7 Dec 22, 2025
f075928
Merge pull request #1573 from peanutprotocol/feat/acc-recovery
Zishan-7 Dec 22, 2025
da6ffb3
fix: enable external wallet claims for send links
kushagrasarathe Dec 22, 2025
79a86a7
fix: balance error flash on pot page load
kushagrasarathe Dec 23, 2025
a625712
fix: receipt ui
kushagrasarathe Dec 23, 2025
d1a7afa
feat: add receipt view to semantic request flow for displaying transa…
kushagrasarathe Dec 23, 2025
4d65451
fix: verification requires badge on claim flow
kushagrasarathe Dec 23, 2025
3b6055b
fix: claim view receipt
kushagrasarathe Dec 23, 2025
8b666d4
Merge pull request #1584 from peanutprotocol/fix/staging-bugs
kushagrasarathe Dec 24, 2025
5d1d821
Merge pull request #1576 from peanutprotocol/feat/remove-duplicate-io…
Hugo0 Dec 24, 2025
a9c96e8
fix: update button icon and placeholder
kushagrasarathe Dec 24, 2025
f668783
fix: improve initial view logic and payment execution for semantic re…
kushagrasarathe Dec 24, 2025
61a85a6
fix: update home icon size in mobile navigation
kushagrasarathe Dec 24, 2025
84c944b
Merge pull request #1587 from peanutprotocol/fix/more-staging-bugs
kushagrasarathe Dec 24, 2025
c17589e
refactor: enable non-euro sepa countries
kushagrasarathe Dec 24, 2025
5a688db
fix: currency swap icon
kushagrasarathe Dec 24, 2025
6597061
fix: txn receipts for cancelled onramps
kushagrasarathe Dec 25, 2025
5a68365
fix: refactor address validation logic in GeneralRecipientInput compo…
kushagrasarathe Dec 25, 2025
94e01eb
feat: deposit page UI
Zishan-7 Dec 26, 2025
3a2ad8d
refactor(amount-input): simplify amount input component
jjramirezn Dec 26, 2025
7e6c76e
Merge remote-tracking branch 'origin/peanut-wallet-dev' into refactor…
jjramirezn Dec 26, 2025
c1d9820
fix: remove need for replace(/,/g, '') in amount input
jjramirezn Dec 26, 2025
cf3eaf9
fix: Argentina and Brazil disabled from send flow
Zishan-7 Dec 26, 2025
43cd247
fix: refactor isMantecaCountry usage in AddWithdrawRouterView
Zishan-7 Dec 26, 2025
752282e
Merge pull request #1589 from peanutprotocol/fix/staging-ens
Zishan-7 Dec 26, 2025
a4551d6
Merge pull request #1588 from peanutprotocol/fix/non-euro-sepa
Zishan-7 Dec 26, 2025
821c453
Merge remote-tracking branch 'origin/peanut-wallet-dev' into refactor…
jjramirezn Dec 26, 2025
d1f7c29
Merge branch 'peanut-wallet' into chore/pull-prod-to-staging
jjramirezn Dec 26, 2025
df39dba
fix: home carousel cta
jjramirezn Dec 26, 2025
6d34b5d
fix: merge conflicts
jjramirezn Dec 26, 2025
e7ffa70
fix: add bundle analyzer
jjramirezn Dec 26, 2025
ed07f8d
Merge pull request #1593 from peanutprotocol/chore/pull-prod-to-staging
jjramirezn Dec 26, 2025
e8e314a
feat: integrate status API
Zishan-7 Dec 27, 2025
c468738
Merge branch 'peanut-wallet-dev' into fix/improve-invites-graph
Zishan-7 Dec 27, 2025
3b983b6
add chains and tokens icon and update warning modal
Zishan-7 Dec 28, 2025
1e3fbf2
fix: cr comments
Zishan-7 Dec 29, 2025
994ae01
Add failed state
Zishan-7 Dec 29, 2025
4c62999
fix: handle redirect and back btn navigation on add-money flow
kushagrasarathe Dec 29, 2025
ae84424
minor UI improvements
Zishan-7 Dec 29, 2025
ff9358a
fix: update error message for deposit address status fetch
Zishan-7 Dec 29, 2025
fdea453
fix: change account holder name position and copy icons
kushagrasarathe Dec 29, 2025
93112d9
fix: lp copy
kushagrasarathe Dec 29, 2025
a75c2a5
stop polling after deposit is successful
Zishan-7 Dec 29, 2025
90c5b92
fix: float error on balance
jjramirezn Dec 29, 2025
ad28b01
fix: add arrow-exchange icon
jjramirezn Dec 29, 2025
59346ea
fix: formatting
jjramirezn Dec 29, 2025
151ee5a
Merge pull request #1590 from peanutprotocol/refactor/token-amount-input
jjramirezn Dec 29, 2025
e9ca814
feat: Rhino request fulfilment flow
Zishan-7 Dec 30, 2025
c2190f9
fix: build errors and cr comments
Zishan-7 Dec 30, 2025
1227a2e
fix: ensure onSuccess callback is included in dependencies and updat…
Zishan-7 Dec 30, 2025
fc67f99
Merge pull request #1597 from peanutprotocol/fix/qa-session-bugs
Zishan-7 Dec 30, 2025
de53c82
Merge pull request #1591 from peanutprotocol/fix/arg-brz-disabled
Zishan-7 Dec 30, 2025
d109af6
Update method for `/rhino/reset-status/` from get to post
Zishan-7 Dec 30, 2025
2659f68
Merge pull request #1598 from peanutprotocol/fix/float-error
jjramirezn Dec 30, 2025
928dc9a
Add chain name and logo retrieval for Solana in general utilities
Zishan-7 Dec 30, 2025
e0e241d
Merge pull request #1599 from peanutprotocol/feat/rhino-req-fulfilment
Zishan-7 Dec 31, 2025
a3eb828
fix: cr comments
Zishan-7 Dec 31, 2025
9724290
fix: skip the bank Details step in manteca withdraw flow for saved ac…
Zishan-7 Dec 31, 2025
44c5beb
limit deposit msg to 10 chars
Zishan-7 Dec 31, 2025
3275f20
fix: update deposit message in txn receipt
Zishan-7 Dec 31, 2025
e693f0a
Merge pull request #1600 from peanutprotocol/fix/saved-acc-manteca-flow
Zishan-7 Dec 31, 2025
7f4df87
Merge pull request #1595 from peanutprotocol/feat/deposit-v2
Zishan-7 Dec 31, 2025
622b52a
feat: share badge copy
kushagrasarathe Dec 31, 2025
4808d86
revert: lp copy
kushagrasarathe Dec 31, 2025
1d7bb5c
fix: qa session bugs
kushagrasarathe Dec 31, 2025
faf5fc0
Merge pull request #1601 from peanutprotocol/feat/share-badges
kushagrasarathe Jan 1, 2026
128079b
Addd unsupported countries list in KYC flow
Zishan-7 Jan 1, 2026
24cd945
refactor: simplify StatusBadge usage in IdentityVerificationCountryL…
Zishan-7 Jan 1, 2026
527dab1
feat: add search functionality to contacts using api
kushagrasarathe Jan 1, 2026
be9c476
Merge pull request #1603 from peanutprotocol/feat/unsupported-kyc-cou…
Zishan-7 Jan 2, 2026
62c5970
Merge pull request #1604 from peanutprotocol/feat/contacts-search
Zishan-7 Jan 2, 2026
b547065
fix: External wallet flow not visible on semantic requests
Zishan-7 Jan 2, 2026
6adcfec
Fix: Solana and Tron address formatting
Zishan-7 Jan 2, 2026
4a82be3
Feat: Add action card on external wallet flow
Zishan-7 Jan 2, 2026
e3f9431
Merge pull request #1594 from peanutprotocol/fix/improve-invites-graph
Hugo0 Jan 2, 2026
1317181
Fix: UX bugs
Zishan-7 Jan 2, 2026
6b1515d
Fix: Guest users not able to pay using external wallet
Zishan-7 Jan 2, 2026
58ec901
Feat: Hide home history amount on balance toggle
Zishan-7 Jan 4, 2026
81277af
add `hideTxnAmount` prop to pending request section
Zishan-7 Jan 4, 2026
6c77d8c
fix: sidebar icon sizes
kushagrasarathe Jan 5, 2026
1bf34b0
Merge pull request #1607 from peanutprotocol/fix/sidebar-icons
Zishan-7 Jan 5, 2026
8803476
fix: error component icon width
kushagrasarathe Jan 5, 2026
466e78a
Merge pull request #1608 from peanutprotocol/fix/error-width
Zishan-7 Jan 5, 2026
627673b
fix: improve copy button
Zishan-7 Jan 5, 2026
755dcee
Merge pull request #1605 from peanutprotocol/fix/deposit-qa-bugs
Zishan-7 Jan 5, 2026
764a697
Merge pull request #1606 from peanutprotocol/feat/hide-history-amounts
Zishan-7 Jan 5, 2026
ebc5c2b
Fix: format solana and tron addresses
Zishan-7 Jan 5, 2026
0bbd9bb
Merge pull request #1609 from peanutprotocol/fix/format-solana-tron-a…
Zishan-7 Jan 5, 2026
5d03b12
Fix: not able to type amount in ARS
Zishan-7 Jan 6, 2026
40a5f8b
fix: locale issue
Zishan-7 Jan 6, 2026
b27f31a
Merge pull request #1610 from peanutprotocol/fix/token-amount-input-sync
Zishan-7 Jan 6, 2026
8817aca
Fix: Token amount input error for secondary currency
Zishan-7 Jan 6, 2026
1457b2a
Merge pull request #1611 from peanutprotocol/fix/withdraw-tai-error
Zishan-7 Jan 6, 2026
c009568
fix: contacts loading + deposit copy icon
kushagrasarathe Jan 6, 2026
bb6478c
fix: icon size
kushagrasarathe Jan 6, 2026
2b70704
fix: cr comment
kushagrasarathe Jan 6, 2026
d4e60ab
fix: show only USDT for tron
Zishan-7 Jan 6, 2026
10f106f
Merge pull request #1612 from peanutprotocol/fix/qa-bugs
kushagrasarathe Jan 7, 2026
b879c55
Fix: send sucess navigation
Zishan-7 Jan 7, 2026
fb95be0
Merge pull request #1614 from peanutprotocol/fix/send-navigation
Zishan-7 Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
- **Performance is important** - cache where possible, make sure to not make unnecessary re-renders or data fetching.
- **Flag breaking changes** - always flag if changes done in Frontend are breaking and require action on Backend (or viceversa)

## 🚫 Import Rules (critical for build performance)

- **No barrel imports** - never use `import * as X from '@/constants'` or create index.ts barrel files. always import from specific files (e.g. `import { PEANUT_API_URL } from '@/constants/general.consts'`). barrel imports slow down builds and cause bundling issues.
- **No circular dependencies** - before adding imports, check if the target file imports from the current file. circular deps cause `Cannot access X before initialization` errors. move shared types to `interfaces.ts` if needed.
- **No node.js packages in client components** - packages like `web-push`, `fs`, `crypto` (node) can't be used in `'use client'` files. use server actions or api routes instead.
- **Check for legacy code** - before importing from a file, check if it has TODO comments marking it as legacy/deprecated. prefer newer implementations.

## 🧪 Testing

- **Test new code** - where tests make sense, test new code. Especially with fast unit tests.
Expand All @@ -43,6 +50,7 @@
- **Cache where possible** - avoid unnecessary re-renders and data fetching
- **Fire simultaneous requests** - if you're doing multiple sequential awaits and they're not interdependent, fire them simultaneously
- **Service Worker cache version** - only bump `NEXT_PUBLIC_API_VERSION` for breaking API changes (see JSDoc in `src/app/sw.ts`). Users auto-migrate.
- **Gate heavy features in dev** - prefetching, precompiling, or eager loading of routes can add 5-10s to dev cold starts. wrap with `process.env.NODE_ENV !== 'development'` (e.g. `<link rel="prefetch" href="/qr-pay" />` in layout.tsx).

## 📝 Commits

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ certificates
public/sw*
public/swe-worker*

.idea
.idea
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/[email protected]/schema.json",
"ignore": ["src/assets/**"],
"entry": ["src/**/*.{js,jsx,ts,tsx}", "postcss.config.js", "tailwind.config.js"],
"entry": ["src/**/*.{js,jsx,ts,tsx}"],
"project": ["src/**/*.{js,jsx,ts,tsx}", "*.config.{js,ts}"]
}
24 changes: 18 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ let nextConfig = {
},
},

// External packages that shouldn't be bundled (server-side only)
serverExternalPackages: [],

// Disable source maps in production (already handled by Sentry)
productionBrowserSourceMaps: false,

Expand All @@ -69,9 +66,24 @@ let nextConfig = {

// Experimental features for optimization
experimental: {
// Optimize package imports for tree-shaking
optimizePackageImports: ['@chakra-ui/react', 'framer-motion', '@headlessui/react'],
// Speed up webpack builds (fallback mode when not using --turbo)
// Note: turbopackFileSystemCacheForDev is enabled by default in Next.js 16+
// optimize package imports for tree-shaking (barrel file optimization)
// lodash and date-fns are used by transitive dependencies (e.g. chakra, framer-motion)
optimizePackageImports: [
'@chakra-ui/react',
'framer-motion',
'@headlessui/react',
'@radix-ui/react-accordion',
'@radix-ui/react-select',
'@radix-ui/react-slider',
'@reduxjs/toolkit',
'react-redux',
'lodash',
'date-fns',
'react-hook-form',
'@mui/icons-material',
],
// Speed up webpack builds (used for production builds with --webpack flag)
webpackBuildWorker: true,
},

Expand Down
34 changes: 7 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"scripts": {
"dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" next dev --turbo",
"dev:clean": "rm -rf .next && NODE_OPTIONS=\"--max-old-space-size=8192\" next dev --turbo",
"dev:fallback": "next dev",
"build": "next build --webpack",
"start": "next start",
Expand All @@ -20,23 +21,20 @@
"script": "NODE_OPTIONS=\"--experimental-json-modules\" tsx"
},
"dependencies": {
"@calcom/embed-react": "^1.5.1",
"@chakra-ui/color-mode": "^2.2.0",
"@chakra-ui/icon": "^3.2.0",
"@chakra-ui/react": "^2.10.4",
"@chakra-ui/react-context": "^2.1.0",
"@chakra-ui/shared-utils": "^2.0.4",
"@daimo/pay": "^1.16.5",
"@dicebear/collection": "^9.2.2",
"@dicebear/core": "^9.2.2",
"@emotion/react": "^11.14.0",
"@headlessui/react": "^2.2.9",
"@headlessui/tailwindcss": "^0.2.1",
"@hookform/resolvers": "3.9.1",
"@justaname.id/react": "0.3.180",
"@justaname.id/sdk": "0.2.177",
"@mui/icons-material": "^7.3.6",
"@mui/material": "^7.3.6",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-slider": "^1.3.5",
"@radix-ui/react-tabs": "^1.1.13",
"@reduxjs/toolkit": "^2.5.0",
"@reown/appkit": "1.6.9",
"@reown/appkit-adapter-wagmi": "1.6.9",
Expand All @@ -51,10 +49,8 @@
"@wagmi/core": "2.19.0",
"@zerodev/passkey-validator": "^5.6.0",
"@zerodev/sdk": "5.5.0",
"auto-text-size": "^0.2.3",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"chakra-ui-steps": "^2.1.0",
"classnames": "^2.5.1",
"d3-force": "^3.0.0",
"embla-carousel-react": "^8.6.0",
Expand All @@ -64,16 +60,12 @@
"iban-to-bic": "^1.4.0",
"js-cookie": "^3.0.5",
"jsqr": "^1.4.0",
"lottie-react": "^2.4.0",
"multicoin-address-validator": "^0.5.22",
"next": "16.0.10",
"pulltorefreshjs": "^0.1.22",
"react": "^19.2.1",
"react-csv": "^2.2.2",
"react-dom": "^19.2.1",
"react-fast-marquee": "^1.6.5",
"react-force-graph-2d": "^1.25.10",
"react-ga4": "^2.1.0",
"react-hook-form": "^7.53.2",
"react-onesignal": "^3.2.3",
"react-qr-code": "^2.0.15",
Expand All @@ -84,39 +76,29 @@
"tailwind-merge": "^1.14.0",
"tailwind-scrollbar": "^3.1.0",
"use-haptic": "^1.1.11",
"uuid": "^10.0.0",
"validator": "^13.12.0",
"vaul": "^1.1.2",
"viem": "^2.22.0",
"wagmi": "2.16.3",
"web-push": "^3.6.7",
"yup": "^1.4.0"
"wagmi": "2.16.3"
},
"devDependencies": {
"@next/bundle-analyzer": "^16.0.0",
"@next/bundle-analyzer": "^16.1.1",
"@serwist/build": "^9.0.10",
"@size-limit/preset-app": "^11.2.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/canvas-confetti": "^1.9.0",
"@types/chroma-js": "^2.4.4",
"@types/jest": "^29.5.12",
"@types/js-cookie": "^3.0.6",
"@types/multicoin-address-validator": "^0.5.3",
"@types/node": "20.4.2",
"@types/pulltorefreshjs": "^0.1.7",
"@types/react": "^18.3.12",
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^9.0.8",
"@types/validator": "^13.12.2",
"@types/web-push": "^3.6.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"knip": "^5.37.1",
"ngrok": "^4.0.0",
"postcss": "^8.4.49",
"postcss-import": "^16.1.0",
"prettier": "^3.3.3",
Expand All @@ -125,7 +107,6 @@
"size-limit": "^11.2.0",
"tailwindcss": "^3.4.15",
"ts-jest": "^29.1.2",
"tslib": "^2.7.0",
"tsx": "^4.19.3",
"typescript": "^5.6.3"
},
Expand All @@ -151,7 +132,6 @@
"^@squirrel-labs/peanut-sdk$": "<rootDir>/src/utils/__mocks__/peanut-sdk.ts",
"^@reown/appkit/react$": "<rootDir>/src/utils/__mocks__/reown-appkit.ts",
"^@justaname\\.id/react$": "<rootDir>/src/utils/__mocks__/justaname.ts",
"^web-push$": "<rootDir>/src/utils/__mocks__/web-push.ts",
"^next/cache$": "<rootDir>/src/utils/__mocks__/next-cache.ts",
"^@zerodev/sdk(.*)$": "<rootDir>/src/utils/__mocks__/zerodev-sdk.ts",
"^@simplewebauthn/browser$": "<rootDir>/src/utils/__mocks__/simplewebauthn-browser.ts",
Expand Down
Loading
Loading