Skip to content

Discard all: clear the canvas, keep the diagram (FL-96) - #100

Merged
raj-khan merged 1 commit into
mainfrom
fl-96-discard-all
Sep 30, 2026
Merged

raj-khan merged 1 commit into
mainfrom
fl-96-discard-all

Conversation

@raj-khan

Copy link
Copy Markdown
Owner

FL-96, from feedback: a Discard all option.

  • Discard all, in the menu (shown in red, disabled when there is nothing) and the command palette, removes every shape, stroke and connection in one change, as Excalidraw's Reset the canvas does.
  • The title, diagram notes, style and the open file are kept, so it is a clean sheet of the same diagram; New diagram is still the way to start a different one.
  • No confirmation, as with New diagram: the toast says how many shapes went, and Undo brings them all back.

Tests: 341 unit, 159 e2e, all passing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raj-khan
raj-khan merged commit 3d182a1 into main Sep 30, 2026
3 checks passed
@raj-khan
raj-khan deleted the fl-96-discard-all branch September 30, 2026 15:03
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