From a69db06599c2a19392e3ed907c681c0e14268e1c Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Tue, 21 Apr 2020 15:52:03 -0700 Subject: [PATCH 1/2] Modify C for color sensor --- src/view/components/toolbar/clue/ClueSensorProperties.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/components/toolbar/clue/ClueSensorProperties.tsx b/src/view/components/toolbar/clue/ClueSensorProperties.tsx index e1f124557..ccb8d8e1b 100644 --- a/src/view/components/toolbar/clue/ClueSensorProperties.tsx +++ b/src/view/components/toolbar/clue/ClueSensorProperties.tsx @@ -33,7 +33,7 @@ const CLUE_SLIDER_B: ISliderProps = { const CLUE_SLIDER_C: ISliderProps = { axisLabel: "C", maxLabel: "Max", - maxValue: 255, + maxValue: 65535, minLabel: "Min", minValue: 0, type: SENSOR_LIST.LIGHT_C, From cd340ea0f3d2a3f937d9c642b030701a76a8f2f7 Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Tue, 21 Apr 2020 16:06:59 -0700 Subject: [PATCH 2/2] Update tooltips --- .../clue/__snapshots__/Clue.spec.tsx.snap | 21 ------------- .../cpx/__snapshots__/Cpx.spec.tsx.snap | 30 ------------------- .../__snapshots__/Microbit.spec.tsx.snap | 21 ------------- .../__snapshots__/Toolbar.spec.tsx.snap | 3 -- .../device/__snapshots__/Device.spec.tsx.snap | 21 ------------- src/view/svgs/toolbar_svg.tsx | 14 --------- src/view/translations/en.json | 2 ++ 7 files changed, 2 insertions(+), 110 deletions(-) diff --git a/src/view/components/clue/__snapshots__/Clue.spec.tsx.snap b/src/view/components/clue/__snapshots__/Clue.spec.tsx.snap index 40de21d57..dce8f43ff 100644 --- a/src/view/components/clue/__snapshots__/Clue.spec.tsx.snap +++ b/src/view/components/clue/__snapshots__/Clue.spec.tsx.snap @@ -1248,9 +1248,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Push Button - Created with Sketch. @@ -1315,9 +1312,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - neon_pixel - Created with Sketch. @@ -1418,9 +1412,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Temperature Sensor - - - Light sensor - - - GPIO - Created with Sketch. @@ -2109,9 +2094,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Sound Sensor - Created with Sketch. @@ -2185,9 +2167,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Speaker - Created with Sketch. diff --git a/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap b/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap index 3a41b60f6..960f9b501 100644 --- a/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap +++ b/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap @@ -3968,9 +3968,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Switch - Created with Sketch. @@ -4035,9 +4032,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Push Button - Created with Sketch. @@ -4102,9 +4096,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Red LED - Created with Sketch. @@ -4167,9 +4158,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Sound Sensor - Created with Sketch. @@ -4243,9 +4231,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Temperature Sensor - - - Light sensor - - - neon_pixel - Created with Sketch. @@ -4480,9 +4459,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Speaker - Created with Sketch. @@ -4602,9 +4578,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - IR - Created with Sketch. @@ -4662,9 +4635,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - GPIO - Created with Sketch. diff --git a/src/view/components/microbit/__snapshots__/Microbit.spec.tsx.snap b/src/view/components/microbit/__snapshots__/Microbit.spec.tsx.snap index 1ab115851..9e167bbca 100644 --- a/src/view/components/microbit/__snapshots__/Microbit.spec.tsx.snap +++ b/src/view/components/microbit/__snapshots__/Microbit.spec.tsx.snap @@ -2669,9 +2669,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Push Button - Created with Sketch. @@ -2736,9 +2733,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Red LED - Created with Sketch. @@ -2801,9 +2795,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Temperature Sensor - - - Light sensor - - - GPIO - Created with Sketch. @@ -3164,9 +3149,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Speaker - Created with Sketch. @@ -3224,9 +3206,6 @@ Array [ xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Bluetooth and Radio - - - Light sensor - - - Push Button - Created with Sketch. @@ -2738,9 +2735,6 @@ exports[`Device component should render correctly 1`] = ` xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Red LED - Created with Sketch. @@ -2803,9 +2797,6 @@ exports[`Device component should render correctly 1`] = ` xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Temperature Sensor - - - Light sensor - - - GPIO - Created with Sketch. @@ -3166,9 +3151,6 @@ exports[`Device component should render correctly 1`] = ` xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Speaker - Created with Sketch. @@ -3226,9 +3208,6 @@ exports[`Device component should render correctly 1`] = ` xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > - - Bluetooth and Radio - - GPIO Created with Sketch. - IR Created with Sketch. - {TOOLBAR_ICON_LABEL.LIGHT} - - neon_pixel Created with Sketch. - {TOOLBAR_ICON_LABEL.PUSH_BUTTON} Created with Sketch. - {TOOLBAR_ICON_LABEL.RED_LED} Created with Sketch. - {TOOLBAR_ICON_LABEL.SWITCH} Created with Sketch. - {TOOLBAR_ICON_LABEL.SOUND} Created with Sketch. - {TOOLBAR_ICON_LABEL.SPEAKER} Created with Sketch. - {TOOLBAR_ICON_LABEL.TEMPERATURE} - - {TOOLBAR_ICON_LABEL.WIRELESS} -