chore(p11): fix stale-id docs, align test EntryKey shapes, drop dead track-card-link CSS

This commit is contained in:
daniel-c-harvey
2026-06-16 18:05:37 -04:00
parent 5b3036ed83
commit dae8020a22
4 changed files with 9 additions and 18 deletions
@@ -5,11 +5,11 @@ namespace DeepDrftPublic.Client.Common;
/// <summary>
/// The single source of truth for a release's dedicated detail route (Phase 11 §2). A release
/// resolves to its per-medium detail page purely from its id and <see cref="ReleaseMedium"/> — no
/// round-trip needed at call sites that already hold the medium (Archive cards, AlbumsView cards,
/// the player-bar title). The thin <c>/tracks/{id}</c> redirect page fetches by id to discover the
/// medium, then resolves through this same helper, so the medium→route table lives in exactly one
/// place.
/// resolves to its per-medium detail page from its <see cref="ReleaseDto.EntryKey"/> and
/// <see cref="ReleaseMedium"/> — no round-trip needed at call sites that already hold the medium
/// (Archive cards, AlbumsView cards, the player-bar title). The thin <c>/tracks/{entryKey}</c>
/// redirect page fetches by EntryKey to discover the medium, then resolves through this same
/// helper, so the medium→route table lives in exactly one place.
/// </summary>
public static class ReleaseRoutes
{
@@ -3,7 +3,7 @@
@* The single release-card grid for every browse surface (Sessions, Mixes, Cuts, Archive). Cards
open a detail page; how a card computes its href is the only real divergence across surfaces, so
the parent supplies it one of two ways:
- DetailRoute (the simple default): every card links /{DetailRoute}/{id} (Sessions, Mixes).
- DetailRoute (the simple default): every card links /{DetailRoute}/{entryKey} (Sessions, Mixes).
- HrefResolver (per-card): each card links HrefResolver(release), so Archive routes each card by
its own medium through the one ReleaseRoutes table, and Cuts routes to /cuts/{entryKey}.
HrefResolver wins when both are supplied. The card subtitle defaults to the artist; SubtitleResolver
@@ -74,7 +74,7 @@
[Parameter] public bool Loading { get; set; }
/// <summary>
/// Route segment for a card's detail page; a card links to /{DetailRoute}/{id}. The simple
/// Route segment for a card's detail page; a card links to /{DetailRoute}/{entryKey}. The simple
/// fixed-route default used by Sessions/Mixes. Ignored when <see cref="HrefResolver"/> is supplied.
/// </summary>
[Parameter] public string? DetailRoute { get; set; }