feat(frontend): update generated API types and Geschichte routes for JourneyItem model
- api.ts: add GeschichteType, JourneyItem, GeschichteSummary schemas; remove documentId param from list endpoint; change list response to GeschichteSummary[]; add type + items to Geschichte; remove documents field - GeschichteEditor: remove DocumentMultiSelect + documentIds from payload (journey items are managed via the future Lesereisen editor, not here) - GET /geschichten page: remove documentId filter from server load + URL logic - geschichten/new: remove documentId pre-population from server load - geschichten/[id]: replace g.documents with g.items (document-backed JourneyItems) - geschichten/new + [id]/edit: remove documentIds from submit payload type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,6 @@ async function handleSubmit(payload: {
|
||||
body: string;
|
||||
status: 'DRAFT' | 'PUBLISHED';
|
||||
personIds: string[];
|
||||
documentIds: string[];
|
||||
}) {
|
||||
submitting = true;
|
||||
errorMessage = null;
|
||||
|
||||
Reference in New Issue
Block a user