Bug: CollectionCreate form does not display error message when collection creation fails
メンテナーはふだん 3 日以内に返信
@pranjal270 がすでに取り組んでいます。
2026年3月10日 から。
評価
この issue はまだ評価されていません。
説明
p5.js version
No response
What is your operating system?
Windows
Web browser and version
chrome://145.0.7632.117
Actual Behavior
In the collection creation form, the error handling logic for creating a new sketch collection is incomplete. The local state creationError is defined but never updated when the createCollection action fails.
When collection creation fails (e.g., due to a network error or backend validation failure), no error message is shown to the user because creationError remains undefined. The createCollection action dispatches an ERROR action on failure, but the component neither listens to this state nor catches the error.
Expected Behavior
The component should display an appropriate error message when collection creation fails.
This can be achieved either by:
-
reading the error state from Redux, or
-
modifying the action to return a rejected Promise so the component can catch it and set its local
creationErrorstate totrue.
Steps to reproduce
###Steps:
- Navigate to the Collection Creation page.
- Intercept the network request to the /collections endpoint and force it to fail (for example, return a 500 error).
- Attempt to create a collection.
- Observe that no error message is displayed despite the failure.
Snippet:
// TODO: error is never set!
// eslint-disable-next-line no-unused-vars
const [creationError, setCreationError] = useState();
- 主要言語
- JavaScript
- スター
- 1.7k
- フォーク
- 1.7k
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
processing/p5.js-web-editor のほかの issue
-
Awaiting Maintainer Approval Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
processing/p5.js-web-editor#4348 ·
メンテナーはふだん 3 日以内に返信
-
Fix: example.js stores defaultHTML function reference instead of calling it, causing examples to display raw JavaScript source in preview対応中かも @syedbarkath980 が 4 日前に担当しました。 オープンAwaiting Maintainer Approval Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
processing/p5.js-web-editor#4344 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
signup form gets stuck when signup request fails due to network error対応中かも @PS01K が 33 日前に担当しました。 オープンAwaiting Maintainer Approval Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
processing/p5.js-web-editor#4285 · コメント 3 件 ·
メンテナーはふだん 3 日以内に返信
-
saveProject throws an error when a network request fails対応中かも @dyk1454683243-sudo が 5 日前に担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
processing/p5.js-web-editor#4276 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Awaiting Maintainer Approval Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
processing/p5.js-web-editor#4270 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
processing/p5.js-web-editor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
naver/egjs-flicking#971 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
RADAR-base/radar-self-enrolment-ui#118 ·
メンテナーはふだん 1 日以内に返信