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
+91 -3
View File
@@ -381,30 +381,118 @@
},
"fileInfo": {
"title": "Fayl haqida maʼlumot",
"overview": "",
"video": "Video",
"audio": "Audio",
"subtitles": "Subtitrlar",
"images": "",
"dataStreams": "",
"lyrics": "",
"file": "Fayl",
"advanced": "Kengaytirilgan",
"attachments": "",
"delivery": "",
"versionCounter": "",
"fileCounter": "",
"noStreams": "",
"copyPath": "",
"pathCopied": "",
"codec": "Kodek",
"codecTag": "",
"resolution": "Oʻlchamlari (Resolution)",
"codedResolution": "",
"bitrate": "Bitreyt (Bitrate)",
"frameRate": "Kadrlar chastotasi",
"rotation": "",
"comment": "",
"audioDescription": "",
"headerCompression": "",
"sidecarFile": "",
"transportTimestamp": "",
"displayOffset": "",
"previewFailureCode": "",
"previewRetries": "",
"aspectRatio": "Tomonlar nisbati",
"pixelAspectRatio": "",
"profile": "Profil",
"level": "",
"bitDepth": "Bit chuqurligi",
"pixelFormat": "",
"colorSpace": "Rang makoni",
"colorRange": "Rang diapazoni",
"colorPrimaries": "Asosiy ranglar",
"colorTransfer": "",
"chromaSubsampling": "Rangli subdiskretlash",
"chromaLocation": "",
"scanType": "",
"interlaced": "",
"anamorphic": "",
"referenceFrames": "",
"dynamicRange": "",
"dolbyVision": "",
"dolbyVisionLevel": "",
"dolbyVisionVersion": "",
"dolbyVisionLayers": "",
"baseLayerCompatibility": "",
"avcBitstream": "",
"nalLengthSize": "",
"scalingMatrix": "",
"streamIdentifier": "",
"streamIndex": "",
"streamId": "",
"language": "",
"languageCode": "",
"streamTitle": "",
"channels": "Kanallar",
"subtitles": "Subtitrlar",
"sampleRate": "",
"spatialAudio": "",
"textBased": "",
"subtitleFormat": "",
"provider": "",
"matchScore": "",
"externalDelivery": "",
"sidecarPath": "",
"sourceStream": "",
"temporary": "",
"timeBase": "",
"overallBitrate": "Umumiy bitreyt",
"path": "Yoʻl",
"fileName": "",
"size": "Hajmi",
"totalSize": "",
"container": "Konteyner",
"duration": "Davomiyligi",
"previewThumbnails": "",
"previewIndex": "",
"packetLength": "",
"filePresent": "",
"fileReadable": "",
"streamPath": "",
"optimizedForStreaming": "Oqimli uzatish uchun optimallashtirilgan",
"has64bitOffsets": "64-bitli siljishlar"
"has64bitOffsets": "64-bitli siljishlar",
"protocol": "",
"mediaType": "",
"sourceKind": "",
"optimizedVersion": "",
"optimizationTarget": "",
"deletedAt": "",
"remoteSource": "",
"infiniteStream": "",
"directPlay": "",
"directStream": "",
"transcoding": "",
"etag": "",
"versionId": "",
"fileId": "",
"defaultAudioTrack": "",
"defaultSubtitleTrack": "",
"subtitlesOff": "",
"flagDefault": "",
"flagForced": "",
"flagSelected": "",
"flagExternal": "",
"flagHearingImpaired": "",
"flagDub": "",
"flagOriginal": ""
},
"mediaMenu": {
"markAsWatched": "Koʻrilgan deb belgilash",