[INT-TYPE-002] Standardize Track.id to string everywhere

This commit is contained in:
senke 2025-12-25 22:34:55 +01:00
parent 9fe0328794
commit e4ba1ef215
5 changed files with 18 additions and 8 deletions

View file

@ -239,7 +239,8 @@
"description": "Même problème que User.id - Track.id doit être string (UUID) partout.",
"priority": "P1",
"priority_rank": 5,
"status": "todo",
"status": "completed",
"completed_at": "2025-01-27T12:45:00Z",
"estimated_hours": 1.5,
"side": "frontend_only",
"files_to_modify": [
@ -1086,13 +1087,13 @@
},
"progress_tracking": {
"total_tasks": 32,
"completed": 4,
"completed": 5,
"in_progress": 0,
"todo": 28,
"todo": 27,
"blocked": 0,
"completion_percentage": 12,
"last_updated": "2025-01-27T12:30:00Z",
"completion_percentage": 16,
"last_updated": "2025-01-27T12:45:00Z",
"estimated_completion_date": null,
"estimated_hours_remaining": 41
"estimated_hours_remaining": 39.5
}
}

View file

@ -6,7 +6,9 @@
export type TrackStatus = 'uploading' | 'processing' | 'completed' | 'failed';
export interface Track {
// UUID from backend - always string
id: string;
// UUID from backend - always string
creator_id: string;
file_id?: string;
title: string;

View file

@ -86,9 +86,13 @@ export type Conversation = z.infer<typeof conversationSchema>;
/**
* Track schema
*/
/**
* Track schema
* INT-TYPE-002: Track.id is UUID (string) from backend - always string
*/
export const trackSchema = z.object({
id: uuidSchema,
creator_id: uuidSchema,
id: uuidSchema, // UUID from backend - always string
creator_id: uuidSchema, // UUID from backend - always string
file_id: uuidSchema.optional().nullable(),
title: z.string().min(1),
artist: z.string().min(1),

View file

@ -51,7 +51,9 @@ export interface Conversation {
}
export interface Track {
// UUID from backend - always string
id: string;
// UUID from backend - always string
creator_id: string; // Backend uses creator_id (not artist_id)
file_id?: string; // nullable UUID
title: string;

View file

@ -74,6 +74,7 @@ export interface Conversation {
}
export interface Track {
// UUID from backend - always string
id: string;
title: string;
artist: string;