Skip to content

fix: resolve empty canvas when drilling into called workflow from popup#4

Merged
tehw0lf merged 3 commits into
mainfrom
fix/orchestrator-popup-drill-down
Apr 9, 2026
Merged

fix: resolve empty canvas when drilling into called workflow from popup#4
tehw0lf merged 3 commits into
mainfrom
fix/orchestrator-popup-drill-down

Conversation

@tehw0lf
Copy link
Copy Markdown
Owner

@tehw0lf tehw0lf commented Apr 9, 2026

Summary

  • Clicking a uses: link in the orchestrator popup's "Calls" section navigated to an empty canvas
  • Root cause: drillInto() assumed item is always OrchestratorData at orchestrator level, but the popup passes a minimal JobData — causing orchestratorId to be set to the job key (e.g. lint), which resolveActiveWorkflow couldn't match
  • Fix: check 'calledWorkflows' in item to distinguish OrchestratorData from JobData; for JobData with uses:, resolve the target workflow directly via resolveUsesRef and navigate to its job level

Test plan

  • Load workflows with an orchestrator that calls reusable workflows
  • Click an orchestrator card to open its popup
  • Click a link in the "Calls" section — should navigate to the jobs of the called workflow
  • Verify breadcrumb is updated correctly
  • Normal orchestrator card drill-down (chevron button) still works

tehw0lf added 3 commits April 9, 2026 22:02
Clicking a 'uses:' link in the orchestrator popup passed a JobData to
drillInto(), which assumed OrchestratorData at orchestrator level and
set orchestratorId to the job key — causing resolveActiveWorkflow to
return null and rendering an empty canvas.

Fix: distinguish OrchestratorData ('calledWorkflows' in item) from
JobData ('uses' in item) in the orchestrator branch, and resolve the
reusable workflow directly via resolveUsesRef.
* Bumped version from `1.0.2` to `1.0.3` in both `package.json` and `package-lock.json`.
* Updated dependencies to their latest versions for improved stability and performance.
@tehw0lf tehw0lf merged commit 71d2892 into main Apr 9, 2026
17 checks passed
@tehw0lf tehw0lf deleted the fix/orchestrator-popup-drill-down branch April 9, 2026 20: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.

1 participant