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

Token balances/allowances error alerts #788

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

evgenyboxer
Copy link
Contributor

@evgenyboxer evgenyboxer commented Sep 6, 2021

Description

Adds error alerts for token balances/allowances - these are considered pretty major (can't really trade) which is why they are "app level" alerts. (obviously these will only be shown when a wallet is connected)

Here's how it looks:

Screen Shot 2021-09-06 at 12 39 23 pm

Screen Shot 2021-09-06 at 12 39 55 pm

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

How should this be tested?

Please provide instructions so we can test. Please also list any relevant details for your test configuration.

  • Easiest is to test locally by throwing some error inside the balances/allowances queries.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code where relevant, particularly in hard-to-understand areas
  • My changes generate no new console warnings
  • The base of this PR is master if hotfix, develop if not

@linear
Copy link

linear bot commented Sep 6, 2021

@vercel
Copy link

vercel bot commented Sep 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

kovan-app – ./

🔍 Inspect: https://vercel.com/balancer/kovan-app/3t5XsSPMFTinwhhuBUUpqixkoZ5s
✅ Preview: Canceled

app – ./

🔍 Inspect: https://vercel.com/balancer/app/6VVegtNngRJj456jx8BQWjnBDXVK
✅ Preview: Canceled

staging-app – ./

🔍 Inspect: https://vercel.com/balancer/staging-app/ECZsTm1PLD5n6FaXqhoj9JgLMAyH
✅ Preview: https://staging-app-git-evgeny-ui-732-token-balancesall-1c01c0-balancer.vercel.app

staging-kovan-app – ./

🔍 Inspect: https://vercel.com/balancer/staging-kovan-app/Fr25gUNbJTzA5qUhBPKAZV1oP6iZ
✅ Preview: https://staging-kovan-app-git-evgeny-ui-732-token-balan-62793e-balancer.vercel.app

gnosis – ./

🔍 Inspect: https://vercel.com/balancer/gnosis/E2zw1uVQWPDBbbNJfrMLpaJxKwTy
✅ Preview: https://gnosis-git-evgeny-ui-732-token-balancesallowanc-2f953c-balancer.vercel.app

polygon – ./

🔍 Inspect: https://vercel.com/balancer/polygon/EmeFWjc4Xsmh18jPdaHmoRLhYK3y
✅ Preview: Canceled

beta-polygon – ./

🔍 Inspect: https://vercel.com/balancer/beta-polygon/GP31p46AyQ13RuLMQ5WCVdphwa6i
✅ Preview: https://beta-polygon-git-evgeny-ui-732-token-balancesal-bf03b0-balancer.vercel.app

beta-arbitrum – ./

🔍 Inspect: https://vercel.com/balancer/beta-arbitrum/2eUqgEmRv4ZLj5k7PD9Y1HbFHJW9
✅ Preview: https://beta-arbitrum-git-evgeny-ui-732-token-balancesa-1eca79-balancer.vercel.app

arbitrum – ./

🔍 Inspect: https://vercel.com/balancer/arbitrum/6556EDaiWyBQAf7UX9wgrXhSHf8P
✅ Preview: Canceled

type: AlertType.ERROR,
persistent: true,
action: refetchPrices.value,
actionLabel: t('alerts.retry-label'),
priority: AlertPriority.MEDIUM
});
} else {
removeAlert('price-error');
removeAlert('price-fetch-error');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

minor refactor to have the error names consistent

"price-provider-down": "Our pricing provider, Coingecko is currently down.",
"price-fetch-error": "Our pricing provider, Coingecko is currently down.",
"balances-fetch-error": "Failed to fetch token balances.",
"allowances-fetch-error": "Failed to fetch token allowances.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these might change

@evgenyboxer evgenyboxer changed the title Token balances/allowances alerts Token balances/allowances error alerts Sep 6, 2021
@garethfuller garethfuller merged commit ee958d0 into develop Sep 7, 2021
@garethfuller garethfuller deleted the evgeny/ui-732-token-balancesallowances-alert branch September 7, 2021 12:54
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