diff --git a/backend/src/schemas/index.ts b/backend/src/schemas/index.ts index 589b1da..d7118b1 100644 --- a/backend/src/schemas/index.ts +++ b/backend/src/schemas/index.ts @@ -83,6 +83,6 @@ export const UpdateClientTargetSchema = z.object({ export const CreateCorrectionSchema = z.object({ date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/, 'date must be in YYYY-MM-DD format'), - hours: z.number().min(-24).max(24), + hours: z.number().min(-1000).max(1000), description: z.string().max(255).optional(), }); diff --git a/frontend/src/pages/ClientsPage.tsx b/frontend/src/pages/ClientsPage.tsx index db7c8ea..fc511cf 100644 --- a/frontend/src/pages/ClientsPage.tsx +++ b/frontend/src/pages/ClientsPage.tsx @@ -145,8 +145,8 @@ function ClientTargetPanel({ setCorrError(null); if (!target) return; const hours = parseFloat(corrHours); - if (isNaN(hours) || hours < -24 || hours > 24) { - setCorrError('Hours must be between -24 and 24'); + if (isNaN(hours) || hours < -1000 || hours > 1000) { + setCorrError('Hours must be between -1000 and 1000'); return; } if (!corrDate) { @@ -336,8 +336,6 @@ function ClientTargetPanel({ onChange={e => setCorrHours(e.target.value)} className="input text-xs py-1" placeholder="+8 / -4" - min="-24" - max="24" step="0.5" required />