Bug: CollectionCreate form does not display error message when collection creation fails
Los mantenedores suelen responder en 3 días
@pranjal270 ya está trabajando en esto.
Desde el 10/3/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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();
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.7k
- Forks
- 1.7k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de processing/p5.js-web-editor
-
Renaming a folder doubles the folder name in file paths (console errors show /lib/lib/helper.js)AbiertoAwaiting Maintainer Approval Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
processing/p5.js-web-editor#4365 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
p5 logo is broken on verification emailsPosiblemente ocupada @sourabh65mehta la tomó hace 11 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
processing/p5.js-web-editor#4364 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
`PATCH /editor/project/visibility` returns 200 with `null` and doesn't update when `projectId` is a slugQuizá libre de nuevo @Prbhtsgh la tomó hace 18 días y no hay ningún pull request abierto. AbiertoAwaiting Maintainer Approval Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
processing/p5.js-web-editor#4348 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
-
Fix: example.js stores defaultHTML function reference instead of calling it, causing examples to display raw JavaScript source in previewQuizá libre de nuevo @syedbarkath980 la tomó hace 22 días y no hay ningún pull request abierto. AbiertoAwaiting Maintainer Approval Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
processing/p5.js-web-editor#4344 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
signup form gets stuck when signup request fails due to network errorPosiblemente ocupada @PS01K la tomó hace 52 días. AbiertoAwaiting Maintainer Approval Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
processing/p5.js-web-editor#4285 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de processing/p5.js-web-editor
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
yunaremaia/jsonl-cli#1 · 1 comentario ·
-
agent-ready agent:in-progress backend/api
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apex-dev-tools/apex-log-parser#199 ·
Los mantenedores suelen responder en 1 día