feat(diagnostics): correlate staff operations errors and audit records
CI / check (push) Successful in 56s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m15s

This commit is contained in:
Simo committed 2026-09-11 00:34:49 +02:00
1 parent 440ce4e556
commit a2954e4408
14 files changed
+473 -110

No files matched your search

+6
View File
@@ -69,5 +69,11 @@ export function summarizeErrorGroup(events: CmsErrorRecord[]) {
releases: [...releases.values()],
latest,
operationLink: latest ? errorOperationLink(latest) : null,
auditLink:
latest?.source === "server" &&
typeof latest.context.operationId === "string" &&
/^[a-zA-Z0-9-]{1,100}$/.test(latest.context.operationId)
? `/admin/logs/audit?search=${encodeURIComponent(latest.context.operationId)}`
: null,
};
}