feat: add comprehensive dashboard page with todo management, RSS feeds, calendar, and AI integration

This commit is contained in:
Michael committed 2025-11-23 15:40:03 +01:00
1 parent 4d29bc7454
commit 2665ba5cc1
5 files changed
+129 -30

No files matched your search

+11
View File
@@ -5,6 +5,7 @@ export interface Todo {
text: string;
completed: boolean;
priority?: boolean;
in_progress?: boolean;
due_date?: string;
created_at?: string;
}
@@ -81,6 +82,16 @@ class TodosService {
throw error;
}
}
async toggleInProgress(todoId: number): Promise<boolean> {
try {
await axios.patch(`${this.baseURL}/${todoId}/in-progress`, {}, this.getAuthHeader());
return true;
} catch (error) {
console.error('Error toggling in progress status:', error);
throw error;
}
}
}
export default new TodosService();