@xynogen/pix-todo 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/todo.test.ts +4 -4
- package/src/todo.ts +1 -1
package/package.json
CHANGED
package/src/todo.test.ts
CHANGED
|
@@ -955,7 +955,7 @@ describe("todo card layout", () => {
|
|
|
955
955
|
expect(result.details).toBeDefined();
|
|
956
956
|
expect(lines).toHaveLength(1);
|
|
957
957
|
expect(lines[0]?.trimEnd()).toBe(
|
|
958
|
-
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [
|
|
958
|
+
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]#2 todo renderer[/] [muted]·[/] [muted]1/2 done[/]",
|
|
959
959
|
);
|
|
960
960
|
});
|
|
961
961
|
});
|
|
@@ -986,14 +986,14 @@ describe("renderResult snapshot isolation", () => {
|
|
|
986
986
|
describe("renderTodoSummaryLine (collapsed one-liner)", () => {
|
|
987
987
|
test("empty list renders a compact tool row", () => {
|
|
988
988
|
expect(renderTodoSummaryLine([], tagTheme)).toBe(
|
|
989
|
-
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [
|
|
989
|
+
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]empty[/]",
|
|
990
990
|
);
|
|
991
991
|
});
|
|
992
992
|
|
|
993
993
|
test("uses warning status when work is blocked", () => {
|
|
994
994
|
const items: TodoItem[] = [{ id: 1, text: "Need approval", status: "blocked" }];
|
|
995
995
|
expect(renderTodoSummaryLine(items, tagTheme)).toBe(
|
|
996
|
-
"[warning]⚠ [/] [toolTitle]<b>todo</b>[/] [
|
|
996
|
+
"[warning]⚠ [/] [toolTitle]<b>todo</b>[/] [dim]checklist[/] [muted]·[/] [muted]0/1 done · 1 blocked[/]",
|
|
997
997
|
);
|
|
998
998
|
});
|
|
999
999
|
|
|
@@ -1003,7 +1003,7 @@ describe("renderTodoSummaryLine (collapsed one-liner)", () => {
|
|
|
1003
1003
|
{ id: 2, text: "b", status: "in_progress" },
|
|
1004
1004
|
];
|
|
1005
1005
|
expect(renderTodoSummaryLine(items, tagTheme)).toBe(
|
|
1006
|
-
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [
|
|
1006
|
+
"[success]✓ [/] [toolTitle]<b>todo</b>[/] [dim]#2 b[/] [muted]·[/] [muted]1/2 done[/]",
|
|
1007
1007
|
);
|
|
1008
1008
|
});
|
|
1009
1009
|
});
|
package/src/todo.ts
CHANGED
|
@@ -271,7 +271,7 @@ export default function registerTodo(pi: ExtensionAPI): void {
|
|
|
271
271
|
const t = theme as TodoTheme;
|
|
272
272
|
const action = (args as { action?: string })?.action ?? "";
|
|
273
273
|
const title = t.fg("toolTitle", t.bold("todo"));
|
|
274
|
-
return new Text(action ? `${title} ${t.fg("
|
|
274
|
+
return new Text(action ? `${title} ${t.fg("dim", action)}` : title, 0, 0);
|
|
275
275
|
},
|
|
276
276
|
renderResult(result, options, theme, context) {
|
|
277
277
|
const details = result.details as TodoResultDetails | undefined;
|