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

UX/ Reduce RPC error banners #1210

Draft
wants to merge 2 commits into
base: v2
Choose a base branch
from
Draft

Conversation

PetromirDev
Copy link
Member

@PetromirDev PetromirDev commented Jan 10, 2025

The problem

Account states are updated every 5 minutes automatically and on manual refresh on the dashboard. When the user is simply browsing on his laptop, the account state update fails in the background and the user decides to open his wallet to check how his portfolio is going he will see an RPC error banner, even if there was a successful update 5 minutes ago.

The solution

Save an update timestamp and compare it before displaying an RPC error banner. If the last update is from > 8 minutes ago, an error banner is displayed. Also, the banner is displayed immediately in case of a manual refresh on the dashboard as a bad RPC means that there will be portfolio and defi positions banners, which must be replaced with a single RPC error banner for better UX.

Closes https://github.com/AmbireTech/ambire-app/issues/3105

@@ -189,6 +193,7 @@ export class SignAccountOpController extends EventEmitter {
super()

this.#accounts = accounts
this.#providers = providers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PetromirDev maybe you had an idea here and forgot to remove the providers?

@PetromirDev PetromirDev marked this pull request as draft January 15, 2025 14:43
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.

2 participants