-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Bug: Disabled File Options Lack Guidance When Sketch is Unsaved #4004
Copy link
Copy link
Open
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
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.
Expected Behavior
- Disabled options should display a tooltip on hover
- Tooltip should clearly state the reason, e.g., “Save the sketch before duplicating or adding to a collection”
Steps to reproduce
- Open the p5.js Web Editor
- Create a new sketch
- Do not save the sketch
- Open the File dropdown
- Observe that options like “Duplicate” and “Add to Collection” are disabled
I wish to work on fixing on this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors