diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-20 14:51:07 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-20 14:51:07 +0300 |
| commit | eed9c9c1141e118e43b0055f935dd891d89bebd6 (patch) | |
| tree | 146a2b3132358fb28fde27223753670b36e87f2a /tests | |
| parent | 0f8438547e50e10b3c09f17356b1d88b93718b79 (diff) | |
panel: readable everywhere, compact/full toggle, change-driven; jump shortcut
- contrast: the summary used attributed-string colors (never vibrant) and
the subtitles a vibrant system color, so they blended differently over
light and dark desktops. the panel now uses herdr's mocha colors
explicitly over a dark tint, identical on any background.
- layout: compact in "when agents are waiting"; in "always" a show all /
show less toggle switches to the full list (waiting, separator, rest).
- rows are single-line with a trailing ellipsis instead of wrapping.
- render only when the content changes, and log each render, instead of
rebuilding every view every second.
- --snapshot-panel renders the real panel offscreen over white and black
after a different first render (stale content would show).
- jump shortcut ctrl+opt+cmd+u (jump_hotkey) runs dingger focus; shortcuts
are registered by id. an unedited first config file is upgraded.
selftest covers the layout rules and content; e2e step 13 checks the full
list, its separator, and the toggle labels.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/e2e.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/e2e.sh b/tests/e2e.sh index 054bd51..50d7fa7 100755 --- a/tests/e2e.sh +++ b/tests/e2e.sh @@ -292,6 +292,13 @@ if [ -x "$MENUBAR" ]; then DINGGER_TMUX_SOCKET="$SOCK" "$DINGGER" focus --client "$CLIENT" --pane "$A2" expect "A2 idle after the jump" "opt $A2 @agent_state" idle expect "panel with nothing waiting" "mb --print-panel" "Nothing waiting · ○ 4 idle" + expect "full list: every agent, then the summary with the toggle" \ + "mb --print-panel --full | cut -f1,2 | tr '\t\n' '|;'" \ + "○ idle|Deploy the widget;○ idle|pi;○ idle|Review PR 42;○ idle|pi;Nothing waiting · ○ 4 idle|[Show less ▴];" + expect "compact in Always mode offers 'Show all'" "mb --print-panel --toggle" "Nothing waiting · ○ 4 idle [Show all ▾]" + hook "$A1" working; hook "$A1" idle + expect "A1 done" "opt $A1 @agent_state" done + expect "full list separates waiting from the rest" "mb --print-panel --full | sed -n 2p" "---" else fail "menu bar binary not found at $MENUBAR" fi |
