Skip to content

refactor(tui): reuse transcript renderer in resume preview and use dot separators - #1243

Merged
hakula139 merged 4 commits into
mainfrom
refactor/polish-resume-picker-layout
Dec 6, 2026
Merged

hakula139 merged 4 commits into
mainfrom
refactor/polish-resume-picker-layout

Conversation

@hakula139

@hakula139 hakula139 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Replace the powerline status_separator (\u{e0b1} in the nerd preset) in hint bars (render_hints, /rewind footer, /resume footer, /resume rename prompt) and /resume session metadata rows with hint_separator(ascii) (" · ", or " | " in ASCII mode).
  • Share messages_to_transcript_entries between App::replace_messages and /resume preview loading (ResumeState::preview_entries), and render the /resume right preview pane via transcript::render_preview_entries (wrapping build_transcript_lines with local Markdown caches and expanded = false) so previews match the live resumed transcript instead of custom You: / Assistant: formatting.
  • Add 1-row horizontal dividers (─ / -, with ┬ / ┴ / + junctions at the wide split border) separating the /resume search bar and footer from the list and preview body while preserving accurate HitMap coordinates and omitting dividers on short viewports (content_area.height < 4).
  • Bind Delete alongside Ctrl+D in /resume to open the session delete confirmation prompt, keeping Ctrl+D delete in the footer hint bar, and document Delete in docs/reference/tui/keybindings.md.
  • Regenerate docs/assets/tui/resume-picker.webp, docs/assets/tui/rewind-picker.webp, and docs/assets/previews.sha256 and visually inspect the updated WebP renders.

Test plan

  • nix develop -c run-hooks (all 20 hooks passed: clippy, rustfmt, cspell, dprint, markdownlint-cli2, etc.)
  • cargo test -p ox-tui (314 unit tests including mouse, fullscreen, narrow, layout, short-viewport, and Delete key tests + 2 tui_previews SHA-256 parity tests passed)
  • cargo doc --no-deps -p ox-tui (0 warnings)
  • Visually inspected docs/assets/tui/resume-picker.webp and docs/assets/tui/rewind-picker.webp

@hakula139 hakula139 added refactor Behavior-preserving restructuring area: tui Touches terminal UI rendering, input, or theming labels Dec 6, 2026
@hakula139 hakula139 self-assigned this Dec 6, 2026
@codecov

codecov Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.11321% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ox-tui/src/app/events.rs 92.30% 1 Missing ⚠️
crates/ox-tui/src/render/ui/resume.rs 99.09% 1 Missing ⚠️
crates/ox-tui/src/render/ui/transcript.rs 95.83% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

…t separators

Use middot (ASCII pipe) separators in hint bars and /resume metadata rows instead of the powerline statusline chevron, share Message-to-TranscriptEntry conversion and transcript rendering for the /resume preview pane, add horizontal dividers separating the search bar and footer from the list/preview split, and regenerate the affected TUI previews.
Use hint_separator in the /resume rename footer so ASCII mode renders pipes, order helpers top-down in resume.rs, and add short-viewport coverage for divider omission.
@hakula139
hakula139 force-pushed the refactor/polish-resume-picker-layout branch from 82cb090 to 3c256c8 Compare December 6, 2026 13:18
@hakula139
hakula139 merged commit 51b0815 into main Dec 6, 2026
10 checks passed
@hakula139
hakula139 deleted the refactor/polish-resume-picker-layout branch December 6, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tui Touches terminal UI rendering, input, or theming refactor Behavior-preserving restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant