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"