feat: add primary tag functionality to tasks

- Introduced `primaryTagId` to `Task` model and updated related components to support selecting a primary tag.
- Enhanced `TaskCard`, `EditTaskForm`, and `TagInput` to handle primary tag selection and display.
- Updated `TasksService` to manage primary tag data during task creation and updates.
- Added `emoji-regex` dependency for improved emoji handling in task titles.
This commit is contained in:
Julien Froidefond
2025-10-01 21:11:50 +02:00
parent 014b0269dc
commit e2527ca88a
12 changed files with 168 additions and 42 deletions

View File

@@ -43,6 +43,8 @@ export interface Task {
sourceId?: string;
tags: string[];
tagDetails?: Tag[]; // Tags avec informations complètes (isPinned, etc.)
primaryTagId?: string; // ID du tag prioritaire à afficher en premier
primaryTag?: Tag; // Tag prioritaire avec informations complètes
dueDate?: Date;
completedAt?: Date;
createdAt: Date;