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

[bug] newly added system can be stuck in endless loader #234

Closed
alexzaitsev opened this issue Oct 29, 2024 · 10 comments
Closed

[bug] newly added system can be stuck in endless loader #234

alexzaitsev opened this issue Oct 29, 2024 · 10 comments
Labels
discussion enhancement New feature or request

Comments

@alexzaitsev
Copy link

alexzaitsev commented Oct 29, 2024

I think this occurs only on the newly added system with insufficient recorded statistics.

Steps:

  1. go to Settings and set up bigger default time period.
  2. go to Main
  3. go to the system
  4. observe endless spinners

Video shows the steps + how changing time period fixes the loaders.

Video:
https://github.com/user-attachments/assets/2f3beb0c-e6f7-435b-8e6c-e5fcdcd2492f

@henrygd I can try to fix it if you're open for contributions. In this case I will appreciate any notes than can help me to do it.

@ArsFy
Copy link
Contributor

ArsFy commented Oct 29, 2024

#223

Initial Chart Loading
To me it seems logical to show a loading indicator if there are no records yet. They will populate eventually if you leave the page open for long enough.
What would you suggest instead? Maybe a message that says no records have been populated yet?

My suggestion is add a loading text, but I haven't implemented this part yet. However, I should be submitting a pull request to fix this issue soon.

@ArsFy
Copy link
Contributor

ArsFy commented Oct 29, 2024

image

@alexzaitsev
Copy link
Author

@ArsFy the design you're proposing is still confusing from my point of view.

Loading spinner means something is loading. If we have a statement "No records have been populated" it means the loading is done so the loading spinner should be hidden.

The test itself can be better too, for example, "There are not enough records to display the chart". Anyway, having text is better than endless loading spinner.

@ArsFy
Copy link
Contributor

ArsFy commented Oct 29, 2024

@alexzaitsev You are right, but it does have some loading.

This is a difficult design cuz the data is actually real-time. If you open the window long enough, it will be successfully loaded into the data.

Maybe you have a better way to fix it? pls tell me, thank you.

@henrygd
Copy link
Owner

henrygd commented Oct 29, 2024

Maybe we have two conditions:

  1. Data has been requested but not arrived - show spinner with no message
  2. Data has arrived as empty array, meaning no records have been created for this time period yet - show message with no spinner

@henrygd henrygd added enhancement New feature or request discussion labels Oct 29, 2024
@alexzaitsev
Copy link
Author

agree with @henrygd, this is what I meant. Right now 2 conditions are mixed into a single one. they need to be separated

@ArsFy
Copy link
Contributor

ArsFy commented Oct 30, 2024

@alexzaitsev @henrygd I understand now, so I think I need to add a status to show whether the request was successful.

  • Request successful but empty: display text
  • Request pending: display only the loader

And, I think maybe changing it to Waiting for enough records to display the chart would be more appropriate?

@henrygd
Copy link
Owner

henrygd commented Oct 30, 2024

@ArsFy Exactly right.

I think that phrasing is good.

I can probably take care of this tomorrow if you don't want to deal with it.

@ArsFy
Copy link
Contributor

ArsFy commented Oct 30, 2024

@henrygd I finish the job (except for the Crowdin link), it is currently noon in SGT, but you can check my merge request tomorrow

@henrygd
Copy link
Owner

henrygd commented Oct 30, 2024

Thanks @ArsFy! I'll close the issue since it will be fixed in the next release.

@henrygd henrygd closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants