Hide the warning navigation hint for a single warning (#62642)

Show the TUI warning navigation hint only when there are multiple
warnings to browse. Update the single-warning snapshots to reflect the
shorter footer.

GitOrigin-RevId: 8bcea7841d9fd84e037f59a6afa3e4ef2de6f01e
This commit is contained in:
Ian MacLeod
2026-11-20 02:01:03 +00:00
committed by copyberry
parent 7642e80723
commit 64026788f3
5 changed files with 8 additions and 5 deletions
@@ -25,4 +25,4 @@ expression: screen(&tui)
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
k keep & next · esc dismiss & close · ⌃o copy
@@ -13,4 +13,4 @@ expression: warning
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
k keep & next · esc dismiss & close · ⌃o copy
@@ -25,4 +25,4 @@ Earlier transcript row 21
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
k keep & next · esc dismiss & close · ⌃o copy
@@ -107,7 +107,10 @@ impl Renderable for WarningsView {
.map(crate::key_hint::ShortcutHint::display_label),
"copy",
),
((!navigation.is_empty()).then_some(navigation), "warning"),
(
(self.entries.len() > 1 && !navigation.is_empty()).then_some(navigation),
"warning",
),
(
crate::footer_hint::scroll_keys(
offset,
@@ -13,4 +13,4 @@ expression: "super::helpers::render_bottom_popup(&chat, 80)"
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
k keep & next · esc dismiss & close · ⌃o copy