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

Era Time-left pie-chart / timer #33

Closed
rossbulat opened this issue May 10, 2022 · 0 comments
Closed

Era Time-left pie-chart / timer #33

rossbulat opened this issue May 10, 2022 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@rossbulat
Copy link
Collaborator

We would like to let the user know how much time is left in the current era.

What would be nice is if we had a circular countdown styled the same way as the pie charts for stat boxes:

Screenshot 2022-05-10 at 11 35 58

And on hover, show the remaining time left of the era:

Screenshot 2022-05-10 at 11 36 02

One possible solution is to use this same chart js pie chart, and wrap it in a useEffect / setInterval loop that updates time left based on blocks.

We would put this timer alongside the Active Era stat on the Stake and Validator pages. It currently has no accompanying chart:

Screenshot 2022-05-10 at 11 38 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants