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 Results (top), Middle (left/center/right), Details (bottom), and Modal overlays.
- Keeps results selection centered by adjusting list offset.
- Computes and records clickable rects (URL, Sort/Filters, Options/Config/Panels, status label).