pub fn ui(f: &mut Frame<'_>, app: &mut AppState)Expand description
What: Render a full frame of the Pacsea TUI.
Inputs:
f:ratatuiframe to render intoapp: Mutable application state; updated during rendering for selection offsets, cursor position, and clickable geometry
Output:
- Draws the entire interface and updates hit-test rectangles used by mouse handlers.
Details:
- Applies global theme/background; renders the three main vertical bands in
main_pane_order, then modal overlays. - Keeps results selection centered by adjusting list offset.
- Computes and records clickable rects (URL, Sort/Filters, Options/Config/Panels, status label).