Skip to content

fix(graph): execution-flow picker on the module overview; hierarchical layout guardrails#805

Merged
RaghavChamadiya merged 4 commits into
mainfrom
fix/graph-flows-availability
Jul 12, 2026
Merged

fix(graph): execution-flow picker on the module overview; hierarchical layout guardrails#805
RaghavChamadiya merged 4 commits into
mainfrom
fix/graph-flows-availability

Conversation

@swati510

Copy link
Copy Markdown
Collaborator

Three graph fixes:

  1. Execution flows work from the module overview. The shell already jumps to the file-level graph and highlights the trace when a flow is picked (enterFullViewFromModule), but the web wrapper only fetched flows for file-level scopes — on the module overview the panel had no data and the toolbar button silently did nothing. The fetch gate now includes the module view. New shell test covers the picker-then-jump path.

  2. Hierarchical layout refuses above the ELK cap at the click. Past 500 nodes ELK never runs, but the toggle still activated: the force layout stopped and the button sat active doing nothing. The mode switch is now guarded — force keeps running and the existing skip notice shows synchronously. Test renders a 501-node graph and asserts the refusal.

  3. Hierarchical layers stay readable when most modules are isolated. Modules without dependency edges each became their own ELK component, packed side by side into one wide band that drowned out the layering. The connected subgraph gets the layered layout; isolated modules are shelved in a grid below it.

swati510 added 3 commits July 12, 2026 11:41
…r works there

The shell already supports picking a flow from the module overview —
enterFullViewFromModule switches to the file-level graph and highlights
the trace. But the wrapper only fetched flows for file-level scopes, so
on the module overview the panel had no data and the toolbar button
silently did nothing. Widen the fetch gate to include the module view;
add a shell test covering the picker-then-jump path.
Past 500 nodes ELK never runs, but the toggle still activated: the force
layout stopped and the button sat active doing nothing. Guard the mode
switch itself — keep force running, surface the existing skip notice
synchronously — instead of relying on the canvas hook to fire it after
the mode has already changed.
…solated

Modules with no dependency edges each became their own ELK component,
packed side by side into one huge band that drowned out the layering.
Lay out only the connected subgraph and shelve isolated modules in a
grid below it.
@repowise-bot

repowise-bot Bot commented Jul 12, 2026

Copy link
Copy Markdown

✅ Health: 7.6 (unchanged)

📋 At a glance
5 hotspots touched · 1 new finding introduced · 5 co-change pairs left out · 4 files with recent fix history. Scoped to packages.

⚠️ Change risk: moderate (riskier than 46% of this repo's commits · raw 8.8/10)
This change's risk is driven by:

  • more lines added than baseline
  • more scattered than baseline

🩹 Review priority (files here with the most recent bug-fix history — defects cluster, so review these first)

🔎 More signals (2)

🔥 Hotspots touched (5)

  • .../graph/graph-flow.tsx — 11 commits/90d, 4 dependents · primary owner: Swati Ahuja (68%)
  • .../sigma/use-elk-sigma-layout.ts — 2 commits/90d, 1 dependents · primary owner: Swati Ahuja (100%)
  • .../graph/elk-layout.ts — 3 commits/90d, 7 dependents · primary owner: Raghav Chamadiya (65%)
2 more
  • .../graph/graph-flow.test.tsx — 4 commits/90d, 0 dependents · primary owner: Swati Ahuja (88%)
  • .../graph/graph-flow.tsx — 8 commits/90d, 3 dependents · primary owner: Raghav Chamadiya (54%)

🔗 Hidden coupling (2 files)

  • .../graph/graph-flow.tsx co-changes with these files (not in this PR):
    • .../graph/graph-toolbar.tsx (5× — 🟢 routine)
    • .../sigma/graphology-adapter.ts (3× — 🟢 routine)
    • .../sigma/types.ts (3× — 🟢 routine)
    • .../sigma/use-sigma.ts (3× — 🟢 routine)
  • .../graph/graph-flow.tsx co-changes with .../decisions/decision-detail.tsx (3× — 🟢 routine) — not in this PR.

📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-12 10:33 UTC
Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot

@RaghavChamadiya RaghavChamadiya merged commit fb969b3 into main Jul 12, 2026
4 of 7 checks passed
@RaghavChamadiya RaghavChamadiya deleted the fix/graph-flows-availability branch July 12, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants