Fix topology filtering: use global context, right side drawer, edge filter

- Remove local filter bar (Search/Type/Health) — use global header
  context (Region/Env/Stage) as single source of filtering
- Pass global context selections to layout API — graph re-fetches and
  ElkSharp re-lays out only the filtered environments
- Fix backend: skip promotion edges where source or target environment
  is outside the filtered set (was causing 400 errors)
- Replace below-graph detail zone with 360px right side drawer that
  doesn't scroll away from the graph
- Stats badges (regions/environments/paths) moved to overlay on graph

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-03-28 22:49:24 +02:00
parent 24964c8e53
commit 4733285f03
2 changed files with 274 additions and 352 deletions

View File

@@ -107,14 +107,26 @@ public sealed class TopologyLayoutService
});
}
var envNodeIds = new HashSet<string>(
environments.Select(e => $"env-{e.EnvironmentId}"),
StringComparer.Ordinal);
foreach (var path in paths)
{
var sourceNodeId = $"env-{path.SourceEnvironmentId}";
var targetNodeId = $"env-{path.TargetEnvironmentId}";
if (!envNodeIds.Contains(sourceNodeId) || !envNodeIds.Contains(targetNodeId))
{
continue;
}
var gateLabel = BuildGateLabel(path, gatesByProfile);
elkEdges.Add(new ElkEdge
{
Id = $"path-{path.PathId}",
SourceNodeId = $"env-{path.SourceEnvironmentId}",
TargetNodeId = $"env-{path.TargetEnvironmentId}",
SourceNodeId = sourceNodeId,
TargetNodeId = targetNodeId,
Kind = "promotion",
Label = gateLabel,
});