mirror of
https://github.com/wassname/pi-lgtm.git
synced 2026-06-27 17:01:35 +08:00
Show done_criterion in widget for non-completed tasks
Human needs to see the criterion, not just the subject. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -192,6 +192,9 @@ export class TaskWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lines.push(truncate(text + suffix));
|
lines.push(truncate(text + suffix));
|
||||||
|
if (!isActive && task.status !== "completed" && (task as any).done_criterion) {
|
||||||
|
lines.push(truncate(` ${(task as any).done_criterion}`));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tasks.length > MAX_VISIBLE_TASKS) {
|
if (tasks.length > MAX_VISIBLE_TASKS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user