feat(17-03): create CreateInitiativeDialog with shadcn primitives

- Install shadcn Dialog, Input, Label, Textarea components
- Move from @/ literal dir to src/components/ui/ (known shadcn CLI issue)
- CreateInitiativeDialog: controlled dialog with name/description fields
- tRPC createInitiative mutation with loading/error states
- Form resets on open, validates name non-empty
This commit is contained in:
Lukas May
2026-02-04 21:04:05 +01:00
parent ec93835ae5
commit e5acb9f214
7 changed files with 410 additions and 29 deletions

View File

@@ -11,6 +11,8 @@
},
"dependencies": {
"@codewalk-district/shared": "*",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@tanstack/react-query": "^5.75.0",
"@tanstack/react-router": "^1.158.0",
"@trpc/client": "^11.9.0",