feat(projects): Einsatz/Übung-Modus
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22m24s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22m24s
- Feld mode (EINSATZ/UEBUNG) am Projekt + idempotente Auto-Migration - Auswahl beim Erstellen (Segmented-Control mit Lucide-Icons) - Badge "Einsatz"/"Übung" in der Projektliste - Eigene Nummerierung für Übungen (Ü-YYYY-NNNN, getrennt gezählt) - Journal-Titel wird bei Übung zu "Übungs-Journal" - ROADMAP.md mit Verbesserungs-Fahrplan ergänzt Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,8 +5,12 @@ export const loginSchema = z.object({
|
||||
password: z.string().min(1, 'Passwort erforderlich'),
|
||||
})
|
||||
|
||||
export const PROJECT_MODES = ['EINSATZ', 'UEBUNG'] as const
|
||||
export type ProjectMode = (typeof PROJECT_MODES)[number]
|
||||
|
||||
export const projectSchema = z.object({
|
||||
title: z.string().min(1, 'Titel erforderlich').max(200, 'Titel zu lang'),
|
||||
mode: z.enum(PROJECT_MODES).optional(),
|
||||
location: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
einsatzleiter: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user