Skip to content

Commit 8fe2c47

Browse files
NicolappsConvex, Inc.
authored andcommitted
dashboard: Update to Storybook 10 (#43348)
GitOrigin-RevId: 2876f40a55ca7831c5983c4273943199863a3da4
1 parent 852bc2d commit 8fe2c47

File tree

6 files changed

+1391
-539
lines changed

6 files changed

+1391
-539
lines changed

npm-packages/@convex-dev/design-system/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@types/testing-library__jest-dom": "~5.14.5",
4848
"@typescript-eslint/eslint-plugin": "^6.7.4",
4949
"@typescript-eslint/parser": "^6.7.4",
50-
"@storybook/nextjs": "^9.1.2",
50+
"@storybook/nextjs": "^10.0.8",
5151
"eslint": "^8.29.0",
5252
"eslint-config-airbnb": "^19.0.4",
5353
"eslint-config-airbnb-typescript": "^18.0.0",
@@ -64,7 +64,7 @@
6464
"postcss": "^8.4.19",
6565
"prettier": "3.6.2",
6666
"prettier-plugin-tailwindcss": "~0.6.11",
67-
"storybook": "^9.1.2",
67+
"storybook": "^10.0.8",
6868
"typescript": "^5.9.2",
6969
"tsc-alias": "~1.8.15",
7070
"@types/lodash-es": "~4.17.12"

npm-packages/common/config/rush/pnpm-lock.yaml

Lines changed: 1368 additions & 522 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm-packages/dashboard-common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"@types/testing-library__jest-dom": "~5.14.5",
9393
"@typescript-eslint/eslint-plugin": "^6.7.4",
9494
"@typescript-eslint/parser": "^6.7.4",
95-
"@storybook/nextjs": "^9.1.2",
95+
"@storybook/nextjs": "^10.0.8",
9696
"eslint": "^8.29.0",
9797
"eslint-config-airbnb": "^19.0.4",
9898
"eslint-config-airbnb-typescript": "^18.0.0",
@@ -110,7 +110,7 @@
110110
"next-router-mock": "~0.9.11",
111111
"postcss": "^8.4.19",
112112
"prettier": "3.6.2",
113-
"storybook": "^9.1.2",
113+
"storybook": "^10.0.8",
114114
"prettier-plugin-tailwindcss": "~0.6.11",
115115
"tailwindcss": "^4.1.11",
116116
"tailwind-scrollbar": "^4.0.2",

npm-packages/dashboard-storybook/.storybook/main.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,25 @@ const config: StorybookConfig = {
1616
framework: {
1717
name: "@storybook/nextjs-vite",
1818
options: {
19-
nextConfigPath: path.resolve(__dirname, "../../dashboard/next.config.js"),
19+
nextConfigPath: path.resolve(
20+
import.meta.dirname,
21+
"../../dashboard/next.config.js",
22+
),
2023
},
2124
},
2225
viteFinal: async (config) => {
2326
return mergeConfig(config, {
2427
css: {
25-
postcss: path.resolve(__dirname, "../../dashboard/postcss.config.js"),
28+
postcss: path.resolve(
29+
import.meta.dirname,
30+
"../../dashboard/postcss.config.js",
31+
),
2632
},
2733
server: {
2834
fs: {
2935
allow: [
3036
...(config.server?.fs?.allow || []),
31-
path.resolve(__dirname, "../../"),
37+
path.resolve(import.meta.dirname, "../../"),
3238
],
3339
},
3440
},

npm-packages/dashboard-storybook/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
"vite-tsconfig-paths": "^5.1.3"
1919
},
2020
"devDependencies": {
21-
"@storybook/addon-docs": "^9.1.2",
22-
"@storybook/addon-links": "^9.1.2",
23-
"@storybook/addon-themes": "^9.1.2",
24-
"@storybook/cli": "^9.1.2",
25-
"@storybook/nextjs": "^9.1.2",
26-
"@storybook/nextjs-vite": "^9.1.2",
27-
"@storybook/test-runner": "0.23.0",
21+
"@storybook/addon-docs": "^10.0.8",
22+
"@storybook/addon-links": "^10.0.8",
23+
"@storybook/addon-themes": "^10.0.8",
24+
"@storybook/cli": "^10.0.8",
25+
"@storybook/nextjs": "^10.0.8",
26+
"@storybook/nextjs-vite": "^10.0.8",
27+
"@storybook/test-runner": "0.24.1",
2828
"@tailwindcss/forms": "^0.5.10",
2929
"eslint-plugin-better-tailwindcss": "^3.4.4",
3030
"playwright": "^1.56.1",
3131
"tailwind-scrollbar": "^4.0.2",
3232
"tailwindcss": "^4.1.11",
33-
"storybook": "^9.1.2",
33+
"storybook": "^10.0.8",
3434
"concurrently": "~8.2.2",
3535
"wait-on": "^8.0.2",
3636
"http-server": "^14.1.1"

npm-packages/dashboard/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"devDependencies": {
6969
"@babel/core": "^7.27.1",
7070
"@jest/types": "^29.6.0",
71-
"@storybook/nextjs": "^9.1.2",
71+
"@storybook/nextjs": "^10.0.8",
7272
"@tailwindcss/forms": "^0.5.10",
7373
"@tailwindcss/postcss": "^4.1.11",
7474
"@testing-library/jest-dom": "~6.8.0",
@@ -108,7 +108,7 @@
108108
"postcss": "^8.4.19",
109109
"prettier": "3.6.2",
110110
"prettier-plugin-tailwindcss": "~0.6.11",
111-
"storybook": "^9.1.2",
111+
"storybook": "^10.0.8",
112112
"tailwind-scrollbar": "^4.0.2",
113113
"tailwindcss": "^4.1.11",
114114
"typescript": "^5.9.2",

0 commit comments

Comments
 (0)