docs(traces): tag episode focus view and library detail with TRACES

Add TRACES comments linking the episode focus view and library detail
page to their existing requirements.

TRACES: UR-035, UR-038, UR-048 | DR-043, DR-061, DR-062
This commit is contained in:
2026-07-23 20:03:16 +02:00
parent cf9472f04f
commit bacb9ca0bb
2 changed files with 35 additions and 13 deletions
@@ -1,3 +1,4 @@
<!-- TRACES: UR-048 | DR-061, DR-062 -->
<script lang="ts">
import { goto } from "$app/navigation";
import { truncateMiddle } from "$lib/utils/truncateMiddle";
+25 -4
View File
@@ -1,3 +1,4 @@
<!-- TRACES: UR-035, UR-038, UR-048 | DR-043, DR-062 -->
<script lang="ts">
import { onMount, untrack } from "svelte";
import { page } from "$app/stores";
@@ -515,13 +516,17 @@
</div>
{/if}
<!-- Cast Section - for Movies, Series, and Episodes -->
{#if (item.type === "Movie" || item.type === "Series" || item.type === "Episode") && item.people?.length}
<!-- Cast / Related — for Movies and Episodes these sit above the content
block; for Series they render *below* the seasons instead, so
continuation content precedes discovery content (UX §5B.4). -->
{#if item.type !== "Series"}
<!-- Cast Section - for Movies and Episodes -->
{#if (item.type === "Movie" || item.type === "Episode") && item.people?.length}
<CastSection people={item.people ?? undefined} />
{/if}
<!-- Related Items Section - for Movies and Series -->
{#if (item.type === "Movie" || item.type === "Series") && (item.genres?.length || item.people?.length)}
<!-- Related Items Section - for Movies -->
{#if item.type === "Movie" && (item.genres?.length || item.people?.length)}
<RelatedItemsSection
currentItemId={item.id}
itemType={item.type}
@@ -530,6 +535,7 @@
limit={12}
/>
{/if}
{/if}
<!-- Content items -->
<div>
@@ -580,6 +586,21 @@
/>
{/each}
{/if}
<!-- Discovery content sits below the episodes (UX §5B.4) -->
{#if item.people?.length}
<CastSection people={item.people ?? undefined} />
{/if}
{#if item.genres?.length || item.people?.length}
<RelatedItemsSection
currentItemId={item.id}
itemType={item.type}
genres={item.genres ?? undefined}
people={item.people ?? undefined}
limit={12}
/>
{/if}
</div>
{:else if item.type === "MusicArtist"}
<!-- Enhanced artist detail view with discography -->