You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(dash): add clear-filter hint to the footer (#1226)
* feat(dash): show the applied filter in the footer
Once Enter leaves the / editing mode a filter stays active invisibly:
the footer reverts to the key hints and the user cannot tell the list
is narrowed or how to widen it again.
When filter input is set, the footer now shows
'filter: <input> · N of M sessions · esc clears ...' instead of the
hint line, and Esc outside the editing mode clears the filter (a
no-op when nothing is set). While editing, the existing live filter
line is unchanged.
Fixes #1198
* fix(dash): refresh focus and free footer's right edge on filter clear
Address PR #1226 review feedback:
- Esc on an applied filter restores rows ahead of the cursor, so the
session under it can change; refresh focus (detail fetch, bell ack)
after clamping, like every other cursor move.
- Reserve the footer's right edge for the transient status so it can't
overdraw the filter segment's controls.
- Extend the Esc regression test to the row-index-shift case and add a
filtered_with_status footer snapshot.
* fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment.
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
* feat(dash): keep footer key hints when filtered and note that esc clears it
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>