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

PE-7636: feat(login) enhance authentication error handling #1974

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

thiagocarvalhodev
Copy link
Collaborator

@thiagocarvalhodev thiagocarvalhodev commented Feb 12, 2025

This PR improves the login UX by showing appropriate messages for different login errors. Currently, the app always shows the 'wrong password' message for any error. Now, it will only show the wrong password message if indeed the password is wrong. For gateway related issues we're adding a new modal, same for unknown issues.

  • Added GraphQL exception handling in authentication methods to throw custom exceptions.
  • Renamed AuthenticationFailedException to WrongPasswordException for clarity.
  • Introduced new states in the login bloc for loading and success scenarios when a user already exists.
  • Updated the login process to handle Ethereum and Arweave wallets separately with improved error handling.
  • Enhanced the UI to show progress dialogs during login and added a button to copy logs for error reporting.
  • Updated tests to reflect changes in exception handling and new state management.
  • Minor formatting and code cleanup across various files.

--- Releases ---
Android release: https://appdistribution.firebase.google.com/testerapps/1:305132849030:android:6cf0cd5ec064fad3ffce07/releases/026ju0acc3kv0

…vements

- Added GraphQL exception handling in authentication methods to throw custom exceptions.
- Renamed `AuthenticationFailedException` to `WrongPasswordException` for clarity.
- Introduced new states in the login bloc for loading and success scenarios when a user already exists.
- Updated the login process to handle Ethereum and Arweave wallets separately with improved error handling.
- Enhanced the UI to show progress dialogs during login and added a button to copy logs for error reporting.
- Updated tests to reflect changes in exception handling and new state management.
- Minor formatting and code cleanup across various files.
Copy link

⚠️ Your PR title does not match the required pattern. Please update the title in the format PE-{number}: {description}.

1 similar comment
Copy link

⚠️ Your PR title does not match the required pattern. Please update the title in the format PE-{number}: {description}.

@thiagocarvalhodev thiagocarvalhodev changed the title feat(login): feat: enhance authentication error handling PE-7636: feat(login) feat: enhance authentication error handling Feb 12, 2025
@thiagocarvalhodev thiagocarvalhodev changed the title PE-7636: feat(login) feat: enhance authentication error handling PE-7636: feat(login) enhance authentication error handling Feb 12, 2025
Copy link

github-actions bot commented Feb 12, 2025

Visit the preview URL for this PR (updated for commit c7b43a3):

https://ardrive-web--pr1974-pe-7636-improve-erro-4q6ugoo6.web.app

(expires Fri, 21 Feb 2025 14:16:29 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a224ebaee2f0939e7665e7630e7d3d6cd7d0f8b0

@thiagocarvalhodev thiagocarvalhodev self-assigned this Feb 13, 2025
- extend error handling for arconnect and metamask
- update wander assets
- extend error handling for arconnect and metamask
- update wander assets
- extend error handling for arconnect and metamask
- update wander assets
…6-improve-error-feedback-on-login-page-for-graph-ql-or-network-issues]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant