-
Notifications
You must be signed in to change notification settings - Fork 178
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
feat(app): Add toggle to turn on/off robot rail lights #1710
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #1710 +/- ##
==========================================
+ Coverage 34.85% 34.97% +0.12%
==========================================
Files 340 340
Lines 5563 5589 +26
==========================================
+ Hits 1939 1955 +16
- Misses 3624 3634 +10
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 cool stuff
works on sunset, not moon-moon or VS, and the error is invisible to the user (toggle works as if it was OK), but I think that's expected behavior.
Unexpected, but dug into it and the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍕 💡
import {LabeledToggle, LabeledButton} from '../controls' | ||
|
||
import type {State, Dispatch} from '../../types' | ||
import type {Robot} from '../../robot' | ||
|
||
type OP = Robot | ||
|
||
type SP = {} | ||
type SP = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could make these type defs single lines
overview
This PR wires the lights toggle UI from #1708 to the
/robot/lights
endpoint from #1709 so that the user can turn their robot's lights on and off.Closes #1684
changelog
review requests
Try it out with a robot! Does not work with Virtual Smoothie. Sunset is up to date with the necessary endpoints