feat(P-11): enhance media asset handling with legal hold attributes and update version to 0.8.85
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Successful in 54s

This commit is contained in:
Lars committed 2026-05-11 13:07:52 +02:00
1 parent fb8837574e
commit f79f83e8f9
6 files changed
+24 -11

No files matched your search

@@ -151,7 +151,7 @@ export default function ExerciseInlineFileMediaModal({
limit: 48,
lifecycle: 'active',
})
setItems(Array.isArray(res.items) ? res.items : [])
setItems(Array.isArray(res.items) ? res.items.filter(a => !a.legal_hold_active) : [])
} catch (e) {
setErr(e.message || String(e))
setItems([])
+1 -1
View File
@@ -434,7 +434,7 @@ function ExerciseFormPage() {
q: archiveQ.trim() || undefined,
limit: 40,
})
if (!cancelled) setArchiveItems(res.items || [])
if (!cancelled) setArchiveItems((res.items || []).filter(a => !a.legal_hold_active))
} catch (e) {
if (!cancelled) setArchiveError(e.message || String(e))
} finally {
+6 -6
View File
@@ -508,7 +508,7 @@ export default function MediaLibraryPage() {
setLegalHoldDialog(null)
setModal(null)
setModalDraft(null)
await loadMedia()
await loadItems()
} catch (e) {
alert(e.message || String(e))
} finally {
@@ -1634,21 +1634,21 @@ export default function MediaLibraryPage() {
<>
<div className="media-library__journal-audit-row">
<span className="media-library__journal-audit-label">Grund:</span>
<span>{LEGAL_HOLD_REASON_LABELS[nw.legal_hold_reason_code] || nw.legal_hold_reason_code || '—'}</span>
<span>{LEGAL_HOLD_REASON_LABELS[nw.reason_code] || nw.reason_code || '—'}</span>
</div>
{nw.legal_hold_reason_note ? (
{nw.reason_note ? (
<div className="media-library__journal-audit-row">
<span className="media-library__journal-audit-label">Begründung:</span>
<span>{nw.legal_hold_reason_note}</span>
<span>{nw.reason_note}</span>
</div>
) : null}
</>
) : evt.event_type === 'legal_hold_released' ? (
<>
{nw.legal_hold_release_note ? (
{nw.release_note ? (
<div className="media-library__journal-audit-row">
<span className="media-library__journal-audit-label">Freigabegrund:</span>
<span>{nw.legal_hold_release_note}</span>
<span>{nw.release_note}</span>
</div>
) : null}
<div className="media-library__journal-audit-row">
+1 -1
View File
@@ -1,6 +1,6 @@
// Shinkan Jinkendo Frontend Version
export const APP_VERSION = "0.8.84"
export const APP_VERSION = "0.8.85"
export const BUILD_DATE = "2026-05-11"
export const PAGE_VERSIONS = {