5
11
Fork
You've already forked tomato
1

Better errors for the frontend #82

Merged
edwardloveall merged 4 commits from el-fe-errors into main 2026年01月29日 15:23:02 +01:00

Re-do of #80

We get reports of volunteers trying to create absences or task logs but
they get an error. But the error is generic and not helpful.

This tries to add better error messages to both absence and task log
creation so that when we get error screens we can look into the problem
with more info.

Re-do of #80 We get reports of volunteers trying to create absences or task logs but they get an error. But the error is generic and not helpful. This tries to add better error messages to both absence and task log creation so that when we get error screens we can look into the problem with more info.
Instead of displaying a basic "There was an error" message, this interprets the
errors retured from the server and displays them to the user. It handles 400
(bas occurrence id), 404 (occurrence not found), and 422 (error messages while
saving the log).
It also re-enables the "Save log" button after 1 second so users can try again.
edwardloveall force-pushed el-fe-errors from 18346eaf64
Some checks failed
Setup Successful
Jest Successful
Static Analysis Failed
RSpec Failed
to 2f7c8ad806
All checks were successful
Setup Successful
Jest Successful
Static Analysis Successful
RSpec Successful
2026年01月28日 22:56:41 +01:00
Compare
Author
Owner
Copy link

CI failures are flaky, but everything passes locally.

CI failures are flaky, but everything passes locally.
edwardloveall deleted branch el-fe-errors 2026年01月29日 15:23:03 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!82
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-fe-errors"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?