Bug: Disabled File Options Lack Guidance When Sketch is Unsaved

クローズ
#4,004 コメント 6 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@saurabh24thakur がすでに取り組んでいます。

2026年4月10日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
JavaScript
スター
1.7k
フォーク
1.7k
平均マージ
7日 1時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

processing/p5.js-web-editor のほかの issue

processing/p5.js-web-editor の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。