feat(file-info): detail every version, file and stream the server reports

The sheet collapsed an item to `Media.first` / `MediaSources.first` and
rendered a fixed set of rows, so split files, extra versions, per-track
properties, HDR classification and Dolby Vision were all invisible.

Model the payload the way both servers shape it — versions own parts,
parts own streams — and project every property either backend populates
onto `MediaStreamDetails`. The field set comes from sweeping both test
servers in full through the clients' own request shapes (Plex 6842
Media / 6842 Part / 39864 Stream entries, Jellyfin 6349 sources / 37763
streams / 61224 attachments), so file presence, Dolby Vision layers,
dynamic range, sample rate, spatial audio, sidecar provenance, embedded
attachments, rotation and the lyric stream type all survive. A coverage
test fails when a server key is neither carried, folded into a sibling,
nor excluded with a reason.

File Info also stopped trusting the shared `/library/metadata/{id}`
cache row: `getPlaybackExtras` writes it without `includeStreams` /
`checkFiles`, so the sheet could render with no stream table at all.
Detect that shape and refetch once under the request context captured
before the cache read, so the outgoing token and the cache namespace
stay on one profile.

Rework the layout to match: a summary chip row, then flat tonal cards
with a two-column field grid that collapses to one column on narrow
viewports, per-stream cards with flag chips, and a copyable monospace
path row. The card fill is a tonal step off the text colour rather than
the `bg` token, which is one shade from the sheet surface on OLED.
This commit is contained in:
edde746
2026-07-29 05:19:27 +02:00
parent 69ceea9466
commit 0ef71e6489
58 changed files with 6429 additions and 515 deletions
+4 -6
View File
@@ -507,8 +507,8 @@ class _Translations$fileInfo$fr extends Translations$fileInfo$en {
@override String get title => 'Informations sur le fichier';
@override String get video => 'Vidéo';
@override String get audio => 'Audio';
@override String get subtitles => 'Sous-titres';
@override String get file => 'Fichier';
@override String get advanced => 'Avancé';
@override String get codec => 'Codec';
@override String get resolution => 'Résolution';
@override String get bitrate => 'Débit';
@@ -521,7 +521,6 @@ class _Translations$fileInfo$fr extends Translations$fileInfo$en {
@override String get colorPrimaries => 'Couleurs primaires';
@override String get chromaSubsampling => 'Sous-échantillonnage chromatique';
@override String get channels => 'Canaux';
@override String get subtitles => 'Sous-titres';
@override String get overallBitrate => 'Débit global';
@override String get path => 'Chemin';
@override String get size => 'Taille';
@@ -2560,8 +2559,8 @@ extension on TranslationsFr {
'fileInfo.title' => 'Informations sur le fichier',
'fileInfo.video' => 'Vidéo',
'fileInfo.audio' => 'Audio',
'fileInfo.subtitles' => 'Sous-titres',
'fileInfo.file' => 'Fichier',
'fileInfo.advanced' => 'Avancé',
'fileInfo.codec' => 'Codec',
'fileInfo.resolution' => 'Résolution',
'fileInfo.bitrate' => 'Débit',
@@ -2574,7 +2573,6 @@ extension on TranslationsFr {
'fileInfo.colorPrimaries' => 'Couleurs primaires',
'fileInfo.chromaSubsampling' => 'Sous-échantillonnage chromatique',
'fileInfo.channels' => 'Canaux',
'fileInfo.subtitles' => 'Sous-titres',
'fileInfo.overallBitrate' => 'Débit global',
'fileInfo.path' => 'Chemin',
'fileInfo.size' => 'Taille',
@@ -2710,9 +2708,9 @@ extension on TranslationsFr {
'videoControls.language' => 'Langue',
'videoControls.noSubtitlesFound' => 'Aucun sous-titre trouvé',
'videoControls.subtitleDownloaded' => 'Sous-titre téléchargé',
'videoControls.subtitleDownloadedNotApplied' => 'Le sous-titre a été téléchargé, mais na pas pu être sélectionné',
_ => null,
} ?? switch (path) {
'videoControls.subtitleDownloadedNotApplied' => 'Le sous-titre a été téléchargé, mais na pas pu être sélectionné',
'videoControls.subtitleDownloadFailed' => 'Échec du téléchargement du sous-titre',
'videoControls.searchLanguages' => 'Rechercher des langues...',
'messages.markedAsWatched' => 'Marqué comme vu',
@@ -3224,9 +3222,9 @@ extension on TranslationsFr {
'watchTogether.failedToJoin' => 'Échec de la connexion à la session',
'watchTogether.sessionCodeCopied' => 'Code de session copié dans le presse-papiers',
'watchTogether.relayUnreachable' => 'Serveur relais inaccessible. Un blocage par le fournisseur daccès peut empêcher le fonctionnement de Regarder ensemble.',
'watchTogether.reconnectingToHost' => 'Reconnexion à l\'hôte...',
_ => null,
} ?? switch (path) {
'watchTogether.reconnectingToHost' => 'Reconnexion à l\'hôte...',
'watchTogether.currentPlayback' => 'Lecture en cours',
'watchTogether.joinCurrentPlayback' => 'Rejoindre la lecture en cours',
'watchTogether.joinCurrentPlaybackDescription' => 'Reprendre le contenu que lhôte regarde actuellement',