Vertragshistorie: Vertragsnummern als Link in neuem Tab

Erwähnte Vertragsnummern (Pattern PREFIX-RANDOM) in Title und
Description werden gegen previousContract + followUpContract des
aktuellen Vertrags aufgelöst und als Link mit target="_blank"
gerendert. Nicht aufgelöste Nummern bleiben als Text.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-30 14:33:11 +02:00
parent e527aebb84
commit 3a9cece929
2 changed files with 58 additions and 3 deletions
@@ -3224,6 +3224,14 @@ export default function ContractDetail() {
<ContractHistorySection
contractId={contractId}
canEdit={hasPermission('contracts:update')}
knownContracts={{
...(c.previousContract?.contractNumber
? { [c.previousContract.contractNumber]: c.previousContract.id }
: {}),
...(c.followUpContract?.contractNumber
? { [c.followUpContract.contractNumber]: c.followUpContract.id }
: {}),
}}
/>
)}