processing / processing/p5.js-web-editor

Bug: Disabled File Options Lack Guidance When Sketch is Unsaved

Open
#4,004 6 comments 0 reactions 1 assignee View on GitHub

@saurabh24thakur is already working on this.

Since Apr 10, 2026.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

p5.js version

No response

What is your operating system?

Linux

Web browser and version

Chrome: 146.0.7680.80

Actual Behavior

When a sketch is not saved, “Duplicate” and “Add to Collection” are disabled in the File dropdown. However, there is no indication or explanation provided to the user about why these options are unavailable.

This leads to confusion, especially for new users, as the UI does not communicate that saving the sketch is a prerequisite for enabling these actions.

Image
Expected Behavior
  1. Disabled options should display a tooltip on hover
  2. Tooltip should clearly state the reason, e.g., “Save the sketch before duplicating or adding to a collection”
Steps to reproduce
  1. Open the p5.js Web Editor
  2. Create a new sketch
  3. Do not save the sketch
  4. Open the File dropdown
  5. Observe that options like “Duplicate” and “Add to Collection” are disabled

I wish to work on fixing on this issue.

Contributor guide

Open the 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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.