Files
kakeibo/frontend/src/features/review/schema.ts
T
suphicakir 311cfc8c60 feat(değerlendirme): ay sonu değerlendirmesi sayfası
- Kakeibo'nun 4 sorusu, nasıl hesaplandığıyla birlikte
- Grup bazında planlanan/gerçekleşen, en çok harcanan kategoriler, haftalık dağılım
- "Nasıl daha iyi yapabilirim?" (Markdown) ve yalnızca başlıkları listelenen notlar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 12:31:35 +03:00

13 lines
404 B
TypeScript

import { z } from 'zod'
import { t } from '@/lib/strings'
/** Backend gibi Unicode karakter sayar (`services/period.rs` → `MAX_REFLECTION`) */
export const MAX_REFLECTION = 20_000
export const reflectionSchema = z.object({
text: z
.string()
.refine((v) => [...v.trim()].length <= MAX_REFLECTION, t.review.reflectionTooLong),
})
export type ReflectionForm = z.infer<typeof reflectionSchema>