Skip to content

Commit 8467e46

Browse files
feliciojkbktlCopilotjinhojang6marcelines
authored
Co-authored-by: Jakub <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: jinhojang6 <[email protected]> Co-authored-by: marcelines <[email protected]>
1 parent 30be360 commit 8467e46

File tree

132 files changed

+3640
-1136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+3640
-1136
lines changed

.changeset/dull-crabs-act.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@status-im/wallet': patch
3+
'wallet': patch
4+
---
5+
6+
Add value chart

.changeset/four-dogs-build.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@status-im/wallet": patch
3+
"wallet": patch
4+
---
5+
6+
Add CTA to main view

.changeset/good-lies-cover.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@status-im/wallet': patch
3+
'wallet': patch
4+
---
5+
6+
integrate pending wallet activity

.changeset/itchy-schools-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wallet": patch
3+
---
4+
5+
Persistent recovery phrase

.changeset/khaki-weeks-wait.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@status-im/wallet": patch
3+
"wallet": patch
4+
---
5+
6+
Rename tabs

.changeset/warm-cycles-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@status-im/components': patch
3+
---
4+
5+
Adds close toast action and multiple toasts

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.preferences.includePackageJsonAutoImports": "on",
4+
"typescript.suggest.autoImports": true,
5+
"typescript.preferences.importModuleSpecifier": "relative",
36
"npm.packageManager": "pnpm",
47
"eslint.useESLintClass": true,
58
"editor.formatOnSave": true,
@@ -33,5 +36,11 @@
3336
"tailwindCSS.experimental.classRegex": [
3437
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
3538
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
36-
]
39+
],
40+
"search.exclude": {
41+
"**/node_modules": true,
42+
"**/bower_components": true,
43+
"**/*.code-search": true,
44+
"**/.output": true
45+
}
3746
}

README.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ Packages for building user interfaces, websites, web applications, dapps, browse
66

77
## Packages
88

9-
| Name | `npm` | Description |
10-
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11-
| [`@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). |
12-
| [`@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). |
13-
| [`@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. |
14-
| [`@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) | |
15-
| [`@status-im/wallet`](./packages/wallet) | | |
16-
| [`@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. |
9+
| Name | Deployments | Builds | Description |
10+
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11+
| [`@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). |
12+
| [`@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). |
13+
| [`@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. |
14+
| [`@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) | |
15+
| [`@status-im/wallet`](./packages/wallet) | | |
16+
| [`@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. |
1717

1818
## Apps
1919

20-
| Name | Description |
21-
| -------------------------------------- | ----------------------------------------------------------------------------- |
22-
| [`./apps/connector`](./apps/connector) | Status Desktop Wallet extended to decentralised applications in your browser. |
23-
| [`./apps/portfolio`](./apps/portfolio) | |
24-
| [`./apps/wallet`](./apps/wallet) | |
25-
| [`./apps/api`](./apps/api) | |
20+
| Name | Deployments | Builds | Description |
21+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
22+
| [`./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. |
23+
| [`./apps/portfolio`](./apps/portfolio) | | | |
24+
| [`./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. |
25+
| [`./apps/api`](./apps/api) | | | |
2626

2727
## Prerequisites
2828

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

34-
Recommended:
35-
36-
- **[Visual Studio Code](https://code.visualstudio.com/)**
37-
- install extensions listed in `.vscode/extensions.json` for optimal development experience
38-
3934
## Stack
4035

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

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

94-
## Continuous Integration
95-
96-
The builds of `main` branch are available in [Jenkins CI](https://ci.status.im/job/status-web/job/main/).
97-
9889
## Sponsors
9990

10091
This project is sponsored by Browserstack.

apps/api/src/app/api/trpc/[trpc]/route.ts

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export const runtime = 'edge'
1818
export const dynamic = 'force-dynamic'
1919

2020
async function handler(request: NextRequest) {
21-
return fetchRequestHandler({
21+
// let error: Error | undefined
22+
23+
// const response = await fetchRequestHandler({
24+
return await fetchRequestHandler({
2225
endpoint: '/api/trpc',
2326
router: apiRouter,
2427
req: request,
@@ -28,10 +31,17 @@ async function handler(request: NextRequest) {
2831

2932
return { headers }
3033
},
34+
/**
35+
* @see https://trpc.io/docs/v10/server/error-handling#handling-errors
36+
*/
3137
// onError: opts => {
32-
// // console.error('opts::', opts)
38+
// error = opts.error.cause
3339
// },
3440
responseMeta: opts => {
41+
// note: opts.error does not have original cause (status code), contrary to onError
42+
// note!: status code is inferred from TRPCError.code (TOO_MANY_REQUESTS, INTERNAL_SERVER_ERROR, etc.)
43+
// const error = opts.errors?.[0]
44+
3545
let cacheControl = 'public, max-age=3600'
3646

3747
if (
@@ -40,6 +50,7 @@ async function handler(request: NextRequest) {
4050
'nodes.broadcastTransaction',
4151
'nodes.getNonce',
4252
'nodes.getTransactionCount',
53+
'nodes.getFeeRate',
4354
'activities.page',
4455
'activities.activities',
4556
'assets.all',
@@ -54,6 +65,7 @@ async function handler(request: NextRequest) {
5465
}
5566

5667
return {
68+
// status: 429,
5769
headers: {
5870
'cache-control': cacheControl,
5971
'Access-Control-Allow-Origin': '*',
@@ -62,18 +74,16 @@ async function handler(request: NextRequest) {
6274
},
6375
}
6476
},
77+
// unstable_onChunk: undefined,
6578
})
66-
}
6779

68-
export { handler as GET, handler as POST }
80+
// const result = await response.json()
6981

70-
export async function OPTIONS() {
71-
return new Response(null, {
72-
status: 200,
73-
headers: {
74-
'Access-Control-Allow-Origin': '*',
75-
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
76-
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
77-
},
78-
})
82+
// return Response.json(
83+
// result
84+
// // { status: result.httpStatus }
85+
// // { status: 429 }
86+
// )
7987
}
88+
89+
export { handler as GET, handler as POST }

apps/api/tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"forceConsistentCasingInFileNames": true,
2828
"target": "ESNext",
2929
"module": "ESNext",
30-
"moduleResolution": "Bundler",
30+
"moduleResolution": "bundler",
3131
"resolveJsonModule": true,
3232
"isolatedModules": true,
3333
// @see https://github.com/orgs/pnpm/discussions/4331#discussioncomment-3379386 for pnpm's config recommendation
@@ -45,5 +45,10 @@
4545
".next/types/**/*.ts",
4646
"global.d.ts"
4747
],
48-
"exclude": ["node_modules", ".next"]
48+
"exclude": ["node_modules", ".next"],
49+
"references": [
50+
{
51+
"path": "../../packages/wallet"
52+
}
53+
]
4954
}

0 commit comments

Comments
 (0)