feat(web): series and episodes in unified search

In-library hits now read as whatever they are: movies open the release
deck as before, series hits render display-only until issue 129's detail
view gives them a link target, and an episode hit reads as its series
plus SxxEyy plus the episode title. TMDB results show TV alongside film,
and the add panel filters roots by kind; a series adds the one §4.1
add-time choice, auto_track, stated plainly: future seasons are tracked
automatically, past seasons are not.
This commit is contained in:
Miguel Palhas
2026-08-23 18:00:54 +01:00
parent 360a4bf43c
commit 043ebffa1c
4 changed files with 155 additions and 35 deletions
-10
View File
@@ -129,16 +129,6 @@ export async function allRoots(): Promise<Root[]> {
return rootsCache;
}
/** The movie roots. The add flow pre-fills from these. */
export async function movieRoots(): Promise<Root[]> {
return (await allRoots()).filter((root) => root.kind === "movie");
}
/** The TV roots. The series add flow pre-fills from these. */
export async function tvRoots(): Promise<Root[]> {
return (await allRoots()).filter((root) => root.kind === "tv");
}
/** The stored series a successful POST /api/series returns. */
export interface ApiSeries {
id: number;