Gladys icon indicating copy to clipboard operation
Gladys copied to clipboard

[FRONT] - On chart dashboard box, loading spinner when new value arrives is displayed too often

Open VonOx opened this issue 2 years ago • 7 comments

image

https://community.gladysassistant.com/t/graph-bug-refresh/7108

VonOx avatar Mar 29 '22 08:03 VonOx

What do you think about something like

progress_bar

instead of the big loading circle?


CSS:

.progress-bar {
  height: 4px;
  background-color: rgba(5, 114, 206, 0.2);
  width: 100%;
  overflow: hidden;
}

.progress-bar-value {
  width: 100%;
  height: 100%;
  background-color: rgb(5, 114, 206);
  animation: indeterminateAnimation 1s infinite linear;
  transform-origin: 0% 50%;
}

@keyframes indeterminateAnimation {
  0% {
    transform:  translateX(0) scaleX(0);
  }
  40% {
    transform:  translateX(0) scaleX(0.4);
  }
  100% {
    transform:  translateX(100%) scaleX(0.5);
  }
}

HTML added in box card element:

<div class="progress-bar">
    <div class="progress-bar-value"></div>
</div>

atrovato avatar May 03 '22 19:05 atrovato

@VonOx

atrovato avatar May 27 '22 06:05 atrovato

Yes it's better, less annoying and we keep informing that something happening.

VonOx avatar May 27 '22 07:05 VonOx

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 26 '22 07:07 stale[bot]

@atrovato tested your PR ( chromium 103.0.5060.134 )

image

Loader is fine except its persistant, even when no new value there is like a shadow at box bottom. A bit weird

image

VonOx avatar Aug 01 '22 09:08 VonOx

The blue background is problem. Thank you for your feedbacks.

atrovato avatar Aug 03 '22 19:08 atrovato

I pushed the transparent background, tell me if it's better. Thank you.

atrovato avatar Aug 03 '22 19:08 atrovato