Skip to content

[FEATURE] Implement undo/redo functionality #78

Description

@rohitkumarnaidu

Feature Description

There is no undo/redo functionality. Accidental deletions require manual rebuilding.

Proposed Solution

  1. History stack storing snapshots of blocks state array
  2. Ctrl+Z (undo) and Ctrl+Shift+Z (redo) keyboard shortcuts
  3. Undo/redo buttons in toolbar
  4. Limit to last 50 states to prevent memory issues

Technical Approach

Create a useHistory custom hook wrapping useState with past and future stacks.

Why This Matters

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions