feat(readarr): add the blocklist UI

Render the Readarr blocklist table with the item details popup, the
remove item prompt and the clear blocklist prompt, and dispatch it from
ReadarrUi so the tab is reachable.

The snapshot suite covers every block in BLOCKLIST_BLOCKS plus loading
and empty states. A second set of snapshots seeds a two row fixture with
distinct values in every column and selects the second row, so that
reading items[0] instead of the current selection cannot pass.
This commit is contained in:
Dark-Alex-17 committed 2026-09-04 00:34:46 -06:00
1 parent bad43d1383
commit f73959b73f
14 files changed
+557 -3

No files matched your search

+3
View File
@@ -21,6 +21,7 @@ use super::{
},
widgets::loading_block::LoadingBlock,
};
use crate::ui::readarr_ui::blocklist::BlocklistUi;
use crate::ui::utils::{extract_monitored_disk_space_vec, extract_monitored_root_folders};
use crate::{
app::App,
@@ -34,6 +35,7 @@ use crate::{
utils::convert_to_gb,
};
mod blocklist;
mod library;
mod readarr_ui_utils;
@@ -54,6 +56,7 @@ impl DrawUi for ReadarrUi {
match route {
_ if LibraryUi::accepts(route) => LibraryUi::draw(f, app, content_area),
_ if BlocklistUi::accepts(route) => BlocklistUi::draw(f, app, content_area),
_ => (),
}
}