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

Add visual indicator when displaying a cached balance. #5854

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Nov 29, 2018

this branches off of #5843

This adds an asterix next to balances to indicate to the user that the displayed balances may be cached.

balance-outdated


screenshot from 2018-11-29 12-35-21

@cjeria Does this look okay to you? The scenario is that the user is being shown a balance that might be slightly outdated (i.e. a small number of blocks old). The user would be shown this balance because of connectivity issues. We are deciding here that it is better to show an outdated balance than nothing or a zero balance.

Also ccing @bahnju as I imagine we will also start consulting you on this sort of stuff soon

@danjm danjm requested review from alextsg and whymarrh November 29, 2018 16:08
@danjm danjm force-pushed the cache-network-balances-local-storage branch from cf2db0f to f4cc41c Compare November 29, 2018 19:55
@danjm danjm force-pushed the ui-indication-cached-balance branch from 8044c97 to db93403 Compare November 29, 2018 20:01
@danjm danjm force-pushed the cache-network-balances-local-storage branch from f4cc41c to cd179e8 Compare November 30, 2018 02:33
@danjm danjm force-pushed the ui-indication-cached-balance branch from db93403 to 64770c0 Compare November 30, 2018 02:34
@danjm danjm force-pushed the cache-network-balances-local-storage branch from cd179e8 to efa04db Compare November 30, 2018 03:16
@danjm danjm force-pushed the ui-indication-cached-balance branch 3 times, most recently from 3c3546a to e8878fe Compare December 5, 2018 05:33
@danjm danjm requested a review from frankiebee as a code owner December 5, 2018 05:33
@danjm danjm force-pushed the ui-indication-cached-balance branch from e8878fe to 36d9f74 Compare December 13, 2018 17:31
@danjm danjm changed the base branch from cache-network-balances-local-storage to develop January 7, 2019 16:58
@bdresser
Copy link
Contributor

@danjm would this also show the asterisk if the user has switched from a different network and the fresh balance hasn't loaded yet? #6019 is a report of someone on a throttled connection who sees the balance of the network they just left (presumably while their new balance loads)

@danjm danjm force-pushed the ui-indication-cached-balance branch 2 times, most recently from 946d942 to 896fa3d Compare January 23, 2019 17:25
@metamaskbot
Copy link
Collaborator

Builds ready [896fa3d]: mascara, chrome, firefox, edge, opera

@@ -75,3 +75,5 @@
@import './gas-customization/index';

@import './gas-customization/gas-price-button-group/index';

// @import './send/account-list-item/account-list-item/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@danjm danjm force-pushed the ui-indication-cached-balance branch from 896fa3d to 45a1680 Compare January 30, 2019 05:41
@metamaskbot
Copy link
Collaborator

Builds ready [45a1680]: mascara, chrome, firefox, edge, opera

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.

4 participants