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:
16 files changed
+584
-3
No files matched your search
@@ -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),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user