Feature: Implement Undo/Redo history support in VisualCircuit editor

Open
#423 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript, react
Domain
frontend

Research direction

Start by locating the VisualCircuit editor entry point and the code that handles block and connection changes. Determine how editor state is represented before deciding how undo, redo, and keyboard shortcuts should integrate. Done means the listed circuit actions can be undone and redone through the specified shortcuts.

Written by the indexing model from the issue text.

Description

Description

While experimenting with VisualCircuit locally, I noticed that the editor
does not provide undo or redo functionality when modifying circuits.

Currently actions such as:

  • adding blocks
  • deleting blocks
  • moving blocks
  • creating connections
  • deleting connections

cannot be reverted easily.

For a visual programming environment this can lead to accidental loss of
work and makes experimentation harder.

Proposed Improvement

Introduce an undo/redo system for the VisualCircuit editor.

Suggested behavior:

  • Ctrl + Z → Undo last action
  • Ctrl + Shift + Z → Redo action
  • maintain a history stack of editor state changes
  • support undo/redo for block creation, deletion, movement and connections

Benefits

  • safer editing experience
  • improved productivity when building circuits
  • aligns VisualCircuit with modern node-based editors such as Node-RED
    and other visual programming environments

Screenshot

Image
Dominant language
JavaScript
Stars
21
Forks
33
Avg merge
4h 37m
Merged PRs (30d)
7

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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 JdeRobot/VisualCircuit

All issues in JdeRobot/VisualCircuit

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.