feat(readarr): show the author overview in the add author prompt

The add author confirmation popup previously left the space above the
root folder field blank. It now renders the selected search result's
overview there, in a fixed six line area matching the Radarr add movie
prompt, so the user can confirm they picked the right author before
adding. An author without an overview keeps the same layout.

The fully populated search result fixture gains a long overview so the
snapshot proves the paragraph is clipped to six lines.
This commit is contained in:
Dark-Alex-17 committed 2026-09-16 12:00:27 -06:00
1 parent 86b91ce6dd
commit 1857d5ba15
18 files changed
+295 -142

No files matched your search

@@ -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 {
+9 -3
View File
@@ -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);
@@ -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();
@@ -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
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╮ │ │
│ │ │ │ │ │ │
│ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │ │ │
│ │ ╰───────────────────────────────╯ │ │
│ │ │ │
│ │ │ │
│ │ │ │
@@ -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 │ ▼ │ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╮ │ │
│ │ │ │ │ │ │
│ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │ │ │
│ │ ╰───────────────────────────────╯ │ │
│ │ │ │
│ │ │ │
│ │ │ │
@@ -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
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╮ │ │
│ │ │ │ │ │ │
│ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │ │ │
│ │ ╰───────────────────────────────╯ │ │
│ │ │ │
│ │ │ │
│ │ │ │
@@ -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
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╮ │ │
│ │ │ │ │ │ │
│ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │ │ │
│ │ ╰───────────────────────────────╯ │ │
│ │ │ │
│ │ │ │
│ │ │ │
@@ -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
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╮ │ │
│ │ │ │ │ │ │
│ │ ╰───────────────────────────────╯──────────────────────────────╯ │ │
│ │ │ │──────────────────────────────╯ │ │
│ │ │ │ │ │
│ │ ╰───────────────────────────────╯ │ │
│ │ │ │
│ │ │ │
│ │ │ │
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -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 ││ │
╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯