feat: ExchangeDetail and AgentHealth pages

ExchangeDetail (/exchanges/:id): exchange header card with ID/route/
status/duration, ProcessorTimeline for the specific exchange, step-by-
step exchange inspector using Collapsible+CodeBlock for headers/body at
each processor step, and error details block for failed exchanges.

AgentHealth (/agents): 6-card system overview strip, 2-column grid of
agent cards (StatusDot, name, version, tps, uptime, last-seen, CPU/mem
usage, active routes), expandable per-agent LineCharts for throughput
and error rate trends. Both pages use AppShell + shared Sidebar layout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-18 10:22:11 +01:00
parent ebf653e848
commit 82f7f88820
4 changed files with 1049 additions and 0 deletions

View File

@@ -0,0 +1,192 @@
/* Scrollable content area */
.content {
flex: 1;
overflow-y: auto;
padding: 20px 24px 40px;
min-width: 0;
background: var(--bg-body);
}
/* System overview strip */
.overviewStrip {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 10px;
margin-bottom: 16px;
}
.overviewCard {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
padding: 12px 16px;
text-align: center;
}
.overviewLabel {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--text-muted);
margin-bottom: 4px;
}
.overviewValue {
font-size: 22px;
font-weight: 700;
font-family: var(--font-mono);
color: var(--text-primary);
line-height: 1.2;
}
.valueLive { color: var(--success); }
.valueStale { color: var(--warning); }
.valueDead { color: var(--error); }
/* Section header */
.sectionHeaderRow {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.sectionTitle {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.sectionMeta {
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-mono);
}
/* Agent cards grid */
.agentGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
/* Agent card */
.agentCard {
display: flex;
flex-direction: column;
gap: 0;
overflow: hidden;
padding: 0 !important;
}
/* Agent card header */
.agentCardHeader {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px 10px;
cursor: pointer;
transition: background 0.15s;
}
.agentCardHeader:hover {
background: var(--bg-hover);
}
.agentCardLeft {
display: flex;
align-items: center;
gap: 10px;
}
.agentCardName {
font-size: 14px;
font-weight: 700;
font-family: var(--font-mono);
color: var(--text-primary);
}
.agentCardService {
font-size: 11px;
color: var(--text-secondary);
font-family: var(--font-mono);
}
.agentCardRight {
display: flex;
align-items: center;
gap: 10px;
}
.expandIcon {
font-size: 10px;
color: var(--text-muted);
}
/* Agent metrics row */
.agentMetrics {
display: flex;
flex-wrap: wrap;
gap: 0;
padding: 6px 12px 12px;
border-top: 1px solid var(--border-subtle);
}
.agentMetric {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 6px 12px;
min-width: 80px;
}
.metricLabel {
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--text-muted);
margin-bottom: 2px;
}
.metricValue {
color: var(--text-primary);
}
.metricValueWarn {
color: var(--warning);
font-family: var(--font-mono);
font-size: 12px;
}
.metricValueError {
color: var(--error);
font-family: var(--font-mono);
font-size: 12px;
}
/* Expanded charts area */
.agentCharts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 12px 16px;
background: var(--bg-raised);
border-top: 1px solid var(--border-subtle);
}
.agentChart {
display: flex;
flex-direction: column;
gap: 6px;
}
.chartTitle {
font-size: 11px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}