feat: add backlog status and update task stats
- Introduced 'backlog' status in TaskStatus type and STATUS_CONFIG for better task categorization. - Updated TaskStats interface to include backlog count. - Enhanced getTaskStats method to fetch backlog statistics and display in Header component. - Added backlog stat card in Header for improved visibility of task status.
This commit is contained in:
@@ -9,6 +9,13 @@ export interface StatusConfig {
|
||||
}
|
||||
|
||||
export const STATUS_CONFIG: Record<TaskStatus, StatusConfig> = {
|
||||
backlog: {
|
||||
key: 'backlog',
|
||||
label: 'Backlog',
|
||||
icon: '📋',
|
||||
color: 'gray',
|
||||
order: 0
|
||||
},
|
||||
todo: {
|
||||
key: 'todo',
|
||||
label: 'À faire',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Types de base pour les tâches
|
||||
// Note: TaskStatus et TaskPriority sont maintenant gérés par la configuration centralisée dans lib/status-config.ts
|
||||
export type TaskStatus = 'todo' | 'in_progress' | 'done' | 'cancelled' | 'freeze' | 'archived';
|
||||
export type TaskStatus = 'backlog' | 'todo' | 'in_progress' | 'done' | 'cancelled' | 'freeze' | 'archived';
|
||||
export type TaskPriority = 'low' | 'medium' | 'high' | 'urgent';
|
||||
export type TaskSource = 'reminders' | 'jira' | 'manual';
|
||||
|
||||
@@ -10,6 +10,7 @@ export interface TaskStats {
|
||||
completed: number;
|
||||
inProgress: number;
|
||||
todo: number;
|
||||
backlog: number;
|
||||
cancelled: number;
|
||||
freeze: number;
|
||||
archived: number;
|
||||
|
||||
Reference in New Issue
Block a user