MVP polish: selection clamp, graceful shutdown, pagination docs, README #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0-warpup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MVP polish pass — four targeted fixes:
Selection index clamp
selected_indexcould exceed the PR list length when async data arrived with fewer results than the previous scroll position. Addedclamp_selection()called after everyPrsLoadedevent. Also addedprev_tab()(Shift-Tab) for backwards tab cycling.Graceful event loop shutdown
The
spawn_blockingevent reader ran an infinite loop with no exit path. Added atokio::sync::watchchannel as shutdown signal —EventHandler::shutdown()sets the flag and joins the task handle beforeratatui::restore(), ensuring clean terminal teardown.Pagination limit indicator
PR fetching is capped at 50 per repo (single API page). Changed the UI to detect per-repo truncation and show a
⚠ showing first 50 per repofooter on the table block when any repo hits the limit. Added explanatory comment at thepage_size(50)call.README
Install, config TOML example, tea CLI fallback, keybindings table, pagination note.
Commits
d5aa6a4fix: clamp selected_index after PR data loads7e27b81fix: graceful shutdown for event reader threade3052c5docs: pagination limit indicator and code comment6791872docs: add README