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

fx-improving user friendly toast message #635

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

Bananayosostene
Copy link
Contributor

@Bananayosostene Bananayosostene commented Nov 20, 2024

PR Description
Implemented a centralized error handling mechanism for GraphQL errors in the Apollo Client configuration, improving user experience and error messaging consistency.
Description of Tasks

Create a centralized errorHandler.ts with predefined error messages
Modify Apollo Client error link to use centralized error handling
Integrate error handling with toast notifications
Maintain existing logout logic for specific error messages

How Has This Been Tested?

Manual testing of different error scenarios:

Authentication errors
Network errors
Input validation errors

Verified toast error messages match predefined messages
Confirmed redirect and logout functionality for specific error messages

Number of Commits
2 commits (can be squashed if needed)
Screenshots

##Before
image

##After fix

image

N/A
Checklist

Code follows project style guidelines
Self-review completed
Critical code areas commented
No generated warnings
Test coverage verification needed
No known vulnerabilities
Base branch conflict check required

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
metron-devpulse ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 1:36pm

@ceelogre ceelogre merged commit ecde374 into develop Nov 21, 2024
6 checks passed
@ceelogre ceelogre deleted the fx-user-friendly-error-messages branch November 21, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants