Skip to main content

Module ui

Module ui 

Source
Expand description

Widget renderer. Widget rendering — the TEA view function.

Renders the application state into a terminal frame. This module contains no state mutation — it is a pure function of App → visual output.

Functions§

build_main_title 🔒
Build the title bar status string for the main pane.
build_patchset_row 🔒
Build a single table row for a patchset in the list view.
centered_rect 🔒
Compute a centered rectangle within the given area.
classify_diff_line 🔒
Render the message detail view. Classify a raw unified diff line by its leading prefix.
classify_review_line 🔒
Classify a line from a Sashiko inline review with context about whether we’ve seen quoted diff content yet.
detail_header_lines 🔒
Build header lines for the detail view.
detail_patches_lines 🔒
Build patches + inline review lines for the detail view.
detail_thread_lines 🔒
Build thread message lines for the patchset detail view.
format_date 🔒
Format a unix timestamp as YYYY-MM-DD without external crate dependencies.
format_findings 🔒
Format FindingCounts as compact severity indicators.
message_detail_lines 🔒
Build content lines for the message detail view.
panel_border_color 🔒
Return the border color for a panel based on whether it has focus.
render_detail_view 🔒
Render the patchset detail view in the given area.
render_help_overlay 🔒
render_loading_dialog 🔒
render_main_pane 🔒
Render the main patchset pane (table or placeholder) in the given area.
render_message_detail 🔒
render_message_table 🔒
Render the help overlay showing all keybinding mappings. Render a loading dialog showing the selected patchset being fetched. Render the message list table.
render_sidebar 🔒
Render the remote/mailbox sidebar in the given area.
status_color 🔒
Map a PatchsetStatus to a foreground color style.
strip_review_quoting 🔒
Strip leading > quoting prefixes from a review line.
view
Render the application state into the given frame.