Polish menus and dialogs: lanes, headers, and a Device actions screen

- Dialog footer hints take the border's hue one shade darker (hint.*
  theme styles), mirroring the brighter title tinting.
- Dialogs get a blank breathing row above and below the body whenever
  it doesn't cost visible content.
- The chat conversation picker gains column headers over its lanes.
- The map screen titles itself "Map", matching its menu item.
- The config editor lays settings out in aligned SETTING / VALUE /
  DESCRIPTION columns under a header line, and with changes staged the
  Apply and Back rows sit together below the blank separator.
- Device actions move out of the config editor into their own screen
  behind a new menu-only device-actions tool (CLI equivalents stay
  under the config group).
- Type-to-filter keeps section headers (and column headers) in place,
  and section jumps now work over the filtered rows too.
- The main menu aligns tool names and muted descriptions into two
  columns, headerless.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Fable 5 committed 2026-07-09 23:10:11 -04:00
1 parent a23b12f6a4
commit 768487e456
11 files changed
+367 -177

No files matched your search

+10 -4
View File
@@ -18,6 +18,7 @@ import time
from contextlib import asynccontextmanager, contextmanager
from typing import AsyncIterator, Iterator, Optional
from rich.cells import cell_len
from rich.logging import RichHandler
from rich.text import Text
@@ -250,16 +251,21 @@ async def _menu_loop(ctx: AppContext, session: TuiSession) -> None:
last_selection: str | None = None
loop = asyncio.get_running_loop()
while True:
# Two aligned columns — tool name, then its muted description — with no header
# line: these are commands, not tabular data, so the alignment alone carries it.
tools = [tool for tool in all_tools() if tool.menu_visible]
name_w = max((cell_len(tool.title or tool.name) for tool in tools), default=0)
items: list = []
current_category: str | None = None
for tool in all_tools():
if not tool.menu_visible:
continue
for tool in tools:
if tool.category != current_category:
current_category = tool.category
items.append(Separator(f"── {current_category.upper()} ──"))
label = tool.title or tool.name
items.append(Choice(title=f"{label} — {tool.help}", value=tool.name))
row = Text(label)
row.append(" " * (name_w - cell_len(label) + 2))
row.append(tool.help, style="muted")
items.append(Choice(title=row, value=tool.name))
items.append(Separator(" "))
items.append(Choice(title="Quit", value="__quit__"))