Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Improve Alert Behavior on Sketch Collection Deletion

オープン
#3,947 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

2026年2月26日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

コレクションビューの「…」メニューと削除アクションから始め、ネイティブブラウザー確認または window.confirm() が呼び出されている箇所をたどります。プロジェクトに既にあるモーダル/ダイアログコンポーネントを読み、そのアクセシビリティの挙動を確認します。削除が、安全なデフォルトフォーカス、キーボード操作、フィードバック、重複送信に対する保護を備えた、アクセシブルでコンテキストに応じた確認モーダルを使用するようになれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Feature Request Help Wanted
Increasing Access

Increasing Access

Using a native browser alert for collection deletion creates an inconsistent and sometimes less accessible experience for keyboard and screen-reader users. Replacing it with an in-app confirmation modal allows proper focus management, clearer context about what will be deleted, and more consistent messaging across the editor.

Feature request details

Increasing Access

Currently, when deleting a sketch collection, the editor shows a native browser confirmation alert (e.g. window.confirm()).

This creates multiple issues:

  • The alert UI is inconsistent with the editor’s design system.
  • The message provides limited context (what exactly is being deleted, and what the impact is).
  • The interaction can be less accessible than an in-app dialog (focus management, keyboard flow, screen reader context).
  • The text may be harder to localize/standardize compared to app UI components.

Current Behaviour

  • Navigate to a collection / sketches list.
  • Trigger delete from the “…” menu.
  • A native browser alert appears with Cancel / OK.

Image

Image

(attach screenshot)

Feature enhancement details

  1. Replace native browser alert with an in-app confirmation modal
    • Use the project’s modal/dialog component styling.
  2. Clear, contextual confirmation copy
    • Example: “You are about to delete the collection ‘’. This action cannot be undone.”
    • If applicable, include counts (e.g. number of sketches affected).
  3. Accessibility
    • Proper dialog semantics (role="dialog" / aria-modal="true")
    • Focus moves into the dialog and returns to the trigger on close
    • Keyboard support (Tab/Shift+Tab, Esc to close)
    • Default focus on the safest action (Cancel)
  4. Confirmation & feedback
    • Show success/error feedback (toast or inline message) after completion.
    • Disable buttons while delete is in progress to prevent double-submit.

Expected Behaviour

Deleting a sketch collection should use an accessible in-app confirmation modal with clear context and consistent UX (instead of a native browser alert).

Steps to reproduce

  1. Open the editor and go to My sketches / collections view.
  2. Open the “…” menu for a collection.
  3. Click Delete.
  4. Observe the native browser alert prompt.
主要言語
JavaScript
スター
1.7k
フォーク
1.7k
平均マージ
3日 18時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  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 を短くまとめたダイジェスト。