Expand description
Interactive terminal UI for browsing and gating the canned-response corpus.
Launch with canonic tui. Pure state helpers are unit-tested with
[ratatui::backend::TestBackend]; the live loop uses crossterm.
Structsยง
- App
- Application state for the corpus browser (testable without a real terminal).
- List
Entry - One row in the browser list (filtered view over the full corpus).
Enumsยง
- Focus
- Which pane / modal is focused.
Constantsยง
- ACCENT ๐
- Teal-ish accent matching the Shibuya / canonic brand.
- BAD ๐
- MUTED ๐
- OK ๐
- WARN ๐
Functionsยง
- centered_
rect ๐ - draw ๐
- help_
text ๐ - load_
focusing - Open path as a single-file corpus view (load parent dir, select that id).
- render_
test_ frame - Render one frame to a test backend (for structural UI tests).
- restore_
terminal ๐ - run_
loop ๐ - run_tui
- Run the interactive TUI until the user quits.
- setup_
terminal ๐