diff --git a/src/models/servarr_data/readarr/readarr_data.rs b/src/models/servarr_data/readarr/readarr_data.rs index e5dbcb38..62154f37 100644 --- a/src/models/servarr_data/readarr/readarr_data.rs +++ b/src/models/servarr_data/readarr/readarr_data.rs @@ -388,7 +388,19 @@ impl ReadarrData<'_> { foreign_author_id: "test-foreign-id".to_owned(), author_name: "Test Author".into(), status: AuthorStatus::Continuing, - overview: Some("some interesting description of the author".to_owned()), + overview: Some( + "Test Author is an American novelist whose science fiction has been translated into more \ + than thirty languages. Born in a small river town, the author spent a decade as a marine \ + biologist before turning to fiction, and the sea remains a constant presence in the work. \ + The debut novel won several awards and introduced the sprawling shared universe that later \ + books would return to again and again. Critics have praised the meticulous world building \ + and the quiet, humane attention to ordinary people caught up in extraordinary events. The \ + author also writes essays on the history of science, teaches an annual writing workshop, \ + and lives with a large and opinionated cat. A new trilogy is currently in progress and is \ + expected to conclude the long running saga that began with the first book. The final \ + volume has already been announced for next year." + .to_owned(), + ), author_type: Some("Person".to_owned()), disambiguation: Some("American novelist".to_owned()), ratings: Some(Ratings { diff --git a/src/ui/readarr_ui/library/add_author_ui.rs b/src/ui/readarr_ui/library/add_author_ui.rs index ff6bab80..6e1ce4f9 100644 --- a/src/ui/readarr_ui/library/add_author_ui.rs +++ b/src/ui/readarr_ui/library/add_author_ui.rs @@ -11,7 +11,9 @@ use crate::models::servarr_data::readarr::modals::AddAuthorModal; use crate::models::servarr_data::readarr::readarr_data::{ADD_AUTHOR_BLOCKS, ActiveReadarrBlock}; use crate::render_selectable_input_box; use crate::ui::styles::ManagarrStyle; -use crate::ui::utils::{get_width_from_percentage, layout_block, title_block_centered}; +use crate::ui::utils::{ + get_width_from_percentage, layout_block, layout_paragraph_borderless, title_block_centered, +}; use crate::ui::widgets::button::Button; use crate::ui::widgets::input_box::InputBox; use crate::ui::widgets::managarr_table::ManagarrTable; @@ -259,6 +261,7 @@ fn draw_confirmation_prompt(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { let author_disambiguation = searched_author.disambiguation.clone().unwrap_or_default(); let title = build_add_author_prompt_title(author_name, &author_disambiguation); + let prompt = searched_author.overview.clone().unwrap_or_default(); let yes_no_value = app.data.readarr_data.prompt_confirm; let selected_block = app.data.readarr_data.selected_block.get_active_block(); let highlights = add_author_prompt_highlights(selected_block); @@ -286,7 +289,7 @@ fn draw_confirmation_prompt(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { f.render_widget(title_block_centered(&title), area); let [ - _, + paragraph_area, root_folder_area, monitor_area, monitor_new_items_area, @@ -296,7 +299,7 @@ fn draw_confirmation_prompt(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { _, buttons_area, ] = Layout::vertical([ - Constraint::Fill(1), + Constraint::Length(6), Constraint::Length(3), Constraint::Length(3), Constraint::Length(3), @@ -309,6 +312,9 @@ fn draw_confirmation_prompt(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { .margin(1) .areas(area); + let prompt_paragraph = layout_paragraph_borderless(&prompt); + f.render_widget(prompt_paragraph, paragraph_area); + let [add_area, cancel_area] = Layout::horizontal([Constraint::Percentage(50), Constraint::Percentage(50)]) .areas(buttons_area); diff --git a/src/ui/readarr_ui/library/add_author_ui_tests.rs b/src/ui/readarr_ui/library/add_author_ui_tests.rs index 667ae129..248dccbe 100644 --- a/src/ui/readarr_ui/library/add_author_ui_tests.rs +++ b/src/ui/readarr_ui/library/add_author_ui_tests.rs @@ -274,6 +274,45 @@ mod tests { ); } + #[test] + fn test_add_author_modal_ui_renders_the_selected_author_overview() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveReadarrBlock::AddAuthorPrompt.into()); + seed_distinct_profile_lists(&mut app); + app.data.readarr_data.selected_block = BlockSelectionState::new(ADD_AUTHOR_SELECTION_BLOCKS); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + AddAuthorUi::draw(f, app, f.area()); + }); + + assert_contains!(output, "Test Author is an American novelist"); + assert_not_contains!(output, "announced for next year"); + insta::assert_snapshot!(output); + } + + #[test] + fn test_add_author_modal_ui_renders_an_author_with_no_overview() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveReadarrBlock::AddAuthorPrompt.into()); + seed_distinct_profile_lists(&mut app); + app.data.readarr_data.selected_block = BlockSelectionState::new(ADD_AUTHOR_SELECTION_BLOCKS); + app + .data + .readarr_data + .add_searched_authors + .as_mut() + .expect("add_searched_authors must be populated") + .items[0] + .overview = None; + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + AddAuthorUi::draw(f, app, f.area()); + }); + + assert_not_contains!(output, "Test Author is an American novelist"); + insta::assert_snapshot!(output); + } + #[test] fn test_add_author_already_in_library_ui_renders() { let mut app = App::test_default_fully_populated(); diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMetadataProfile.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMetadataProfile.snap index 617c0da2..4205bbc2 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMetadataProfile.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMetadataProfile.snap @@ -9,21 +9,19 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ - │ │ ╭───────────────────────────────╮──────────────────────────────╮ │ │ - │ │ │Author Only │ ▼ │ │ │ - │ │ │ │──────────────────────────────╯ │ │ - │ │ │ │──────────────────────────────╮ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │Author Only │──────────────────────────────╮ │ │ │ │ Monito│ │ ▼ │ │ │ │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ @@ -34,7 +32,9 @@ expression: output │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ │ │ │ │ │ - │ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ │ │ │ │ │ │ │ │ │ │ │ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitor.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitor.snap index b08e1755..e68a7977 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitor.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitor.snap @@ -9,32 +9,32 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ - │ │ ╭───────────────────────────────╮──────────────────────────────╮ │ │ - │ │ │All Books │ ▼ │ │ │ - │ │ │Future Books │──────────────────────────────╯ │ │ - │ │ │Missing Books │──────────────────────────────╮ │ │ - │ │ Monito│Existing Books │ ▼ │ │ │ - │ │ │First Book │──────────────────────────────╯ │ │ - │ │ │Latest Book │──────────────────────────────╮ │ │ - │ │ Qual│None │ ▼ │ │ │ - │ │ │Unknown │──────────────────────────────╯ │ │ - │ │ │ │──────────────────────────────╮ │ │ - │ │ Metad│ │ ▼ │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │All Books │──────────────────────────────╮ │ │ + │ │ Monito│Future Books │ ▼ │ │ │ + │ │ │Missing Books │──────────────────────────────╯ │ │ + │ │ │Existing Books │──────────────────────────────╮ │ │ + │ │ Qual│First Book │ ▼ │ │ │ + │ │ │Latest Book │──────────────────────────────╯ │ │ + │ │ │None │──────────────────────────────╮ │ │ + │ │ Metad│Unknown │ ▼ │ │ │ │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ │ │ │ │ │ - │ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ │ │ │ │ │ │ │ │ │ │ │ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitorNewItems.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitorNewItems.snap index 003db906..9e0245a7 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitorNewItems.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectMonitorNewItems.snap @@ -9,23 +9,21 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ - │ │ ╭───────────────────────────────╮──────────────────────────────╮ │ │ - │ │ │All Books │ ▼ │ │ │ - │ │ │No New Books │──────────────────────────────╯ │ │ - │ │ │New Books │──────────────────────────────╮ │ │ - │ │ Monito│ │ ▼ │ │ │ - │ │ │ │──────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │All Books │──────────────────────────────╮ │ │ + │ │ Monito│No New Books │ ▼ │ │ │ + │ │ │New Books │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ Qual│ │ ▼ │ │ │ │ │ │ │──────────────────────────────╯ │ │ @@ -34,7 +32,9 @@ expression: output │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ │ │ │ │ │ - │ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ │ │ │ │ │ │ │ │ │ │ │ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectQualityProfile.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectQualityProfile.snap index eb0c7de1..fb335fb3 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectQualityProfile.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectQualityProfile.snap @@ -9,21 +9,19 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ - │ │ ╭───────────────────────────────╮──────────────────────────────╮ │ │ - │ │ │eBook │ ▼ │ │ │ - │ │ │ │──────────────────────────────╯ │ │ - │ │ │ │──────────────────────────────╮ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │eBook │──────────────────────────────╮ │ │ │ │ Monito│ │ ▼ │ │ │ │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ @@ -34,7 +32,9 @@ expression: output │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ │ │ │ │ │ - │ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ │ │ │ │ │ │ │ │ │ │ │ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectRootFolder.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectRootFolder.snap index 0cd8327a..b6abb631 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectRootFolder.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorSelectRootFolder.snap @@ -9,21 +9,19 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ - │ │ ╭───────────────────────────────╮──────────────────────────────╮ │ │ - │ │ │/nfs │ ▼ │ │ │ - │ │ │ │──────────────────────────────╯ │ │ - │ │ │ │──────────────────────────────╮ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │/nfs │──────────────────────────────╮ │ │ │ │ Monito│ │ ▼ │ │ │ │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ @@ -34,7 +32,9 @@ expression: output │ │ │ │──────────────────────────────╯ │ │ │ │ │ │──────────────────────────────╮ │ │ │ │ │ │ │ │ │ - │ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ │ │ │ │ │ │ │ │ │ │ │ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorTagsInput.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorTagsInput.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorTagsInput.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_active_AddAuthorTagsInput.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_0_AddAuthorSelectRootFolder.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_0_AddAuthorSelectRootFolder.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_0_AddAuthorSelectRootFolder.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_0_AddAuthorSelectRootFolder.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_1_AddAuthorSelectMonitor.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_1_AddAuthorSelectMonitor.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_1_AddAuthorSelectMonitor.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_1_AddAuthorSelectMonitor.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_2_AddAuthorSelectMonitorNewItems.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_2_AddAuthorSelectMonitorNewItems.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_2_AddAuthorSelectMonitorNewItems.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_2_AddAuthorSelectMonitorNewItems.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_3_AddAuthorSelectQualityProfile.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_3_AddAuthorSelectQualityProfile.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_3_AddAuthorSelectQualityProfile.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_3_AddAuthorSelectQualityProfile.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_4_AddAuthorSelectMetadataProfile.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_4_AddAuthorSelectMetadataProfile.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_4_AddAuthorSelectMetadataProfile.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_4_AddAuthorSelectMetadataProfile.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_5_AddAuthorTagsInput.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_5_AddAuthorTagsInput.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_5_AddAuthorTagsInput.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_5_AddAuthorTagsInput.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_6_AddAuthorConfirmPrompt.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_6_AddAuthorConfirmPrompt.snap index 0ad696bf..00c03203 100644 --- a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_6_AddAuthorConfirmPrompt.snap +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_step_6_AddAuthorConfirmPrompt.snap @@ -9,14 +9,12 @@ expression: output ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ - ╭──────│ │───────╮ - │Test A│ │ │ - ╰──────│ │───────╯ - ╭──────│ │───────╮ - │ ✔ │ │ │ - │=> ✔ │ │ │ - │ │ │ │ - │ │ │ │ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ │ │ ╭─────────────────────────────────────────────────╮ │ │ │ │ Root Folder: │/nfs ▼ │ │ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ @@ -42,6 +40,8 @@ expression: output │ │ │ │ │ │ │ │ │ │ │ │ + │ │ │ │ + │ │ │ │ │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ │ ││ Add ││ Cancel ││ │ ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_an_author_with_no_overview.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_an_author_with_no_overview.snap new file mode 100644 index 00000000..b11223ab --- /dev/null +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_an_author_with_no_overview.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/readarr_ui/library/add_author_ui_tests.rs +expression: output +--- + + + + + + + ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ + ╭──────│ │───────╮ + │Test A│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> ✔ │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor New Items: │All Books ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Quality Profile: │eBook ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Metadata Profile: │Author Only ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Tags: │usenet, testing │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_the_selected_author_overview.snap b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_the_selected_author_overview.snap new file mode 100644 index 00000000..00c03203 --- /dev/null +++ b/src/ui/readarr_ui/library/snapshots/managarr__ui__readarr_ui__library__add_author_ui__add_author_ui_tests__tests__snapshot_tests__add_author_modal_ui_renders_the_selected_author_overview.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/readarr_ui/library/add_author_ui_tests.rs +expression: output +--- + + + + + + + ╭──────────────────────────────── Add - Test Author (American novelist) ────────────────────────────────╮ + ╭──────│ Test Author is an American novelist whose science fiction has been translated into more than thirty │───────╮ + │Test A│languages. Born in a small river town, the author spent a decade as a marine biologist before turning to │ │ + ╰──────│ fiction, and the sea remains a constant presence in the work. The debut novel won several awards and │───────╯ + ╭──────│ introduced the sprawling shared universe that later books would return to again and again. Critics have │───────╮ + │ ✔ │ praised the meticulous world building and the quiet, humane attention to ordinary people caught up in │ │ + │=> ✔ │extraordinary events. The author also writes essays on the history of science, teaches an annual writing │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Books ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor New Items: │All Books ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Quality Profile: │eBook ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Metadata Profile: │Author Only ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Tags: │usenet, testing │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯