Bug: CollectionCreate form does not display error message when collection creation fails
Maintainer thường phản hồi trong vòng 3 ngày
@pranjal270 đang làm issue này rồi.
Từ ngày 10/3/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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();
- Ngôn ngữ chính
- JavaScript
- Star
- 1.7k
- Fork
- 1.7k
- Merge trung bình
- 6 ngày
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của processing/p5.js-web-editor
-
Unable to rename sound filesĐang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
processing/p5.js-web-editor#4392 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Renaming a folder doubles the folder name in file paths (console errors show /lib/lib/helper.js)Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
processing/p5.js-web-editor#4365 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
p5 logo is broken on verification emailsCó thể đã có người làm @sourabh65mehta đã nhận 14 ngày trước. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
processing/p5.js-web-editor#4364 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
`PATCH /editor/project/visibility` returns 200 with `null` and doesn't update when `projectId` is a slugCó thể làm lại được @Prbhtsgh đã nhận 22 ngày trước và không có pull request nào đang mở. Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
processing/p5.js-web-editor#4348 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Fix: example.js stores defaultHTML function reference instead of calling it, causing examples to display raw JavaScript source in previewCó thể làm lại được @syedbarkath980 đã nhận 26 ngày trước và không có pull request nào đang mở. Đang mởAwaiting Maintainer Approval Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
processing/p5.js-web-editor#4344 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của processing/p5.js-web-editor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
microsoft/monaco-editor#5563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Package downloads never retry: getUrlWithResuming's retry catch cannot see a rejected requestĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
account: profile bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 5 ngày
-
ai-driven-fuzzing bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linagora/cozy-client#1777 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày