Fix warnings and update tracability
🏗️ Build and Test JellyTau / Run Tests (push) Failing after 14s
🏗️ Build and Test JellyTau / Build Android APK (push) Has been skipped
Traceability Validation / Check Requirement Traces (push) Failing after 1s

This commit is contained in:
2026-02-28 20:54:25 +01:00
parent c5be9eb18c
commit 3a9c126dfe
59 changed files with 1285 additions and 396 deletions
+8 -2
View File
@@ -3,7 +3,7 @@
import { page } from "$app/stores";
import { goto } from "$app/navigation";
import { invoke } from "@tauri-apps/api/core";
import type { MediaItem } from "$lib/api/types";
import type { MediaItem, Library } from "$lib/api/types";
import { library, libraryItems, isLibraryLoading, currentLibrary, libraries } from "$lib/stores/library";
import { auth } from "$lib/stores/auth";
import { isServerReachable } from "$lib/stores/connectivity";
@@ -66,6 +66,7 @@
});
async function loadItem() {
if (!itemId) return;
loading = true;
error = null;
seasonData = [];
@@ -171,7 +172,12 @@
return `${minutes}m`;
}
function handleItemClick(clickedItem: MediaItem) {
function handleItemClick(clickedItem: MediaItem | Library) {
if (!("type" in clickedItem)) {
// Library item - navigate to library
goto(`/library/${clickedItem.id}`);
return;
}
switch (clickedItem.type) {
case "Series":
case "Season":