Feature: Lessons-Learned-Vorlage beim Projekt-Abschluss

Der Abschluss verlangte eine URL + freie Vermerk-Textarea, half aber nicht beim
Strukturieren der Retro. Jetzt gefuehrte Felder (Ziel erreicht? / Aufwand vs.
Plan / was lief gut / was nicht), gespeichert als JSONB project.lessons_learned
(Migration 0018). Anzeige im Projekt-Detail als "Retrospektive"; Altprojekte
fallen auf den freien Abschlussvermerk zurueck.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raffael SheikhandClaude Opus 4.8 committed 2026-06-07 12:45:19 +02:00
1 parent 3e66ba3156
commit 62945201b1
7 files changed
+3443 -20

No files matched your search

+10
View File
@@ -44,10 +44,20 @@ export const createProjectInput = z.object({
});
export type CreateProjectInput = z.infer<typeof createProjectInput>;
export const lessonsLearnedSchema = z.object({
zielErreicht: z.string().max(2000),
aufwand: z.string().max(2000),
liefGut: z.string().max(2000),
liefSchlecht: z.string().max(2000),
});
export type LessonsLearned = z.infer<typeof lessonsLearnedSchema>;
export const archiveProjectInput = z.object({
projectId: z.string().uuid(),
lessonsLearnedUrl: z.string().url(),
abschlussvermerk: z.string().max(2000).optional(),
// Strukturierte Retrospektive (Lessons-Learned-Vorlage), optional.
lessonsLearned: lessonsLearnedSchema.optional(),
});
export type ArchiveProjectInput = z.infer<typeof archiveProjectInput>;