fix(ui): always show correlation section, display message when none found
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user