From 42bb6859e1094303d3952298e3ce8e52f0b8955a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 21:43:19 +0000 Subject: [PATCH] feat(ui): add visual indicator for truncated todo lists --- .jules/palette.md | 3 +++ src/cli/ui/components/TodoDrawer.tsx | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 .jules/palette.md 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 + + + )} )}