fix: resolve build errors for Vercel deployment

TypeScript and ESLint fixes:
- Fixed unescaped quotes in report-timeline.tsx (ESLint error)
- Restored database.types.ts from git history (was empty)
- Added reports table type definition to database.types.ts
- Fixed missing getCookieHeader import in intakes/actions.ts
- Fixed use-media-query.ts ternary operator (TypeScript error)
- Simplified z.enum() in report.ts (removed unsupported error options)

All type checking and linting now passes successfully.
Build tested locally and ready for Vercel deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
colinislit
2025-11-24 14:37:36 +01:00
parent a789bebe96
commit b6c5d1a6d3
5 changed files with 1707 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -10,9 +10,7 @@ export type ReportType = (typeof REPORT_TYPES)[number];
export const CreateReportSchema = z.object({
patient_id: z.string().uuid('Patient ID moet een geldige UUID zijn'),
type: z.enum(REPORT_TYPES, {
errorMap: () => ({ message: 'Type moet behandeladvies of vrije_notitie zijn' }),
}),
type: z.enum(REPORT_TYPES),
content: z
.string()
.min(20, 'Rapportage moet minimaal 20 karakters bevatten')