Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

210 error handling for all requests #218

Merged
merged 7 commits into from
Dec 18, 2023

Conversation

jandsonrj
Copy link
Member

Implemented improved error handling across multiple project files. Error handling messages using Snackbar and Alert have been added at specific points:

  • ProductFileTextField.js, the handleRemoveFile function now displays a Snackbar in case of an error when removing a file, providing an explanatory message.

  • TokenDialog.js, the generateApiToken function shows a Snackbar in case of an error during token generation, communicating the reason for the error.

  • upload.js, the handleSubmit function now displays a Snackbar if a product fails to upload, providing an explanatory message.

  • user_products.js and official_products.js, error messages have been added for problems loading or processing products.

  • new.js, the handleDiscard function displays a Snackbar in case of an error, communicating the reason for the failure when discarding changes.

  • [pid].js (EditProduct), an error warning message was added in case a product failed to edit.

  • ProductDetail.js, it was previously covered in [BUG] PZ server instability  #208.

each edited file received a commit, with its specific message.

@jandsonrj jandsonrj added the good first issue Good for newcomers label Dec 15, 2023
@jandsonrj jandsonrj linked an issue Dec 15, 2023 that may be closed by this pull request
@gschwend gschwend requested review from crisingulani and removed request for glaubervila December 18, 2023 16:30
@crisingulani crisingulani merged commit ed6fb58 into main Dec 18, 2023
3 checks passed
@jandsonrj jandsonrj deleted the 210-error-handling-for-all-requests branch December 18, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement error handling for all requests
3 participants