fix(ui): remove summary section from ExchangeHeader, keep only correlation chain
This commit is contained in:
@@ -30,16 +30,10 @@ export function ExchangeHeader({ detail, onExchangeClick }: ExchangeHeaderProps)
|
|||||||
const chain = chainResult?.data;
|
const chain = chainResult?.data;
|
||||||
const showChain = chain && chain.length > 1;
|
const showChain = chain && chain.length > 1;
|
||||||
|
|
||||||
|
if (!showChain) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<div className={styles.summary}>
|
|
||||||
<StatusDot variant={statusVariant(detail.status)} />
|
|
||||||
<MonoText size="xs">{detail.exchangeId || detail.executionId}</MonoText>
|
|
||||||
<Badge label={detail.status === 'COMPLETED' ? 'OK' : detail.status} color={statusVariant(detail.status)} />
|
|
||||||
<span style={{ color: 'var(--text-muted)' }}>{detail.routeId}</span>
|
|
||||||
<span className={styles.duration}>{formatDuration(detail.durationMs)}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{showChain && (
|
{showChain && (
|
||||||
<div className={styles.chain}>
|
<div className={styles.chain}>
|
||||||
<span className={styles.chainLabel}>Correlated Exchanges</span>
|
<span className={styles.chainLabel}>Correlated Exchanges</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user