fix: update frontend field names for identity rename (applicationId, instanceId)
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user