mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
chore(debug): add logging for kanban status updates
Added detailed console logging in FluentActionHandlers to track kanban status update flow and help diagnose task update issues. Changes: - Log when kanban status update is triggered - Log status change details (from -> to) - Log handleTaskUpdate completion - Log when no status change is needed
This commit is contained in:
parent
20838fdb54
commit
77f58747fd
1 changed files with 7 additions and 0 deletions
|
|
@ -207,10 +207,14 @@ export class FluentActionHandlers extends Component {
|
|||
task: Task,
|
||||
newStatusMark: string,
|
||||
): Promise<void> {
|
||||
console.log(`[FluentActionHandlers] Processing kanban status update for task ${task.id}`);
|
||||
console.log(`[FluentActionHandlers] Status change: ${task.status} -> ${newStatusMark}`);
|
||||
|
||||
const isCompleted = this.isCompletedMark(newStatusMark);
|
||||
const completedDate = isCompleted ? Date.now() : undefined;
|
||||
|
||||
if (task.status !== newStatusMark || task.completed !== isCompleted) {
|
||||
console.log('[FluentActionHandlers] Status change detected, calling handleTaskUpdate...');
|
||||
await this.handleTaskUpdate(task, {
|
||||
...task,
|
||||
status: newStatusMark,
|
||||
|
|
@ -220,6 +224,9 @@ export class FluentActionHandlers extends Component {
|
|||
completedDate: completedDate,
|
||||
},
|
||||
});
|
||||
console.log('[FluentActionHandlers] handleTaskUpdate completed');
|
||||
} else {
|
||||
console.log('[FluentActionHandlers] No status change needed, skipping update');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue