diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..48a0386a --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2026-08-20 - [Terminal UI truncation awareness] +**Learning:** When displaying dynamic lists in terminal UIs (such as those using `ink`), if the list is truncated to fit constraints (e.g., a `maxVisible` limit), always include an explicit visual indicator (like '... and X more tasks') to preserve user situational awareness. +**Action:** Always verify if dynamic list components truncate their output and ensure an explicit 'more' indicator is displayed if items are hidden. \ No newline at end of file diff --git a/src/cli/ui/components/TodoDrawer.tsx b/src/cli/ui/components/TodoDrawer.tsx index 8304d871..7411432b 100644 --- a/src/cli/ui/components/TodoDrawer.tsx +++ b/src/cli/ui/components/TodoDrawer.tsx @@ -134,6 +134,13 @@ export function TodoDrawer({ )) )} + {todos.length > maxVisible && ( + + + ... and {todos.length - maxVisible} more tasks + + + )} )}