feat(ui): restructure AppConfigDetailPage into 3 sections
Merge Logging + Observability into unified "Settings" section with flex-wrap badge grid including new compressSuccess toggle. Merge Traced Processors with Taps into "Traces & Taps" section showing capture mode and tap badges per processor. Add "Route Recording" section with per-route toggles sourced from route catalog. All new fields (compressSuccess, routeRecording) included in form state and save payload. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
.page {
|
.page {
|
||||||
max-width: 640px;
|
max-width: 720px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,11 +115,23 @@
|
|||||||
padding: 16px 20px;
|
padding: 16px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sectionSummary {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.settingsGrid {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 16px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.field {
|
.field {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
min-width: 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@@ -158,6 +170,12 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tapBadges {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.hint {
|
.hint {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
|||||||
@@ -1,15 +1,29 @@
|
|||||||
import { useEffect, useState, useMemo } from 'react';
|
import { useEffect, useState, useMemo } from 'react';
|
||||||
import { useParams, useNavigate } from 'react-router';
|
import { useParams, useNavigate } from 'react-router';
|
||||||
import {
|
import {
|
||||||
Button, SectionHeader, MonoText, Badge, DataTable, Spinner, useToast,
|
Button, SectionHeader, MonoText, Badge, DataTable, Spinner, Toggle, useToast,
|
||||||
} from '@cameleer/design-system';
|
} from '@cameleer/design-system';
|
||||||
import type { Column } from '@cameleer/design-system';
|
import type { Column } from '@cameleer/design-system';
|
||||||
import { useApplicationConfig, useUpdateApplicationConfig } from '../../api/queries/commands';
|
import { useApplicationConfig, useUpdateApplicationConfig } from '../../api/queries/commands';
|
||||||
import type { ApplicationConfig } from '../../api/queries/commands';
|
import type { ApplicationConfig, TapDefinition } from '../../api/queries/commands';
|
||||||
|
import { useRouteCatalog } from '../../api/queries/catalog';
|
||||||
|
import type { AppCatalogEntry, RouteSummary } from '../../api/types';
|
||||||
import styles from './AppConfigDetailPage.module.css';
|
import styles from './AppConfigDetailPage.module.css';
|
||||||
|
|
||||||
type BadgeColor = 'primary' | 'success' | 'warning' | 'error' | 'running' | 'auto';
|
type BadgeColor = 'primary' | 'success' | 'warning' | 'error' | 'running' | 'auto';
|
||||||
interface TracedRow { id: string; processorId: string; captureMode: string }
|
|
||||||
|
interface TracedTapRow {
|
||||||
|
id: string;
|
||||||
|
processorId: string;
|
||||||
|
captureMode: string | null;
|
||||||
|
taps: TapDefinition[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RouteRecordingRow {
|
||||||
|
id: string;
|
||||||
|
routeId: string;
|
||||||
|
recording: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
function formatTimestamp(iso?: string): string {
|
function formatTimestamp(iso?: string): string {
|
||||||
if (!iso) return '\u2014';
|
if (!iso) return '\u2014';
|
||||||
@@ -59,22 +73,32 @@ export default function AppConfigDetailPage() {
|
|||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
const { data: config, isLoading } = useApplicationConfig(appId);
|
const { data: config, isLoading } = useApplicationConfig(appId);
|
||||||
const updateConfig = useUpdateApplicationConfig();
|
const updateConfig = useUpdateApplicationConfig();
|
||||||
|
const { data: catalog } = useRouteCatalog();
|
||||||
|
|
||||||
const [editing, setEditing] = useState(false);
|
const [editing, setEditing] = useState(false);
|
||||||
const [form, setForm] = useState<Partial<ApplicationConfig> | null>(null);
|
const [form, setForm] = useState<Partial<ApplicationConfig> | null>(null);
|
||||||
const [tracedDraft, setTracedDraft] = useState<Record<string, string>>({});
|
const [tracedDraft, setTracedDraft] = useState<Record<string, string>>({});
|
||||||
|
const [routeRecordingDraft, setRouteRecordingDraft] = useState<Record<string, boolean>>({});
|
||||||
|
|
||||||
|
// Find routes for this application from the catalog
|
||||||
|
const appRoutes: RouteSummary[] = useMemo(() => {
|
||||||
|
if (!catalog || !appId) return [];
|
||||||
|
const entry = (catalog as AppCatalogEntry[]).find((e) => e.appId === appId);
|
||||||
|
return entry?.routes ?? [];
|
||||||
|
}, [catalog, appId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (config) {
|
if (config) {
|
||||||
// Reset form when server data arrives (after save or initial load)
|
|
||||||
setForm({
|
setForm({
|
||||||
logForwardingLevel: config.logForwardingLevel ?? 'INFO',
|
logForwardingLevel: config.logForwardingLevel ?? 'INFO',
|
||||||
engineLevel: config.engineLevel ?? 'REGULAR',
|
engineLevel: config.engineLevel ?? 'REGULAR',
|
||||||
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
||||||
metricsEnabled: config.metricsEnabled,
|
metricsEnabled: config.metricsEnabled,
|
||||||
samplingRate: config.samplingRate,
|
samplingRate: config.samplingRate,
|
||||||
|
compressSuccess: config.compressSuccess,
|
||||||
});
|
});
|
||||||
setTracedDraft({ ...config.tracedProcessors });
|
setTracedDraft({ ...config.tracedProcessors });
|
||||||
|
setRouteRecordingDraft({ ...config.routeRecording });
|
||||||
}
|
}
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
||||||
@@ -86,8 +110,10 @@ export default function AppConfigDetailPage() {
|
|||||||
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
payloadCaptureMode: config.payloadCaptureMode ?? 'NONE',
|
||||||
metricsEnabled: config.metricsEnabled,
|
metricsEnabled: config.metricsEnabled,
|
||||||
samplingRate: config.samplingRate,
|
samplingRate: config.samplingRate,
|
||||||
|
compressSuccess: config.compressSuccess,
|
||||||
});
|
});
|
||||||
setTracedDraft({ ...config.tracedProcessors });
|
setTracedDraft({ ...config.tracedProcessors });
|
||||||
|
setRouteRecordingDraft({ ...config.routeRecording });
|
||||||
setEditing(true);
|
setEditing(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,9 +136,18 @@ export default function AppConfigDetailPage() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateRouteRecording(routeId: string, recording: boolean) {
|
||||||
|
setRouteRecordingDraft((prev) => ({ ...prev, [routeId]: recording }));
|
||||||
|
}
|
||||||
|
|
||||||
function handleSave() {
|
function handleSave() {
|
||||||
if (!config || !form) return;
|
if (!config || !form) return;
|
||||||
const updated = { ...config, ...form, tracedProcessors: tracedDraft };
|
const updated: ApplicationConfig = {
|
||||||
|
...config,
|
||||||
|
...form,
|
||||||
|
tracedProcessors: tracedDraft,
|
||||||
|
routeRecording: routeRecordingDraft,
|
||||||
|
} as ApplicationConfig;
|
||||||
updateConfig.mutate(updated, {
|
updateConfig.mutate(updated, {
|
||||||
onSuccess: (saved) => {
|
onSuccess: (saved) => {
|
||||||
setEditing(false);
|
setEditing(false);
|
||||||
@@ -124,24 +159,53 @@ export default function AppConfigDetailPage() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const tracedRows: TracedRow[] = useMemo(() => {
|
// ── Traces & Taps merged rows ──────────────────────────────────────────────
|
||||||
|
|
||||||
|
const tracedTapRows: TracedTapRow[] = useMemo(() => {
|
||||||
|
const traced = editing ? tracedDraft : (config?.tracedProcessors ?? {});
|
||||||
|
const taps = config?.taps ?? [];
|
||||||
|
|
||||||
|
// Collect all unique processor IDs
|
||||||
|
const processorIds = new Set<string>([
|
||||||
|
...Object.keys(traced),
|
||||||
|
...taps.map((t) => t.processorId),
|
||||||
|
]);
|
||||||
|
|
||||||
|
return Array.from(processorIds).sort().map((pid) => ({
|
||||||
|
id: pid,
|
||||||
|
processorId: pid,
|
||||||
|
captureMode: traced[pid] ?? null,
|
||||||
|
taps: taps.filter((t) => t.processorId === pid),
|
||||||
|
}));
|
||||||
|
}, [editing, tracedDraft, config?.tracedProcessors, config?.taps]);
|
||||||
|
|
||||||
|
const tracedCount = useMemo(() => {
|
||||||
const source = editing ? tracedDraft : (config?.tracedProcessors ?? {});
|
const source = editing ? tracedDraft : (config?.tracedProcessors ?? {});
|
||||||
return Object.entries(source).map(
|
return Object.keys(source).length;
|
||||||
([pid, mode]) => ({ id: pid, processorId: pid, captureMode: mode }),
|
|
||||||
);
|
|
||||||
}, [editing, tracedDraft, config?.tracedProcessors]);
|
}, [editing, tracedDraft, config?.tracedProcessors]);
|
||||||
|
|
||||||
const tracedColumns: Column<TracedRow>[] = useMemo(() => [
|
const tapCount = config?.taps?.length ?? 0;
|
||||||
{ key: 'processorId', header: 'Processor ID', render: (_v, row) => <MonoText size="xs">{row.processorId}</MonoText> },
|
|
||||||
|
const tracedTapColumns: Column<TracedTapRow>[] = useMemo(() => [
|
||||||
|
{
|
||||||
|
key: 'processorId',
|
||||||
|
header: 'Processor',
|
||||||
|
render: (_v, row) => <MonoText size="xs">{row.processorId}</MonoText>,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'captureMode',
|
key: 'captureMode',
|
||||||
header: 'Capture Mode',
|
header: 'Capture',
|
||||||
render: (_v, row) => {
|
render: (_v, row) => {
|
||||||
|
if (row.captureMode === null) {
|
||||||
|
return <span className={styles.hint}>—</span>;
|
||||||
|
}
|
||||||
if (editing) {
|
if (editing) {
|
||||||
return (
|
return (
|
||||||
<select className={styles.select} value={row.captureMode}
|
<select
|
||||||
|
className={styles.select}
|
||||||
|
value={row.captureMode}
|
||||||
onChange={(e) => updateTracedProcessor(row.processorId, e.target.value)}
|
onChange={(e) => updateTracedProcessor(row.processorId, e.target.value)}
|
||||||
style={{ maxWidth: 160 }}>
|
>
|
||||||
<option value="NONE">None</option>
|
<option value="NONE">None</option>
|
||||||
<option value="INPUT">Input</option>
|
<option value="INPUT">Input</option>
|
||||||
<option value="OUTPUT">Output</option>
|
<option value="OUTPUT">Output</option>
|
||||||
@@ -152,18 +216,79 @@ export default function AppConfigDetailPage() {
|
|||||||
return <Badge label={row.captureMode} color={captureColor(row.captureMode)} variant="filled" />;
|
return <Badge label={row.captureMode} color={captureColor(row.captureMode)} variant="filled" />;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'taps',
|
||||||
|
header: 'Taps',
|
||||||
|
render: (_v, row) => {
|
||||||
|
if (row.taps.length === 0) {
|
||||||
|
return <span className={styles.hint}>—</span>;
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<div className={styles.tapBadges}>
|
||||||
|
{row.taps.map((t) => (
|
||||||
|
<Badge
|
||||||
|
key={t.tapId}
|
||||||
|
label={t.attributeName}
|
||||||
|
color={t.enabled ? 'success' : 'auto'}
|
||||||
|
variant="filled"
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
...(editing ? [{
|
...(editing ? [{
|
||||||
key: '_remove' as const,
|
key: '_remove' as const,
|
||||||
header: '',
|
header: '',
|
||||||
width: '36px',
|
width: '36px',
|
||||||
render: (_v: unknown, row: TracedRow) => (
|
render: (_v: unknown, row: TracedTapRow) => {
|
||||||
<button className={styles.removeBtn} title="Remove" onClick={() => updateTracedProcessor(row.processorId, 'REMOVE')}>
|
if (row.captureMode === null) return null;
|
||||||
×
|
return (
|
||||||
</button>
|
<button className={styles.removeBtn} title="Remove" onClick={() => updateTracedProcessor(row.processorId, 'REMOVE')}>
|
||||||
),
|
×
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
},
|
||||||
}] : []),
|
}] : []),
|
||||||
], [editing]);
|
], [editing]);
|
||||||
|
|
||||||
|
// ── Route Recording rows ───────────────────────────────────────────────────
|
||||||
|
|
||||||
|
const routeRecordingRows: RouteRecordingRow[] = useMemo(() => {
|
||||||
|
const recording = editing ? routeRecordingDraft : (config?.routeRecording ?? {});
|
||||||
|
return appRoutes.map((r) => ({
|
||||||
|
id: r.routeId,
|
||||||
|
routeId: r.routeId,
|
||||||
|
recording: recording[r.routeId] !== false,
|
||||||
|
}));
|
||||||
|
}, [editing, routeRecordingDraft, config?.routeRecording, appRoutes]);
|
||||||
|
|
||||||
|
const recordingCount = routeRecordingRows.filter((r) => r.recording).length;
|
||||||
|
|
||||||
|
const routeRecordingColumns: Column<RouteRecordingRow>[] = useMemo(() => [
|
||||||
|
{
|
||||||
|
key: 'routeId',
|
||||||
|
header: 'Route',
|
||||||
|
render: (_v, row) => <MonoText size="xs">{row.routeId}</MonoText>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'recording',
|
||||||
|
header: 'Recording',
|
||||||
|
width: '100px',
|
||||||
|
render: (_v, row) => (
|
||||||
|
<Toggle
|
||||||
|
checked={row.recording}
|
||||||
|
onChange={() => {
|
||||||
|
if (editing) updateRouteRecording(row.routeId, !row.recording);
|
||||||
|
}}
|
||||||
|
disabled={!editing}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
], [editing, routeRecordingDraft]);
|
||||||
|
|
||||||
|
// ── Render ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return <div className={styles.loading}><Spinner size="lg" /></div>;
|
return <div className={styles.loading}><Spinner size="lg" /></div>;
|
||||||
}
|
}
|
||||||
@@ -196,90 +321,116 @@ export default function AppConfigDetailPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* ── Settings ──────────────────────────────────────────────────── */}
|
||||||
<div className={styles.section}>
|
<div className={styles.section}>
|
||||||
<SectionHeader>Logging</SectionHeader>
|
<SectionHeader>Settings</SectionHeader>
|
||||||
<div className={styles.field}>
|
<div className={styles.settingsGrid}>
|
||||||
<label className={styles.label}>Log Forwarding Level</label>
|
<div className={styles.field}>
|
||||||
{editing ? (
|
<label className={styles.label}>Log Forwarding Level</label>
|
||||||
<select className={styles.select} value={String(form.logForwardingLevel)}
|
{editing ? (
|
||||||
onChange={(e) => updateField('logForwardingLevel', e.target.value)}>
|
<select className={styles.select} value={String(form.logForwardingLevel)}
|
||||||
<option value="ERROR">ERROR</option>
|
onChange={(e) => updateField('logForwardingLevel', e.target.value)}>
|
||||||
<option value="WARN">WARN</option>
|
<option value="ERROR">ERROR</option>
|
||||||
<option value="INFO">INFO</option>
|
<option value="WARN">WARN</option>
|
||||||
<option value="DEBUG">DEBUG</option>
|
<option value="INFO">INFO</option>
|
||||||
</select>
|
<option value="DEBUG">DEBUG</option>
|
||||||
) : (
|
</select>
|
||||||
<Badge label={String(form.logForwardingLevel)} color={logLevelColor(form.logForwardingLevel as string)} variant="filled" />
|
) : (
|
||||||
)}
|
<Badge label={String(form.logForwardingLevel)} color={logLevelColor(form.logForwardingLevel as string)} variant="filled" />
|
||||||
<span className={styles.hint}>Minimum log level forwarded from agents to the server</span>
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div className={styles.field}>
|
||||||
|
<label className={styles.label}>Engine Level</label>
|
||||||
<div className={styles.section}>
|
{editing ? (
|
||||||
<SectionHeader>Observability</SectionHeader>
|
<select className={styles.select} value={String(form.engineLevel)}
|
||||||
<div className={styles.field}>
|
onChange={(e) => updateField('engineLevel', e.target.value)}>
|
||||||
<label className={styles.label}>Engine Level</label>
|
<option value="NONE">None</option>
|
||||||
{editing ? (
|
<option value="MINIMAL">Minimal</option>
|
||||||
<select className={styles.select} value={String(form.engineLevel)}
|
<option value="REGULAR">Regular</option>
|
||||||
onChange={(e) => updateField('engineLevel', e.target.value)}>
|
<option value="COMPLETE">Complete</option>
|
||||||
<option value="NONE">None — agent dormant</option>
|
</select>
|
||||||
<option value="MINIMAL">Minimal — route timing only</option>
|
) : (
|
||||||
<option value="REGULAR">Regular — routes with snapshots</option>
|
<Badge label={String(form.engineLevel)} color={engineLevelColor(form.engineLevel as string)} variant="filled" />
|
||||||
<option value="COMPLETE">Complete — full processor tracing</option>
|
)}
|
||||||
</select>
|
</div>
|
||||||
) : (
|
<div className={styles.field}>
|
||||||
<Badge label={String(form.engineLevel)} color={engineLevelColor(form.engineLevel as string)} variant="filled" />
|
<label className={styles.label}>Payload Capture</label>
|
||||||
)}
|
{editing ? (
|
||||||
</div>
|
<select className={styles.select} value={String(form.payloadCaptureMode)}
|
||||||
<div className={styles.field}>
|
onChange={(e) => updateField('payloadCaptureMode', e.target.value)}>
|
||||||
<label className={styles.label}>Payload Capture Mode</label>
|
<option value="NONE">None</option>
|
||||||
{editing ? (
|
<option value="INPUT">Input</option>
|
||||||
<select className={styles.select} value={String(form.payloadCaptureMode)}
|
<option value="OUTPUT">Output</option>
|
||||||
onChange={(e) => updateField('payloadCaptureMode', e.target.value)}>
|
<option value="BOTH">Both</option>
|
||||||
<option value="NONE">None</option>
|
</select>
|
||||||
<option value="INPUT">Input only</option>
|
) : (
|
||||||
<option value="OUTPUT">Output only</option>
|
<Badge label={String(form.payloadCaptureMode)} color={payloadColor(form.payloadCaptureMode as string)} variant="filled" />
|
||||||
<option value="BOTH">Both input and output</option>
|
)}
|
||||||
</select>
|
</div>
|
||||||
) : (
|
<div className={styles.field}>
|
||||||
<Badge label={String(form.payloadCaptureMode)} color={payloadColor(form.payloadCaptureMode as string)} variant="filled" />
|
<label className={styles.label}>Metrics</label>
|
||||||
)}
|
{editing ? (
|
||||||
</div>
|
<label className={styles.toggleRow}>
|
||||||
<div className={styles.field}>
|
<input type="checkbox" checked={Boolean(form.metricsEnabled)}
|
||||||
<label className={styles.label}>Metrics</label>
|
onChange={(e) => updateField('metricsEnabled', e.target.checked)} />
|
||||||
{editing ? (
|
<span>{form.metricsEnabled ? 'Enabled' : 'Disabled'}</span>
|
||||||
<label className={styles.toggleRow}>
|
</label>
|
||||||
<input type="checkbox" checked={Boolean(form.metricsEnabled)}
|
) : (
|
||||||
onChange={(e) => updateField('metricsEnabled', e.target.checked)} />
|
<Badge label={form.metricsEnabled ? 'On' : 'Off'} color={form.metricsEnabled ? 'success' : 'error'} variant="filled" />
|
||||||
<span>{form.metricsEnabled ? 'Enabled' : 'Disabled'}</span>
|
)}
|
||||||
</label>
|
</div>
|
||||||
) : (
|
<div className={styles.field}>
|
||||||
<Badge label={form.metricsEnabled ? 'On' : 'Off'} color={form.metricsEnabled ? 'success' : 'error'} variant="filled" />
|
<label className={styles.label}>Sampling Rate</label>
|
||||||
)}
|
{editing ? (
|
||||||
</div>
|
|
||||||
<div className={styles.field}>
|
|
||||||
<label className={styles.label}>Sampling Rate</label>
|
|
||||||
{editing ? (
|
|
||||||
<>
|
|
||||||
<input type="number" className={styles.select} min={0} max={1} step={0.01}
|
<input type="number" className={styles.select} min={0} max={1} step={0.01}
|
||||||
value={form.samplingRate ?? 1.0}
|
value={form.samplingRate ?? 1.0}
|
||||||
onChange={(e) => updateField('samplingRate', parseFloat(e.target.value) || 0)} />
|
onChange={(e) => updateField('samplingRate', parseFloat(e.target.value) || 0)} />
|
||||||
<span className={styles.hint}>0.0 = sample nothing, 1.0 = capture all executions</span>
|
) : (
|
||||||
</>
|
<MonoText size="xs">{form.samplingRate}</MonoText>
|
||||||
) : (
|
)}
|
||||||
<MonoText size="xs">{form.samplingRate}</MonoText>
|
</div>
|
||||||
)}
|
<div className={styles.field}>
|
||||||
|
<label className={styles.label}>Compress Success</label>
|
||||||
|
{editing ? (
|
||||||
|
<label className={styles.toggleRow}>
|
||||||
|
<input type="checkbox" checked={Boolean(form.compressSuccess)}
|
||||||
|
onChange={(e) => updateField('compressSuccess', e.target.checked)} />
|
||||||
|
<span>{form.compressSuccess ? 'On' : 'Off'}</span>
|
||||||
|
</label>
|
||||||
|
) : (
|
||||||
|
<Badge label={form.compressSuccess ? 'On' : 'Off'} color={form.compressSuccess ? 'success' : 'error'} variant="filled" />
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* ── Traces & Taps ─────────────────────────────────────────────── */}
|
||||||
<div className={styles.section}>
|
<div className={styles.section}>
|
||||||
<SectionHeader>Traced Processors ({tracedRows.length})</SectionHeader>
|
<SectionHeader>Traces & Taps</SectionHeader>
|
||||||
{tracedRows.length > 0 ? (
|
<span className={styles.sectionSummary}>
|
||||||
<DataTable<TracedRow> columns={tracedColumns} data={tracedRows} pageSize={20} />
|
{tracedCount} traced · {tapCount} taps · manage taps on route pages
|
||||||
|
</span>
|
||||||
|
{tracedTapRows.length > 0 ? (
|
||||||
|
<DataTable<TracedTapRow> columns={tracedTapColumns} data={tracedTapRows} pageSize={20} />
|
||||||
) : (
|
) : (
|
||||||
<span className={styles.hint}>
|
<span className={styles.hint}>
|
||||||
No processors are individually traced.
|
No processors are individually traced and no taps are defined.
|
||||||
{!editing && ' Enable tracing per-processor on the exchange detail page.'}
|
{!editing && ' Enable tracing per-processor on the exchange detail page, or add taps on route pages.'}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* ── Route Recording ───────────────────────────────────────────── */}
|
||||||
|
<div className={styles.section}>
|
||||||
|
<SectionHeader>Route Recording</SectionHeader>
|
||||||
|
<span className={styles.sectionSummary}>
|
||||||
|
{recordingCount} of {routeRecordingRows.length} routes recording
|
||||||
|
</span>
|
||||||
|
{routeRecordingRows.length > 0 ? (
|
||||||
|
<DataTable<RouteRecordingRow> columns={routeRecordingColumns} data={routeRecordingRows} pageSize={20} />
|
||||||
|
) : (
|
||||||
|
<span className={styles.hint}>
|
||||||
|
No routes found for this application. Routes appear once agents report data.
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user