feat(Notes): associate notes with tasks and enhance note management
- Added taskId field to Note model for associating notes with tasks. - Updated API routes to handle taskId in note creation and updates. - Enhanced NotesPageClient to manage task associations within notes. - Integrated task selection in MarkdownEditor for better user experience. - Updated NotesService to map task data correctly when retrieving notes.
This commit is contained in:
@@ -4,12 +4,14 @@ import { Note } from '@/services/notes';
|
||||
export interface CreateNoteData {
|
||||
title: string;
|
||||
content: string;
|
||||
taskId?: string; // Tâche associée à la note
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface UpdateNoteData {
|
||||
title?: string;
|
||||
content?: string;
|
||||
taskId?: string; // Tâche associée à la note
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user