Add Dagre re-flow action

Closed
#396 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Steve-Mcl is already working on this.

Since Oct 19, 2026.

  • #433 by @andypalmi — merged

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
backend, frontend

Research direction

Start by locating the assistant action integration and the dropdown menu entry, then review the existing Flow Building MCP implementation referenced in the issue. The work is done when Dagre reflow can be triggered both through the assistant and directly from the menu, using the available layout context such as grid size and node widths.

Written by the indexing model from the issue text.

Description

task
Description

A good addition to the assistant would be to add the Dagre algorithm to do reflow tasks instead of relying on the AI.

I have already tested this particular algorithm and it works well.

Integrating it into assistant as an action AND as a dropdown clickable menu item means the user can execute it with or without AI.

Demo

Image

For reference, this was achieved in the Flow Building MCP tools however it is lacking context (like grid size and node widths etc). by doing this in the assistant it can be used with and without AI and will have additional context available for better reflow.

Epic/Story

No response

Dominant language
JavaScript
Stars
6
Forks
5
Avg merge
1d 5m
Merged PRs (30d)
29

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FlowFuse/nr-assistant

All issues in FlowFuse/nr-assistant

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.