OpenFn / OpenFn/lightning

Workflow Diagram: animate when undoing a node reposition

Open
#3,380 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature enhancement
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Users can manually drag nodes across the chart in manual layout mode.

But when hitting Undo, the node will snap back to its old position without animation.

It would be a way nicer user experience, and improve readability of the chart, if we could animate the reposition.

We may also have to adjust the view to make sure the change is visible.

There is a lot of logic to nicely animate this stuff, but it's all tied up in the layout code. We'd need to work out how to trigger animation without running a layout when the model/positions change. Which isn't going to be easy.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating the workflow diagram's layout animation logic and the undo path that updates model positions. Determine how to trigger reposition animation without running a layout, and check whether the view must adjust to keep the change visible. Done means undoing a node move animates the node back and keeps the reposition visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.