added progress percentage for events fetching #6

Closed
Freezy wants to merge 3 commits from refs/pull/6/head into staging

Explanation

If the last cached event is many blocks behind (over 100k) the use should know the current fetching status/progress.
To solve this, a progress indicator has been added to the loader. It shows the progress percentage based on the number of blocks needed to reach the current block. Without this indicator, the user could think that the website is stuck while instead he only has to wait.

Screenshots/Screencaps

image

## Explanation <!-- Thanks for the pull request. Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? Below is a template to give you some ideas. Feel free to use your own words! Currently, ... This is a problem because ... In order to solve this problem, this pull request ... --> If the last cached event is many blocks behind (over 100k) the use should know the current fetching status/progress. To solve this, a progress indicator has been added to the loader. It shows the progress percentage based on the number of blocks needed to reach the current block. Without this indicator, the user could think that the website is stuck while instead he only has to wait. ## Screenshots/Screencaps ![image](/attachments/19fceb21-f066-4c2b-b9d5-48c8347ce651)
gozzy (Migrated from development.tornadocash.community) approved these changes 2022-10-13 01:35:03 +03:00
@ -6,1 +2,3 @@
type: null
return {
message: '',
progress: '',

Let's keep state variable's types consistent, uninitialised loading state could be better detected using a default value of -1.

Let's keep state variable's types consistent, uninitialised loading state could be better detected using a default value of `-1`.

So the PR should not address updating the cache, which seems to be have mistakenly done. I advise removing these associated files as they are not relative to the feature request. Also, see comment about maintaining types on state variables.

I see no conflicts otherwise.

So the PR should not address updating the cache, which seems to be have mistakenly done. I advise removing these associated files as they are not relative to the feature request. Also, see comment about maintaining types on state variables. I see no conflicts otherwise.

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tornadocash/classic-ui#6
No description provided.