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$hu extends Translations$fileInfo$en {
@override String get title => 'Fájlinformáció';
@override String get video => 'Videó';
@override String get audio => 'Hang';
@override String get subtitles => 'Feliratok';
@override String get file => 'Fájl';
@override String get advanced => 'Haladó';
@override String get codec => 'Kodek';
@override String get resolution => 'Felbontás';
@override String get bitrate => 'Bitráta';
@@ -521,7 +521,6 @@ class _Translations$fileInfo$hu extends Translations$fileInfo$en {
@override String get colorPrimaries => 'Elsődleges színek';
@override String get chromaSubsampling => 'Krominancia-alulmintavételezés';
@override String get channels => 'Csatornák';
@override String get subtitles => 'Feliratok';
@override String get overallBitrate => 'Összesített bitráta';
@override String get path => 'Elérési út';
@override String get size => 'Méret';
@@ -2560,8 +2559,8 @@ extension on TranslationsHu {
'fileInfo.title' => 'Fájlinformáció',
'fileInfo.video' => 'Videó',
'fileInfo.audio' => 'Hang',
'fileInfo.subtitles' => 'Feliratok',
'fileInfo.file' => 'Fájl',
'fileInfo.advanced' => 'Haladó',
'fileInfo.codec' => 'Kodek',
'fileInfo.resolution' => 'Felbontás',
'fileInfo.bitrate' => 'Bitráta',
@@ -2574,7 +2573,6 @@ extension on TranslationsHu {
'fileInfo.colorPrimaries' => 'Elsődleges színek',
'fileInfo.chromaSubsampling' => 'Krominancia-alulmintavételezés',
'fileInfo.channels' => 'Csatornák',
'fileInfo.subtitles' => 'Feliratok',
'fileInfo.overallBitrate' => 'Összesített bitráta',
'fileInfo.path' => 'Elérési út',
'fileInfo.size' => 'Méret',
@@ -2710,9 +2708,9 @@ extension on TranslationsHu {
'videoControls.language' => 'Nyelv',
'videoControls.noSubtitlesFound' => 'Nem találhatók feliratok',
'videoControls.subtitleDownloaded' => 'Felirat letöltve',
'videoControls.subtitleDownloadedNotApplied' => 'Felirat letöltve, de nem sikerült kiválasztani',
_ => null,
} ?? switch (path) {
'videoControls.subtitleDownloadedNotApplied' => 'Felirat letöltve, de nem sikerült kiválasztani',
'videoControls.subtitleDownloadFailed' => 'Nem sikerült a felirat letöltése',
'videoControls.searchLanguages' => 'Nyelvek keresése...',
'messages.markedAsWatched' => 'Megjelölve megtekintettként',
@@ -3224,9 +3222,9 @@ extension on TranslationsHu {
'watchTogether.failedToJoin' => 'Nem sikerült csatlakozni a munkamenethez',
'watchTogether.sessionCodeCopied' => 'A munkamenetkód a vágólapra másolva',
'watchTogether.relayUnreachable' => 'A relészerver nem érhető el. Az internetszolgáltató blokkolása megakadályozhatja a közös nézést.',
'watchTogether.reconnectingToHost' => 'Újracsatlakozás a házigazdához...',
_ => null,
} ?? switch (path) {
'watchTogether.reconnectingToHost' => 'Újracsatlakozás a házigazdához...',
'watchTogether.currentPlayback' => 'Jelenlegi lejátszás',
'watchTogether.joinCurrentPlayback' => 'Csatlakozás a jelenlegi lejátszáshoz',
'watchTogether.joinCurrentPlaybackDescription' => 'Visszatérés ahhoz, amit a házigazda éppen néz',