feat: resolved URI display and drill-down for TO/TO_DYNAMIC nodes
- Show resolved endpoint URI as teal italic line on diagram nodes when execution overlay is active - Enable drill-down for TO and TO_DYNAMIC nodes (not just DIRECT/SEDA) - Use runtime resolvedEndpointUri from execution overlay for drill-down when static endpointUri doesn't match - Increase node height from 50px to 56px to accommodate the third line Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,7 @@ export function DiagramNode({
|
||||
// Extract label parts: type name and detail
|
||||
const typeName = node.type?.replace(/^EIP_/, '').replace(/_/g, ' ') ?? '';
|
||||
const detail = node.label || '';
|
||||
const resolvedUri = executionState?.resolvedEndpointUri;
|
||||
|
||||
// Overlay state derivation
|
||||
const isCompleted = executionState?.status === 'COMPLETED';
|
||||
@@ -125,15 +126,33 @@ export function DiagramNode({
|
||||
)}
|
||||
</g>
|
||||
|
||||
{/* Type name + detail (clipped to available width) */}
|
||||
{/* Type name + detail + resolved URI (clipped to available width) */}
|
||||
<g clipPath={`url(#clip-${node.id})`}>
|
||||
<text x={TEXT_LEFT} y={h / 2 - 1} fill={labelColor} fontSize={11} fontWeight={600}>
|
||||
{typeName}
|
||||
</text>
|
||||
{detail && detail !== typeName && (
|
||||
<text x={TEXT_LEFT} y={h / 2 + 12} fill={isFailed ? '#C0392B' : '#5C5347'} fontSize={10}>
|
||||
{detail}
|
||||
</text>
|
||||
{resolvedUri ? (
|
||||
<>
|
||||
<text x={TEXT_LEFT} y={TOP_BAR_HEIGHT + 12} fill={labelColor} fontSize={11} fontWeight={600}>
|
||||
{typeName}
|
||||
</text>
|
||||
{detail && detail !== typeName && (
|
||||
<text x={TEXT_LEFT} y={TOP_BAR_HEIGHT + 24} fill={isFailed ? '#C0392B' : '#5C5347'} fontSize={10}>
|
||||
{detail}
|
||||
</text>
|
||||
)}
|
||||
<text x={TEXT_LEFT} y={h - 5} fill="#1A7F8E" fontSize={9} fontStyle="italic">
|
||||
→ {resolvedUri.split('?')[0]}
|
||||
</text>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<text x={TEXT_LEFT} y={h / 2 - 1} fill={labelColor} fontSize={11} fontWeight={600}>
|
||||
{typeName}
|
||||
</text>
|
||||
{detail && detail !== typeName && (
|
||||
<text x={TEXT_LEFT} y={h / 2 + 12} fill={isFailed ? '#C0392B' : '#5C5347'} fontSize={10}>
|
||||
{detail}
|
||||
</text>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</g>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user