fix(ui): always show correlation section, display message when none found
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m0s
CI / docker (push) Has started running
CI / deploy (push) Has been cancelled
CI / deploy-feature (push) Has been cancelled

This commit is contained in:
hsiegeln
2026-03-28 15:24:20 +01:00
parent 29f4be542b
commit 3d86d57a80
2 changed files with 14 additions and 8 deletions

View File

@@ -180,3 +180,9 @@
color: var(--text-muted);
font-size: 9px;
}
.chainNone {
color: var(--text-muted);
font-size: 11px;
font-style: italic;
}

View File

@@ -89,11 +89,10 @@ export function ExchangeHeader({ detail }: ExchangeHeaderProps) {
<span className={styles.duration}>{formatDuration(detail.durationMs)}</span>
</div>
{/* Correlation chain — only when multiple correlated exchanges exist */}
{showChain && (
<div className={styles.chain}>
<span className={styles.chainLabel}>Correlated</span>
{chain.map((ce: any, i: number) => {
{/* Correlation chain */}
<div className={styles.chain}>
<span className={styles.chainLabel}>Correlated</span>
{showChain ? chain.map((ce: any, i: number) => {
const isCurrent = ce.executionId === detail.executionId;
const variant = statusVariant(ce.status);
const statusCls =
@@ -119,9 +118,10 @@ export function ExchangeHeader({ detail }: ExchangeHeaderProps) {
</button>
</span>
);
})}
</div>
)}
}) : (
<span className={styles.chainNone}>no correlated exchanges found</span>
)}
</div>
</div>
);
}