[INT-TYPE-001] Standardize User.id to string everywhere

This commit is contained in:
senke 2025-12-25 22:33:16 +01:00
parent 0441c2adf6
commit 9fe0328794
5 changed files with 12 additions and 7 deletions

View file

@ -206,7 +206,8 @@
"description": "User.id est uuid.UUID (string) côté backend mais parfois number côté frontend. Cela cause des erreurs de comparaison.",
"priority": "P1",
"priority_rank": 4,
"status": "todo",
"status": "completed",
"completed_at": "2025-01-27T12:30:00Z",
"estimated_hours": 2,
"side": "frontend_only",
"files_to_modify": [
@ -1085,13 +1086,13 @@
},
"progress_tracking": {
"total_tasks": 32,
"completed": 3,
"completed": 4,
"in_progress": 0,
"todo": 29,
"todo": 28,
"blocked": 0,
"completion_percentage": 9,
"last_updated": "2025-01-27T12:00:00Z",
"completion_percentage": 12,
"last_updated": "2025-01-27T12:30:00Z",
"estimated_completion_date": null,
"estimated_hours_remaining": 43
"estimated_hours_remaining": 41
}
}

View file

@ -1,4 +1,5 @@
export interface User {
// UUID from backend - always string
id: string;
email: string;
username?: string;

View file

@ -21,9 +21,10 @@ export const isoDateSchema = z.string().datetime({ message: 'Invalid ISO8601 dat
/**
* User schema
* INT-TYPE-001: User.id is UUID (string) from backend - always string
*/
export const userSchema = z.object({
id: uuidSchema,
id: uuidSchema, // UUID from backend - always string
username: z.string().min(1),
slug: z.string().optional(),
email: z.string().email(),

View file

@ -1,5 +1,6 @@
// Types de base pour l'API
export interface User {
// UUID from backend - always string
id: string;
username: string;
slug?: string;

View file

@ -1,6 +1,7 @@
// Types globaux de l'application
export interface User {
// UUID from backend - always string
id: string;
username: string;
slug?: string;