feat(sonarr): add a scrollable overview popup to series details
A series' overview renders as one line of a description box that does not scroll, so a long overview overflows with no way to read the rest. Pressing v on the series details Seasons tab now opens a popup holding the full overview. The popup owns its own ScrollableText, built fresh from the series' overview when it opens and torn down on Esc so a reopened popup starts at the top. Scrolling mutates only that owned state. The background paragraph renders the Series record's overview, which carries no scroll offset, so it cannot scroll along with the popup. Cite the existing view keybinding from the series details context clues and give the popup its own clue set so it does not inherit the hints of the view underneath. Enrich the shared series fixture to a multi-paragraph overview, and the raw response fixture that encodes the same series, so a scrolled popup is distinguishable from an unscrolled one.
This commit is contained in:
57 files changed
+1454
-62
No files matched your search
@@ -11,7 +11,7 @@ mod tests {
|
||||
SELECTABLE_EPISODE_DETAILS_CONTEXT_CLUES,
|
||||
};
|
||||
use crate::models::servarr_data::sonarr::modals::{
|
||||
EditSeriesModal, EpisodeDetailsModal, SeasonDetailsModal,
|
||||
EditSeriesModal, EpisodeDetailsModal, SeasonDetailsModal, SeriesOverviewModal,
|
||||
};
|
||||
use crate::models::servarr_data::sonarr::sonarr_data::ActiveSonarrBlock;
|
||||
use crate::models::servarr_models::{Indexer, IndexerField};
|
||||
@@ -428,4 +428,11 @@ mod tests {
|
||||
None
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_series_overview_modal_default() {
|
||||
let series_overview_modal = SeriesOverviewModal::default();
|
||||
|
||||
assert_is_empty!(series_overview_modal.overview);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user