fix(P-13): leserliche Journals, readOnly-Felder, Meldungs-Badge auf Medienkacheln
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Failing after 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Successful in 56s
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Failing after 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Successful in 56s
- ReportContentModal: Name/E-Mail readOnly fuer eingeloggte Nutzer - MediaLibraryPage: content_report_filed im Journal leserlich (Meldegrund, Prioritaet, Status DE) - MediaLibraryPage: Badge auf Medienkacheln zeigt offene Meldungsanzahl (nur Admins) - media_assets.py: open_report_count Subquery fuer Admin-Sicht in Listendaten - Inbox-500-Fix: ma.media_kind -> ma.mime_type (alle 3 Stellen) - PATCH content_reports: Statuswechsel wird in Audit-Log protokolliert - E-Mails: Dateiname statt Medium-ID, lesbarer Inhalt version: 0.8.91 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
8dd748e7d9
commit
bb4d927090
6 files changed
+151
-23
No files matched your search
@@ -254,6 +254,7 @@ function eventTypeLabel(et) {
|
||||
lifecycle_change: 'Lifecycle geändert',
|
||||
legal_hold_set: 'Sofortsperre gesetzt',
|
||||
legal_hold_released: 'Sofortsperre aufgehoben',
|
||||
content_report_filed: 'Inhaltsmeldung',
|
||||
}
|
||||
return MAP[et] || et
|
||||
}
|
||||
@@ -978,6 +979,20 @@ export default function MediaLibraryPage() {
|
||||
title="Altbestand – Rechtserklärung nach neuem Standard (P-06) noch nicht erfasst"
|
||||
>Altbestand ⚠</span>
|
||||
)}
|
||||
{it.open_report_count > 0 && (
|
||||
<span
|
||||
style={{
|
||||
fontSize: '0.7rem',
|
||||
background: 'var(--danger)',
|
||||
color: '#fff',
|
||||
borderRadius: '10px',
|
||||
padding: '1px 6px',
|
||||
marginLeft: 4,
|
||||
fontWeight: 600,
|
||||
}}
|
||||
title={`${it.open_report_count} offene Inhaltsmeldung${it.open_report_count > 1 ? 'en' : ''}`}
|
||||
>{it.open_report_count} Meldung{it.open_report_count > 1 ? 'en' : ''}</span>
|
||||
)}
|
||||
</div>
|
||||
{(it.tags || []).length ? (
|
||||
<div className="media-library__tag-chips">
|
||||
@@ -1598,6 +1613,39 @@ export default function MediaLibraryPage() {
|
||||
<span>{nw.rights_status || '—'}</span>
|
||||
</div>
|
||||
</>
|
||||
) : evt.event_type === 'content_report_filed' ? (
|
||||
<>
|
||||
{nw.content_report_id ? (
|
||||
<div className="media-library__journal-audit-row">
|
||||
<span className="media-library__journal-audit-label">Meldungs-ID:</span>
|
||||
<span>#{nw.content_report_id}</span>
|
||||
</div>
|
||||
) : null}
|
||||
{nw.report_reason ? (
|
||||
<div className="media-library__journal-audit-row">
|
||||
<span className="media-library__journal-audit-label">Meldegrund:</span>
|
||||
<span>{nw.report_reason}</span>
|
||||
</div>
|
||||
) : null}
|
||||
{nw.priority ? (
|
||||
<div className="media-library__journal-audit-row">
|
||||
<span className="media-library__journal-audit-label">Priorität:</span>
|
||||
<span>{nw.priority}</span>
|
||||
</div>
|
||||
) : null}
|
||||
{nw.status ? (
|
||||
<div className="media-library__journal-audit-row">
|
||||
<span className="media-library__journal-audit-label">Status:</span>
|
||||
<span>{old.status ? `${old.status} → ` : ''}{nw.status}</span>
|
||||
</div>
|
||||
) : null}
|
||||
{nw.begründung ? (
|
||||
<div className="media-library__journal-audit-row">
|
||||
<span className="media-library__journal-audit-label">Begründung:</span>
|
||||
<span>{nw.begründung}</span>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
) : (
|
||||
Object.keys(nw).map((k) => (
|
||||
<div key={k} className="media-library__journal-audit-row">
|
||||
|
||||
Reference in new issue
Block a user