feat(P-11): implement legal hold functionality for media assets and update app version to 0.8.86
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Successful in 57s

This commit is contained in:
Lars committed 2026-05-11 13:34:41 +02:00
1 parent f79f83e8f9
commit ee54f8380f
7 files changed
+68 -8

No files matched your search

@@ -16,6 +16,15 @@ export default function ExerciseMediaEmbed({ exerciseId, media, layoutSize = 'me
: { maxWidth: 'min(560px, 85vw)', marginTop: '0.5rem' }
if (!media || exerciseId == null) return null
if (media.asset_legal_hold_active) {
return (
<div style={{ ...box, color: 'var(--danger)', fontSize: '0.85rem', padding: '8px 0' }}>
Medium nicht verfügbar (gesperrt)
</div>
)
}
if (media.embed_url) {
return (
<div
@@ -11,6 +11,32 @@ export default function ExerciseMediaThumbTile({ exerciseId, media, onOpenPrevie
height: '100%',
objectFit: 'cover',
}
if (media.asset_legal_hold_active) {
return (
<div
style={{
width: size,
height: size,
flexShrink: 0,
borderRadius: '8px',
overflow: 'hidden',
background: 'rgba(216, 90, 48, 0.10)',
border: '1px solid rgba(216, 90, 48, 0.35)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
title: 'Gesperrt',
}}
title="Medium gesperrt"
>
<span style={{ fontSize: '11px', color: 'var(--danger)', textAlign: 'center', padding: '4px' }}>
Gesperrt
</span>
</div>
)
}
return (
<div
role="button"
+5 -1
View File
@@ -1676,7 +1676,11 @@ function ExerciseFormPage() {
onClick={(e) => e.stopPropagation()}
>
<h3 style={{ marginTop: 0, fontSize: '1.05rem' }}>Vorschau</h3>
{mediaPreview.embed_url ? (
{mediaPreview.asset_legal_hold_active ? (
<p style={{ color: 'var(--danger)', fontSize: '0.9rem' }}>
Dieses Medium ist gesperrt und steht nicht zur Verfügung.
</p>
) : mediaPreview.embed_url ? (
<p style={{ fontSize: '14px', wordBreak: 'break-all' }}>
<a href={mediaPreview.embed_url} target="_blank" rel="noreferrer">
{mediaPreview.embed_url}
+3 -1
View File
@@ -1,6 +1,6 @@
// Shinkan Jinkendo Frontend Version
export const APP_VERSION = "0.8.85"
export const APP_VERSION = "0.8.86"
export const BUILD_DATE = "2026-05-11"
export const PAGE_VERSIONS = {
@@ -23,4 +23,6 @@ export const PAGE_VERSIONS = {
MediaLibraryPage: "1.6.0", // P-11: Legal-Hold-Badge, Superadmin-Aktionen, Bestaetigungs-Dialog
ExerciseInlineFileMediaModal: "1.1.0", // P-06: RightsDeclarationDialog vor Upload
ExerciseInlineEmbedModal: "1.1.0", // P-06: RightsDeclarationDialog vor Embed-Upload
ExerciseMediaEmbed: "1.1.0", // P-11: Legal-Hold-Placeholder statt Datei
ExerciseMediaThumbTile: "1.1.0", // P-11: Legal-Hold-Kachel statt Datei-Vorschau
}