feat(readarr): render the author details view
Add AuthorDetailsUi: the author description pane plus the three author info tabs (Books, History, and Author Search), along with the history item details, automatic search, update and scan, and manual search confirmation popups. LibraryUi now accepts and draws it over the authors table. The description pane omits the Disambiguation and Type lines that the Lidarr equivalent renders. GET /author returns neither key, so both lines would be blank on every record. The books table drops the Type and Duration columns for the same reason, since books have no type and no duration, and renders Files as the book file count over the total book count. Land create_history_event_details together with this first caller so it is not committed as an unused function. Extract decorate_book_row_with_style rather than inlining the row styling in the table closure, matching decorate_author_row_with_style in the sibling library view. Rendering to a string discards colour, so the styling branches are only reachable by tests through a named function.
This commit is contained in:
37 files changed
+3118
-3
No files matched your search
@@ -35,6 +35,7 @@ use crate::{
|
||||
};
|
||||
|
||||
mod library;
|
||||
mod readarr_ui_utils;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "readarr_ui_tests.rs"]
|
||||
|
||||
Reference in new issue
Block a user