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