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

feat(app): update led lights button in robot settings #12670

Merged
merged 1 commit into from
May 10, 2023

Conversation

koji
Copy link
Contributor

@koji koji commented May 10, 2023

Overview

update led lights button in robot settings, add tests, and remove dummy components

Screen.Recording.2023-05-09.at.11.04.12.PM.mov

Now RobotSettingsDashboard is beefy. I have a branch that refactored the component. The PR will be opened right after this PR

Test Plan

Changelog

  • update RobotSettingsDashboard and add test
  • remove Led Lights dummy component

Review requests

Risk assessment

low

update led lights button in robot settings, add tests, and remove dummy components
@koji koji marked this pull request as ready for review May 10, 2023 03:19
@koji koji requested a review from a team as a code owner May 10, 2023 03:19
@koji koji removed the request for review from a team May 10, 2023 03:19
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #12670 (7d0d33a) into edge (657926b) will increase coverage by 0.00%.
The diff coverage is 63.63%.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #12670   +/-   ##
=======================================
  Coverage   73.53%   73.54%           
=======================================
  Files        2276     2275    -1     
  Lines       62636    62638    +2     
  Branches     6694     6699    +5     
=======================================
+ Hits        46060    46065    +5     
+ Misses      14976    14972    -4     
- Partials     1600     1601    +1     
Flag Coverage Δ
app 72.08% <63.63%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
...c/pages/OnDeviceDisplay/RobotSettingsDashboard.tsx 81.39% <63.63%> (+2.44%) ⬆️

}: RobotSettingButtonProps): JSX.Element => {
const { t } = useTranslation(['app_settings', 'shared'])
const dispatch = useDispatch<Dispatch>()

const handleClick = (): void => {
if (currentOption != null && setCurrentOption != null) {
setCurrentOption(currentOption)
} else {
} else if (Boolean(enabledDevTools)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you coercing these to Booleans if they're already typed that way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to remove warnings

@koji koji merged commit 761e30d into edge May 10, 2023
@koji koji deleted the feat_lights-in-robotSettings branch June 17, 2023 10:21
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.

2 participants