Skip to content

Bug: Disabled File Options Lack Guidance When Sketch is Unsaved #4004

@yugalkaushik

Description

@yugalkaushik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions