fix(graph): always show edge filter/transform label

Drop the selected-only gate so the filter subject → transform destination
hint is visible on every edge, not just the focused one.
This commit is contained in:
EugeneTes
2026-08-27 19:52:29 +00:00
parent c5d596a2a7
commit e1bd1709d7

View File

@@ -5,18 +5,17 @@ type RouteEdgeData = { filterSubject?: string; transformDest?: string };
export default function RouteEdge(props: EdgeProps) {
const {
id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition,
selected, markerEnd, style, data,
markerEnd, style, data,
} = props;
const [edgePath, labelX, labelY] = getSmoothStepPath({
sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition,
});
const d = (data ?? {}) as RouteEdgeData;
const showLabel = Boolean(selected);
return (
<>
<BaseEdge id={id} path={edgePath} markerEnd={markerEnd} style={style} />
{showLabel && (d.filterSubject || d.transformDest) && (
{(d.filterSubject || d.transformDest) && (
<EdgeLabelRenderer>
<div
style={{