UI Enhancement: Separate "Remove Page" and "Rename Page" in page context menu to prevent accidental deletion

Open Beginner friendly
#5,856 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Reproduce by right-clicking a page tab and note the menu item order. Locate where that page-tab context menu and its item click handlers are assembled in the drawio editor UI, then add a separator or move Remove Page below routine actions; if adding confirmation, wire it before the delete handler. Done when the destructive item is visibly separated and cannot be confused with rename.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
In the page tab context menu, "Remove Page" and "Rename Page" are positioned directly below to each other. Because both options share the same prefix ("Re-"), are nearly identical in length, and trigger immediately without a confirmation dialog, it is very easy to accidentally delete a page while trying to rename it.

Describe the solution you'd like
To reduce accidental page deletions, please consider one or more of the following UI adjustments to the page context menu:

  • Add a horizontal separator line between routine actions (like "Rename Page" and "Duplicate") and destructive actions ("Remove Page").
  • Move "Remove Page" to the very bottom of the context menu.
  • Add a brief confirmation prompt (or highlight the text in red) when "Remove Page" is clicked.

Describe alternatives you've considered
Double-clicking the page tab works as a safe workaround for renaming, and Ctrl+Z / Cmd+Z recovers deleted pages, but separating the options in the right-click menu would prevent unnecessary user panic and align with standard UI safety practices.

For context:

image
Dominant language
JavaScript
Stars
9.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

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 jgraph/drawio

All issues in jgraph/drawio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.