Skip to content

[email protected] #746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 131 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
739b7c5
update legal refs
felicio Jul 11, 2025
b8b2dc0
Update apps/wallet/src/routes/onboarding/index.tsx
jkbktl Jul 11, 2025
4d97062
f charts UI
jkbktl Jul 11, 2025
ffdae94
Merge branch 'main' into beta/wallet
felicio Jul 11, 2025
9aebf06
f feedback section
jkbktl Jul 11, 2025
b4841f1
Merge branch 'main' into beta/wallet
felicio Jul 11, 2025
5fe9bef
set description
felicio Jul 12, 2025
0bd6042
generate icons
felicio Jul 12, 2025
41cd651
Revert "update legal refs"
felicio Jul 12, 2025
a57f3f4
set version
felicio Jul 12, 2025
be36107
set fixed name
felicio Jul 12, 2025
5efcc9e
update logo
felicio Jul 12, 2025
e1bf6d0
fix PinExtension position
felicio Jul 12, 2025
1acaeae
fix total_percentage_24h_change
felicio Jul 12, 2025
18e6f6a
set order for build tasks
felicio Jul 12, 2025
6e28c96
merge build and postbuild scripts
felicio Jul 12, 2025
77da4d5
set build dependency and filters
felicio Jul 12, 2025
6510fd7
Deploy (#747)
felicio Jul 12, 2025
52c860c
integrate pending wallet activity (#748)
felicio Jul 14, 2025
2a67920
Revert "update logo"
felicio Jul 15, 2025
374c661
f setCurrentWallet
jkbktl Jul 15, 2025
5c3a092
add error logs
jkbktl Jul 15, 2025
263d3d5
f loading for create/import flows
jkbktl Jul 15, 2025
412d3e9
f beforeload
jkbktl Jul 15, 2025
7fce7ed
f: updates buy providers logos and cloudinary script
marcelines Jul 16, 2025
2dbd5e4
f: use wallet name
marcelines Jul 16, 2025
39f98a8
update name
felicio Jul 17, 2025
ec01998
Toast adjustments (#750)
marcelines Jul 18, 2025
9a40f05
Update wxt.config.ts for listing's summary
felicio Jul 18, 2025
8e54b14
Update legal
felicio Jul 18, 2025
d32faca
use dollars
felicio Jul 18, 2025
dc5804f
use token symbol for mercuryo
felicio Jul 18, 2025
2403c03
use refetch
felicio Jul 21, 2025
f923ddf
Typing (#755)
felicio Jul 22, 2025
18a2b3f
Profiling (#756)
felicio Jul 22, 2025
7c38e10
revert ToastContainer
felicio Jul 22, 2025
2997b55
catch global errors
felicio Jul 22, 2025
acb1375
memoize ToastContainer
felicio Jul 22, 2025
a85a13a
disable default retry for QueryClient
felicio Jul 22, 2025
76a3da1
set button label to "Send Transaction"
felicio Jul 22, 2025
11b11f7
catch send error
felicio Jul 22, 2025
3e341df
remove stale transactions
felicio Jul 22, 2025
bbd91b9
fix icon typing refs
felicio Jul 22, 2025
fa967e5
fix: tx dropped
marcelines Jul 22, 2025
92b8503
f
marcelines Jul 22, 2025
221fba1
set root error message
felicio Jul 22, 2025
3c7e132
disable sort
felicio Jul 22, 2025
d9c648b
add eth to default list
felicio Jul 22, 2025
ec90577
set script-src
felicio Jul 22, 2025
8f6e4a8
f: send and fetch gas fees for erc20 transactions
marcelines Jul 22, 2025
fc0fcbe
f: placeholder
marcelines Jul 22, 2025
68fe3e2
f: amount validation
marcelines Jul 22, 2025
0e7bf6a
catch error on refetch
felicio Jul 23, 2025
0dfb205
disable auto-refetch
felicio Jul 25, 2025
c3b0e11
use token decimals
felicio Jul 25, 2025
f51b6df
Revert "use token decimals"
felicio Jul 25, 2025
24d44d1
resolve revert
felicio Jul 25, 2025
6ea4b7b
use decimals for balance chart
felicio Jul 28, 2025
7cfc496
fallback decimals for previous builds
felicio Jul 28, 2025
bbb120b
conditionally fetch charts
felicio Jul 28, 2025
d3040b6
reset detail view filters
felicio Jul 28, 2025
6ede192
stop refetching on too many requests
felicio Jul 28, 2025
c20ae55
remove OPTIONS
felicio Jul 28, 2025
302ab80
no-cache for `getFeeRate`
felicio Jul 28, 2025
52bf020
debounce gas
felicio Jul 28, 2025
35387b9
f contract address
jkbktl Jul 28, 2025
2cff9f6
f recipient address validation
jkbktl Jul 28, 2025
73c053d
update error message for incorrect password in PasswordModal
felicio Jul 29, 2025
3597d94
refactor chart components for improved layout and responsiveness
felicio Jul 29, 2025
85ff08a
refactor formatSmallNumber function to improve decimal precision hand…
felicio Jul 29, 2025
cd00128
f lint
jkbktl Jul 29, 2025
f44635e
toast mostly on manual refetch
felicio Jul 29, 2025
68ae8cd
replace WBNB for UNI
felicio Jul 30, 2025
b962270
remove leading and trailing spaces
felicio Jul 30, 2025
dc61c92
rename buy buttons
felicio Jul 30, 2025
498edbd
f: incorrect overflow on layout
marcelines Jul 30, 2025
fff9016
f: about, traits, image and links
marcelines Jul 30, 2025
8257e2c
f: scroll collectible and hides floor price and price
marcelines Jul 30, 2025
b40f241
f: empty states chart
marcelines Jul 30, 2025
7f24574
f: typo
marcelines Jul 31, 2025
e4954bc
f: updates transaction copy
marcelines Jul 31, 2025
8b148ff
f: fixes values for token detail
marcelines Jul 31, 2025
dab9254
f: label
marcelines Jul 31, 2025
325f9f6
f: token balance
marcelines Jul 31, 2025
dc176fc
f: chart ticks format
marcelines Jul 31, 2025
8a0c237
update name
felicio Jul 31, 2025
ea04609
update icon
felicio Aug 1, 2025
6dac149
Add CTA to main view (#760)
jkbktl Aug 1, 2025
10f1732
Rename tabs (#767)
jkbktl Aug 1, 2025
2f98707
disable auto price conversion
felicio Aug 1, 2025
5bf31d4
sort tokens
felicio Aug 2, 2025
f6087e0
f negative labels on y axis for charts
jkbktl Aug 4, 2025
ec2e94c
f recovery form error message
jkbktl Aug 4, 2025
560e905
f NaN in send assets
jkbktl Aug 4, 2025
f97df02
f missing description warning
jkbktl Aug 4, 2025
8fea681
f incorrect address in the link to mercuryo
jkbktl Aug 4, 2025
3699bcf
f inaccurate balance in send assets
jkbktl Aug 4, 2025
9ef44d0
f graph
jkbktl Aug 4, 2025
666f4c4
Merge branch 'main' into beta/wallet
felicio Aug 6, 2025
2124426
f balance all timeframe + sampling
jkbktl Aug 6, 2025
7d5ae90
Allow access to recovery phrase for backup (#770)
jkbktl Aug 7, 2025
b5cd287
f add eth link
jkbktl Aug 7, 2025
43b44c8
f hardcode symbol for ETH
jkbktl Aug 7, 2025
2a48a8a
f traits, f crashing NFT detail
jkbktl Aug 10, 2025
73bd90f
Add value chart (#765)
jkbktl Aug 11, 2025
559a742
use max fee
felicio Aug 12, 2025
3184b56
Revert "Add value chart (#765)"
felicio Aug 14, 2025
cff5743
hide All filter
felicio Aug 14, 2025
2da9583
Revert "hide All filter"
felicio Aug 14, 2025
57c2cc5
invalidate queries
felicio Aug 14, 2025
5664a06
unset api revalidate
felicio Aug 14, 2025
5dcfd05
unset api revalidate
felicio Aug 14, 2025
e4fcde8
5dcfd05d38a9673de18a79231f5943722151ce4c
felicio Aug 14, 2025
7a61d3d
use _retry and _fetch
felicio Aug 15, 2025
0b33c41
update buy copy
felicio Aug 15, 2025
d506d5e
reuse empty state
felicio Aug 15, 2025
8260934
extend globalThis.fetch
felicio Aug 15, 2025
5470174
await refetch
felicio Aug 15, 2025
26239ed
log
felicio Aug 15, 2025
e89720f
0b33c41def9940a078e9479eaf3ef854a13e4cc5
felicio Aug 15, 2025
d229fb6
Revert "log"
felicio Aug 15, 2025
53b5d89
f format
jkbktl Aug 18, 2025
addf0d5
f empty tooltip
jkbktl Aug 18, 2025
f4aaf1a
simplify x axis
jkbktl Aug 19, 2025
9b82f4a
Revert "extend globalThis.fetch"
felicio Aug 21, 2025
76cf0b5
Revert "Revert "Add value chart (#765)""
felicio Aug 21, 2025
38e21b7
Revert "replace token api for portfolio api to fetch aggregated balan…
felicio Aug 21, 2025
79cc429
remove contract batching
felicio Aug 21, 2025
5577b9d
handle pagination
felicio Aug 21, 2025
6078ccd
checksum address
felicio Aug 22, 2025
cefb68d
hide value chart
felicio Aug 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/dull-crabs-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@status-im/wallet': patch
'wallet': patch
---

Add value chart
6 changes: 6 additions & 0 deletions .changeset/four-dogs-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@status-im/wallet": patch
"wallet": patch
---

Add CTA to main view
6 changes: 6 additions & 0 deletions .changeset/good-lies-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@status-im/wallet': patch
'wallet': patch
---

integrate pending wallet activity
5 changes: 5 additions & 0 deletions .changeset/itchy-schools-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wallet": patch
---

Persistent recovery phrase
6 changes: 6 additions & 0 deletions .changeset/khaki-weeks-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@status-im/wallet": patch
"wallet": patch
---

Rename tabs
5 changes: 5 additions & 0 deletions .changeset/warm-cycles-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@status-im/components': patch
---

Adds close toast action and multiple toasts
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.includePackageJsonAutoImports": "on",
"typescript.suggest.autoImports": true,
"typescript.preferences.importModuleSpecifier": "relative",
"npm.packageManager": "pnpm",
"eslint.useESLintClass": true,
"editor.formatOnSave": true,
Expand Down Expand Up @@ -33,5 +36,11 @@
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
]
],
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/.output": true
}
}
37 changes: 14 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ Packages for building user interfaces, websites, web applications, dapps, browse

## Packages

| Name | `npm` | Description |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`@status-im/colors`](./packages/colors) | [![npm version](https://img.shields.io/npm/v/@status-im/colors.svg)](https://www.npmjs.com/package/@status-im/colors) | Auto-generated color palette based on our [design system](https://www.figma.com/design/v98g9ZiaSHYUdKWrbFg9eM/Foundations?node-id=619-5995&node-type=canvas&m=dev). |
| [`@status-im/icons`](./packages/icons) | [![npm version](https://img.shields.io/npm/v/@status-im/icons)](https://www.npmjs.com/package/@status-im/icons) | Auto-generated icon library based on our [design system](https://www.figma.com/design/qLLuMLfpGxK9OfpIavwsmK/Iconset?node-id=3239-987&node-type=frame&t=0h8iIiZ3Sf0g4MRV-11). |
| [`@status-im/components`](./packages/components) | [![npm version](https://img.shields.io/npm/v/@status-im/components)](https://www.npmjs.com/package/@status-im/components) | Component library built with Radix UI, React Aria, Tailwind CSS. |
| [`@status-im/js`](./packages/status-js) | [![npm version](https://img.shields.io/npm/v/@status-im/js)](https://www.npmjs.com/package/@status-im/js) | |
| [`@status-im/wallet`](./packages/wallet) | | |
| [`@status-im/eslint-config`](./packages/eslint-config) | [![npm version](https://img.shields.io/npm/v/@status-im/eslint-config.svg)](https://www.npmjs.com/package/@status-im/eslint-config) | Shared ESLint configuration for consistent code style across projects. |
| Name | Deployments | Builds | Description |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`@status-im/colors`](./packages/colors) | [![vercel](https://img.shields.io/badge/vercel-black)](https://status-components.vercel.app/?path=/story/colors) | [![npm version](https://img.shields.io/npm/v/@status-im/colors.svg)](https://www.npmjs.com/package/@status-im/colors) | Auto-generated color palette based on our [design system](https://www.figma.com/design/v98g9ZiaSHYUdKWrbFg9eM/Foundations?node-id=619-5995&node-type=canvas&m=dev). |
| [`@status-im/icons`](./packages/icons) | [![vercel](https://img.shields.io/badge/vercel-black)](https://status-components.vercel.app/?path=/story/icons) | [![npm version](https://img.shields.io/npm/v/@status-im/icons)](https://www.npmjs.com/package/@status-im/icons) | Auto-generated icon library based on our [design system](https://www.figma.com/design/qLLuMLfpGxK9OfpIavwsmK/Iconset?node-id=3239-987&node-type=frame&t=0h8iIiZ3Sf0g4MRV-11). |
| [`@status-im/components`](./packages/components) | [![vercel](https://img.shields.io/badge/vercel-black)](https://status-components.vercel.app/?path=/story/components) | [![npm version](https://img.shields.io/npm/v/@status-im/components)](https://www.npmjs.com/package/@status-im/components) | Component library built with Radix UI, React Aria, Tailwind CSS. |
| [`@status-im/js`](./packages/status-js) | | [![npm version](https://img.shields.io/npm/v/@status-im/js)](https://www.npmjs.com/package/@status-im/js) | |
| [`@status-im/wallet`](./packages/wallet) | | |
| [`@status-im/eslint-config`](./packages/eslint-config) | | [![npm version](https://img.shields.io/npm/v/@status-im/eslint-config.svg)](https://www.npmjs.com/package/@status-im/eslint-config) | Shared ESLint configuration for consistent code style across projects. |

## Apps

| Name | Description |
| -------------------------------------- | ----------------------------------------------------------------------------- |
| [`./apps/connector`](./apps/connector) | Status Desktop Wallet extended to decentralised applications in your browser. |
| [`./apps/portfolio`](./apps/portfolio) | |
| [`./apps/wallet`](./apps/wallet) | |
| [`./apps/api`](./apps/api) | |
| Name | Deployments | Builds | Description |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| [`./apps/connector`](./apps/connector) | [![chrome web store](https://img.shields.io/badge/chrome-grey)](https://chromewebstore.google.com/detail/kahehnbpamjplefhpkhafinaodkkenpg) | [![jenkins job](https://img.shields.io/badge/jenkins-grey)](https://ci.status.im/job/status-web/job/main/job/connector/) | Status Desktop Wallet extended to decentralised applications in your browser. |
| [`./apps/portfolio`](./apps/portfolio) | | | |
| [`./apps/wallet`](./apps/wallet) | [![chrome web store](https://img.shields.io/badge/chrome-grey)](https://chromewebstore.google.com/detail/opkfeajbclhjdneghppfnfiannideafj) | [![jenkins job](https://img.shields.io/badge/jenkins-grey)](https://ci.status.im/job/status-web/job/main/job/wallet/) | Easily view and manage your crypto portfolio in real time — Beta crypto wallet and Web3 portfolio tracker in one. |
| [`./apps/api`](./apps/api) | | | |

## Prerequisites

Expand All @@ -31,11 +31,6 @@ Required:
- **[Node.js](https://nodejs.org/)** v20.x
- **[pnpm](https://pnpm.io)** v9.12.x

Recommended:

- **[Visual Studio Code](https://code.visualstudio.com/)**
- install extensions listed in `.vscode/extensions.json` for optimal development experience

## Stack

- **Turborepo**: Manages our monorepo and speeds up builds
Expand Down Expand Up @@ -91,10 +86,6 @@ pnpm storybook

This will start the Storybook server, allowing you to browse and test components in isolation.

## Continuous Integration

The builds of `main` branch are available in [Jenkins CI](https://ci.status.im/job/status-web/job/main/).

## Sponsors

This project is sponsored by Browserstack.
36 changes: 23 additions & 13 deletions apps/api/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export const runtime = 'edge'
export const dynamic = 'force-dynamic'

async function handler(request: NextRequest) {
return fetchRequestHandler({
// let error: Error | undefined

// const response = await fetchRequestHandler({
return await fetchRequestHandler({
endpoint: '/api/trpc',
router: apiRouter,
req: request,
Expand All @@ -28,10 +31,17 @@ async function handler(request: NextRequest) {

return { headers }
},
/**
* @see https://trpc.io/docs/v10/server/error-handling#handling-errors
*/
// onError: opts => {
// // console.error('opts::', opts)
// error = opts.error.cause
// },
responseMeta: opts => {
// note: opts.error does not have original cause (status code), contrary to onError
// note!: status code is inferred from TRPCError.code (TOO_MANY_REQUESTS, INTERNAL_SERVER_ERROR, etc.)
// const error = opts.errors?.[0]

let cacheControl = 'public, max-age=3600'

if (
Expand All @@ -40,6 +50,7 @@ async function handler(request: NextRequest) {
'nodes.broadcastTransaction',
'nodes.getNonce',
'nodes.getTransactionCount',
'nodes.getFeeRate',
'activities.page',
'activities.activities',
'assets.all',
Expand All @@ -54,6 +65,7 @@ async function handler(request: NextRequest) {
}

return {
// status: 429,
headers: {
'cache-control': cacheControl,
'Access-Control-Allow-Origin': '*',
Expand All @@ -62,18 +74,16 @@ async function handler(request: NextRequest) {
},
}
},
// unstable_onChunk: undefined,
})
}

export { handler as GET, handler as POST }
// const result = await response.json()

export async function OPTIONS() {
return new Response(null, {
status: 200,
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
},
})
// return Response.json(
// result
// // { status: result.httpStatus }
// // { status: 429 }
// )
}

export { handler as GET, handler as POST }
9 changes: 7 additions & 2 deletions apps/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
// @see https://github.com/orgs/pnpm/discussions/4331#discussioncomment-3379386 for pnpm's config recommendation
Expand All @@ -45,5 +45,10 @@
".next/types/**/*.ts",
"global.d.ts"
],
"exclude": ["node_modules", ".next"]
"exclude": ["node_modules", ".next"],
"references": [
{
"path": "../../packages/wallet"
}
]
}
2 changes: 1 addition & 1 deletion apps/api/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "git diff --quiet HEAD^ HEAD ../../{patches,package.json,turbo.json} ../../packages/wallet ./",
"installCommand": "pnpm install --dir ../../ --frozen-lockfile",
"buildCommand": "turbo run build --cwd ../../ --filter=api..."
"buildCommand": "turbo run build --cwd ../../ --filter=./apps/api..."
}
5 changes: 5 additions & 0 deletions apps/connector/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
"strict": true,
"target": "ESNext",
},
"references": [
{
"path": "../../packages/colors",
},
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ async function Token({
<div className="flex items-center gap-1 pt-px">
<BuyCryptoDrawer>
<Button size="32" iconBefore={<BuyIcon />}>
<span className="block max-w-20 truncate">
Buy {token.summary.name}
</span>
<span className="block max-w-20 truncate">Buy</span>
</Button>
</BuyCryptoDrawer>
<ReceiveCryptoDrawer>
Expand All @@ -138,7 +136,7 @@ async function Token({
<div className="flex items-center gap-1">
<BuyCryptoDrawer>
<Button size="32" iconBefore={<BuyIcon />}>
Buy {token.summary.name}
Buy
</Button>
</BuyCryptoDrawer>
<ReceiveCryptoDrawer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Chart = ({
const [activeTimeFrame, setActiveTimeFrame] = useState<TimeFrame>('24H')

// Todo: Currency should be dynamic
const currency = 'EUR'
const currency = 'USD'

return (
<div className="relative">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const CollectiblesGrid = ({

const { data, fetchNextPage, hasNextPage, isFetchingNextPage } =
useInfiniteQuery({
refetchOnWindowFocus: false,
queryKey: ['collectibles', address, networks, search, sort],
queryFn: async ({ pageParam = { offset: 0 } }) => {
const response = await getCollectibles({
Expand Down
2 changes: 1 addition & 1 deletion apps/portfolio/src/app/_components/buy-crypto-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const BuyCryptoDrawer = (props: Props) => {
name: provider,
network,
address: account.address,
asset: asset || 'EUR',
asset: asset || 'USD',
})
}

Expand Down
2 changes: 1 addition & 1 deletion apps/portfolio/src/app/_components/network-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const NETWORKS = [
},
] as const

// const CURRENCY = 'EUR'
// const CURRENCY = 'USD'

// const formatCurrency = (amount: number, currency?: string) => {
// return Intl.NumberFormat('en-US', {
Expand Down
1 change: 0 additions & 1 deletion apps/portfolio/src/app/_providers/accounts-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const AccountsProvider = ({ children }: { children: ReactNode }) => {
queryFn: () => getAccountsData(addresses, networks),
enabled: addresses.length > 0,
staleTime: 60000,
refetchOnWindowFocus: false,
})

const addAccount = (account: Account) => {
Expand Down
12 changes: 11 additions & 1 deletion apps/portfolio/src/app/_providers/query-client-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

import { QueryClient, QueryClientProvider } from '@tanstack/react-query'

const queryClient = new QueryClient()
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: false,
retryOnMount: false,
refetchOnMount: false,
refetchOnWindowFocus: false,
refetchOnReconnect: false,
},
},
})

type Props = {
children: React.ReactNode
Expand Down
17 changes: 13 additions & 4 deletions apps/portfolio/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"forceConsistentCasingInFileNames": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
// @see https://github.com/orgs/pnpm/discussions/4331#discussioncomment-3379386 for pnpm's config recommendation
Expand All @@ -48,8 +48,17 @@
"exclude": ["node_modules", ".next"],
// @see https://github.com/nrwl/nx/issues/3106#issuecomment-703154400
"references": [
// {
// "path": "../../packages/wallet"
// }
{
"path": "../../packages/wallet"
},
{
"path": "../../packages/colors"
},
{
"path": "../../packages/components"
},
{
"path": "../../packages/icons"
}
]
}
2 changes: 1 addition & 1 deletion apps/portfolio/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "git diff --quiet HEAD^ HEAD ../../{patches,package.json,turbo.json} ../../packages/{colors,icons,components,wallet} ./",
"installCommand": "pnpm install --dir ../../ --frozen-lockfile",
"buildCommand": "turbo run build --cwd ../../ --filter=portfolio..."
"buildCommand": "turbo run build --cwd ../../ --filter=./apps/portfolio..."
}
6 changes: 3 additions & 3 deletions apps/wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Google Chrome > Window > Extensions > Load unpacked > select build (.output/chro

#### Visit

Google Chrome > Extensions > Status Portfolio Wallet > Inspect views > service worker
Google Chrome > Extensions > !Status Portfolio Wallet (Beta) > Inspect views > service worker

Google Chrome > Toolbar > Extensions > Status Portfolio Wallet
Google Chrome > Toolbar > Extensions > !Status Portfolio Wallet (Beta)

Google Chrome > Toolbar > Extensions > Status Portfolio Wallet > Open side panel
Google Chrome > Toolbar > Extensions > !Status Portfolio Wallet (Beta) > Open side panel

chrome-extension://\[ID]/page.html#/portfolio

Expand Down
12 changes: 6 additions & 6 deletions apps/wallet/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// /// <reference types="vite/client" />
/// <reference types="vite/client" />

// // import 'vite/client'
interface ImportMetaEnv {
readonly WXT_STATUS_API_URL: string
readonly WXT_GETBLOCK_API_KEY: string
}

interface ImportMeta {
readonly env: {
readonly WXT_STATUS_API_URL: string
readonly WXT_GETBLOCK_API_KEY: string
}
readonly env: ImportMetaEnv
}
Loading
Loading