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
@@ -510,8 +510,8 @@ class _Translations$fileInfo$az extends Translations$fileInfo$en {
@override String get title => 'Fayl məlumatı';
@override String get video => 'Video';
@override String get audio => 'Səs';
@override String get subtitles => 'Altyazılar';
@override String get file => 'Fayl';
@override String get advanced => 'Təkmilləşdirilmiş';
@override String get codec => 'Kodek';
@override String get resolution => 'Ayırdetmə';
@override String get bitrate => 'Bit sürəti (Bitrate)';
@@ -524,7 +524,6 @@ class _Translations$fileInfo$az extends Translations$fileInfo$en {
@override String get colorPrimaries => 'Əsas rənglər';
@override String get chromaSubsampling => 'Rəng alt-diskretləşdirməsi';
@override String get channels => 'Kanallar';
@override String get subtitles => 'Altyazılar';
@override String get overallBitrate => 'Ümumi bit sürəti';
@override String get path => 'Yol';
@override String get size => 'Həcm';
@@ -2574,8 +2573,8 @@ extension on TranslationsAz {
'fileInfo.title' => 'Fayl məlumatı',
'fileInfo.video' => 'Video',
'fileInfo.audio' => 'Səs',
'fileInfo.subtitles' => 'Altyazılar',
'fileInfo.file' => 'Fayl',
'fileInfo.advanced' => 'Təkmilləşdirilmiş',
'fileInfo.codec' => 'Kodek',
'fileInfo.resolution' => 'Ayırdetmə',
'fileInfo.bitrate' => 'Bit sürəti (Bitrate)',
@@ -2588,7 +2587,6 @@ extension on TranslationsAz {
'fileInfo.colorPrimaries' => 'Əsas rənglər',
'fileInfo.chromaSubsampling' => 'Rəng alt-diskretləşdirməsi',
'fileInfo.channels' => 'Kanallar',
'fileInfo.subtitles' => 'Altyazılar',
'fileInfo.overallBitrate' => 'Ümumi bit sürəti',
'fileInfo.path' => 'Yol',
'fileInfo.size' => 'Həcm',
@@ -2721,9 +2719,9 @@ extension on TranslationsAz {
'videoControls.queue' => 'Növbə',
'videoControls.noQueueItems' => 'Növbədə element yoxdur',
'videoControls.searchSubtitles' => 'Altyazı axtar',
'videoControls.language' => 'Dil',
_ => null,
} ?? switch (path) {
'videoControls.language' => 'Dil',
'videoControls.noSubtitlesFound' => 'Altyazı tapılmadı',
'videoControls.subtitleDownloaded' => 'Altyazı yükləndi',
'videoControls.subtitleDownloadedNotApplied' => 'Altyazı yükləndi, lakin seçilə bilmədi',
@@ -3235,9 +3233,9 @@ extension on TranslationsAz {
'watchTogether.pasteFromClipboard' => 'Buferdən yapışdır',
'watchTogether.pleaseEnterCode' => 'Lütfən seans kodunu daxil edin',
'watchTogether.codeMustBe5Chars' => 'Seans kodu 5 simvol olmalıdır',
'watchTogether.joinInstructions' => 'Qoşulmaq üçün təşkilatçının seans kodunu daxil edin.',
_ => null,
} ?? switch (path) {
'watchTogether.joinInstructions' => 'Qoşulmaq üçün təşkilatçının seans kodunu daxil edin.',
'watchTogether.failedToCreate' => 'Seans yaradıla bilmədi',
'watchTogether.failedToJoin' => 'Seansa qoşuluna bilmədi',
'watchTogether.sessionCodeCopied' => 'Seans kodu buferə kopyalandı',