feat(ui): globaler Aktivitäts-Feed auf dem Dashboard
Karte "Letzte Aktivität" nutzt GET /historie (kein neuer Endpunkt), statt Ereignisse nur pro Objekt in der Akte sehen zu können. Lesbare Ereignis-Labels (EREIGNIS_LABEL) auch in AktePage statt rohem ereignistyp-String. Angeregt durch Resgrid-Doku (Activity-Log-Panel). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
@@ -6,6 +6,7 @@ import type { Akte } from "../api/types";
|
||||
import { DokumentePanel } from "../components/DokumentePanel";
|
||||
import { ReadinessBadge } from "../components/status/ReadinessBadge";
|
||||
import { GRUND_TEXT } from "../components/status/gruendeText";
|
||||
import { EREIGNIS_LABEL } from "../components/status/ereignisText";
|
||||
|
||||
const MANGEL_PRIORITAET_LABEL: Record<string, string> = {
|
||||
niedrig: "Niedrig",
|
||||
@@ -151,7 +152,7 @@ export function AktePage() {
|
||||
<ul>
|
||||
{akte.historie.map((h) => (
|
||||
<li key={h.id}>
|
||||
{new Date(h.zeitpunkt).toLocaleString("de-DE")} — {h.ereignistyp}
|
||||
{new Date(h.zeitpunkt).toLocaleString("de-DE")} — {EREIGNIS_LABEL[h.ereignistyp] ?? h.ereignistyp}
|
||||
{h.benutzer_name && <span className="text-muted"> ({h.benutzer_name})</span>}
|
||||
</li>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user