fix: update frontend field names for identity rename (applicationId, instanceId)
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Failing after 32s
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped

The backend identity rename (applicationName → applicationId,
agentId → instanceId) was not reflected in the frontend. This caused
drilldown to fail (detail.applicationName was undefined, disabling
the diagram fetch) and various display issues.

Updated schema.d.ts, ExchangeHeader, ExecutionDiagram, Dashboard,
AgentHealth, AgentInstance, LayoutShell, LogTab, InfoTab, DetailPanel,
ExchangesPage, and tracing-store.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-01 18:22:16 +02:00
parent aa2d203f4e
commit 4cdbcdaeea
12 changed files with 47 additions and 47 deletions

View File

@@ -29,7 +29,7 @@ export default function ExchangesPage() {
// Derive selection from URL params when no state-based selection exists (Cmd-K, bookmarks)
const urlDerivedExchange: SelectedExchange | null =
(scopedExchangeId && scopedAppId && scopedRouteId)
? { executionId: scopedExchangeId, applicationName: scopedAppId, routeId: scopedRouteId }
? { executionId: scopedExchangeId, applicationId: scopedAppId, routeId: scopedRouteId }
: null;
const [selected, setSelectedInternal] = useState<SelectedExchange | null>(stateSelected ?? urlDerivedExchange);
@@ -42,7 +42,7 @@ export default function ExchangesPage() {
} else if (scopedExchangeId && scopedAppId && scopedRouteId) {
setSelectedInternal({
executionId: scopedExchangeId,
applicationName: scopedAppId,
applicationId: scopedAppId,
routeId: scopedRouteId,
});
} else {
@@ -62,8 +62,8 @@ export default function ExchangesPage() {
}, [navigate, location.pathname, location.search, location.state]);
// Select a correlated exchange: push another history entry
const handleCorrelatedSelect = useCallback((executionId: string, applicationName: string, routeId: string) => {
const exchange = { executionId, applicationName, routeId };
const handleCorrelatedSelect = useCallback((executionId: string, applicationId: string, routeId: string) => {
const exchange = { executionId, applicationId, routeId };
setSelectedInternal(exchange);
navigate(location.pathname + location.search, {
state: { ...location.state, selectedExchange: exchange },
@@ -106,7 +106,7 @@ export default function ExchangesPage() {
}
// Determine what the right panel shows
const panelAppId = selected?.applicationName ?? scopedAppId!;
const panelAppId = selected?.applicationId ?? scopedAppId!;
const panelRouteId = selected?.routeId ?? scopedRouteId!;
const panelExchangeId = selected?.executionId ?? undefined;
@@ -135,7 +135,7 @@ interface DiagramPanelProps {
appId: string;
routeId: string;
exchangeId?: string;
onCorrelatedSelect: (executionId: string, applicationName: string, routeId: string) => void;
onCorrelatedSelect: (executionId: string, applicationId: string, routeId: string) => void;
onClearSelection: () => void;
}