Bug: Disabled File Options Lack Guidance When Sketch is Unsaved

Đã đóng
#4,004 6 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@saurabh24thakur đang làm issue này rồi.

Từ ngày 10/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Bug
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.

Ngôn ngữ chính
JavaScript
Star
1.7k
Fork
1.7k
Merge trung bình
7 ngày 1 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của processing/p5.js-web-editor

Tất cả issue của processing/p5.js-web-editor

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.