feat(readarr): add the history UI

Renders the history table, its sort, search and filter prompts, both
empty result popups and the item details view. Snapshots cover a
non-default selection so that reading a row from a fixed index rather
than the current selection cannot pass unnoticed.
This commit is contained in:
Dark-Alex-17 committed 2026-09-04 09:49:36 -06:00
1 parent 91c2613e65
commit ee07a0289f
16 files changed
+584 -3

No files matched your search

+3
View File
@@ -3,6 +3,7 @@ use crate::ui::ui_test_utils::test_utils::Utc;
use chrono::Duration;
#[cfg(not(test))]
use chrono::Utc;
use history::HistoryUi;
use library::LibraryUi;
use ratatui::{
Frame,
@@ -38,6 +39,7 @@ use crate::{
mod blocklist;
mod downloads;
mod history;
mod library;
mod readarr_ui_utils;
@@ -60,6 +62,7 @@ impl DrawUi for ReadarrUi {
_ if LibraryUi::accepts(route) => LibraryUi::draw(f, app, content_area),
_ if DownloadsUi::accepts(route) => DownloadsUi::draw(f, app, content_area),
_ if BlocklistUi::accepts(route) => BlocklistUi::draw(f, app, content_area),
_ if HistoryUi::accepts(route) => HistoryUi::draw(f, app, content_area),
_ => (),
}
}