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

Blur LedWidgets when stale #1849

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Blur LedWidgets when stale #1849

merged 2 commits into from
Jan 22, 2025

Conversation

jmthomas
Copy link
Member

closes #1683

@jmthomas
Copy link
Member Author

Screenshot 2025-01-18 at 4 33 43 PM

Copy link

codecov bot commented Jan 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.57%. Comparing base (a7788b7) to head (3557bae).
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1849   +/-   ##
=======================================
  Coverage   79.57%   79.57%           
=======================================
  Files         519      519           
  Lines       40774    40774           
=======================================
+ Hits        32444    32446    +2     
+ Misses       8330     8328    -2     
Flag Coverage Δ
python 84.31% <ø> (+0.01%) ⬆️
ruby-api 48.72% <ø> (ø)
ruby-backend 82.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ryan-pratt ryan-pratt left a comment

Choose a reason for hiding this comment

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

This isn't a UX concept that I'm familiar with, but the blur helps wrt differentiating these with colorblindness

@@ -105,4 +112,8 @@ export default {
background-color: var(--color);
border-radius: 50%;
}
.stale {
filter: blur(2px);
opacity: 0.6;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably add brightness(0.6) to the filter instead of opacity - that will just darken it instead of giving it a dark blue tint, which should help with colorblindness and future-proofing for if/when we add themes

@ryanmelt ryanmelt self-requested a review January 20, 2025 18:24
Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

Should also turn LED Purple, not just blur

@jmthomas
Copy link
Member Author

Should also turn LED Purple, not just blur

The customer explicitly didn't want that: 'We would like to request an enhancement to this widget such that the color of the LED light is turned slightly gray when the telemetry point it is tied to goes stale. This way, the viewer can still observe the current state, as well as whether or not that state is stale.'

Instead of slightly grey I blur the widget and change the brightness to indicate stale. This still allows them to know what the last value was. Plus purple could be a valid color.

@ryanmelt
Copy link
Member

I don't like the inconsistency with everything else.

@jmthomas
Copy link
Member Author

Screenshot 2025-01-20 at 11 33 33 AM

Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

Please add note to LedWidget that LimitsColor widget should be used to show limits state.

@jmthomas jmthomas merged commit d1f6581 into main Jan 22, 2025
27 of 28 checks passed
@jmthomas jmthomas deleted the led-blur branch January 22, 2025 03:54
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.

Update LED Widget for Telemetry Monitoring to Indicate Stale State
3 participants