From b45865d65fbde79984f026819b65f0c113a1516e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 22:14:05 +0000 Subject: [PATCH] feat(ui): add visual indicator for truncated tasks in TodoDrawer --- .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..a5daf511 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2026-08-25 - [List Truncation Context] +**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:** [Ensure lists have a count indicator when sliced by limits so users realize they are missing content.] \ No newline at end of file diff --git a/src/cli/ui/components/TodoDrawer.tsx b/src/cli/ui/components/TodoDrawer.tsx index 8304d871..6d9b74e0 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 + + + )} )}