Skip to content

Commit fd69ceb

Browse files
authored
poc: new form system (#107142)
Demonstrating a composable form system based on TanStack Form & zod. closes https://linear.app/getsentry/issue/DE-758/form-exploration
1 parent a76e28a commit fd69ceb

21 files changed

+1994
-26
lines changed

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ const restrictedImportPaths = [
169169
message:
170170
'The @figma/code-connect package should only be imported in *.figma.tsx files for Figma Code Connect integration',
171171
},
172+
{
173+
name: '@tanstack/react-form',
174+
message: 'Use @sentry/scraps/form instead',
175+
},
172176
];
173177

174178
// Used by both: `languageOptions` & `parserOptions`

knip.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ const config: KnipConfig = {
6666
'!static/app/stories/**/*.{js,mjs,ts,tsx}!',
6767
// ignore eslint plugins in production
6868
'!static/eslint/**/*.mjs!',
69+
// new form system is currently only used in stories
70+
'!static/app/components/core/form!',
6971
],
7072
compilers: {
7173
mdx: async text => String(await compile(text)),

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"@stripe/stripe-js": "^5.10.0",
8181
"@swc/plugin-emotion": "14.3.0",
8282
"@tanstack/query-async-storage-persister": "5.83.1",
83+
"@tanstack/react-devtools": "^0.9.3",
84+
"@tanstack/react-form": "^1.28.0",
85+
"@tanstack/react-form-devtools": "^0.2.13",
8386
"@tanstack/react-pacer": "^0.17.0",
8487
"@tanstack/react-query": "5.85.0",
8588
"@tanstack/react-query-devtools": "5.85.0",
@@ -180,6 +183,7 @@
180183
"tslib": "^2.8.1",
181184
"type-fest": "^5.2.0",
182185
"typescript": "5.9.3",
186+
"zod": "^4.3.5",
183187
"zrender": "6.0.0",
184188
"zxcvbn": "^4.4.2"
185189
},
@@ -250,7 +254,7 @@
250254
]
251255
},
252256
"optionalDependencies": {
253-
"fsevents": "^2.3.2"
257+
"fsevents": "^2.3.3"
254258
},
255259
"APIMethod": "stub",
256260
"proxyURL": "http://localhost:8000",

0 commit comments

Comments
 (0)