diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..f7dea96b --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2026-08-22 - Truncation Indicators in Terminal Lists +**Learning:** Users lose situational awareness when dynamic lists in terminal UIs are silently truncated to fit constraints (like `maxVisible`). +**Action:** Always include an explicit visual indicator (e.g., "... and X more tasks") when slicing arrays for terminal list displays. \ No newline at end of file diff --git a/src/cli/ui/components/TodoDrawer.tsx b/src/cli/ui/components/TodoDrawer.tsx index 8304d871..fd51d4b1 100644 --- a/src/cli/ui/components/TodoDrawer.tsx +++ b/src/cli/ui/components/TodoDrawer.tsx @@ -134,6 +134,14 @@ export function TodoDrawer({ )) )} + {todos.length > maxVisible && ( + + + ... and {todos.length - maxVisible} more task + {todos.length - maxVisible === 1 ? '' : 's'} + + + )} )}