feat(resource-media): inline image/PDF previews; degrade unplayable video to link #8

Merged
eliott merged 2 commits from feat/mvp-frontend into develop 2026-05-12 20:38:03 +02:00
Owner

DocumentDownload now renders an for image MIME types and a sized

DocumentDownload now renders an <img> for image MIME types and a sized <iframe> for PDFs above the existing download row, both served through the /api/documents/:id rewrite. The video branch of ResourceMedia delegates to a new client VideoPreview component that swaps the <video> for a plain DSFR external link when onError fires, so an unplayable source no longer leaves an empty player placeholder on the page.
DocumentDownload now renders an <img> for image MIME types and a sized
<iframe> for PDFs above the existing download row, both served through
the /api/documents/:id rewrite. The video branch of ResourceMedia
delegates to a new client VideoPreview component that swaps the <video>
for a plain DSFR external link when onError fires, so an unplayable
source no longer leaves an empty player placeholder on the page.
eliott merged commit 25d9cc9e3b into develop 2026-05-12 20:38:03 +02:00
eliott deleted branch feat/mvp-frontend 2026-05-12 20:38:03 +02:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cda-solutions/resources-relationnelles-website!8
No description provided.