@hedia/recommendation-screen 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,9 @@
28
28
  </select>
29
29
  </component>
30
30
  <component name="ChangeListManager">
31
- <list default="true" id="bceba75c-4c15-4bdc-9b41-023f63a30830" name="Default Changelist" comment="" />
31
+ <list default="true" id="bceba75c-4c15-4bdc-9b41-023f63a30830" name="Default Changelist" comment="">
32
+ <change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
33
+ </list>
32
34
  <option name="SHOW_DIALOG" value="false" />
33
35
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
34
36
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -190,112 +192,12 @@
190
192
  <workItem from="1602165438473" duration="1424000" />
191
193
  <workItem from="1602229083262" duration="2936000" />
192
194
  <workItem from="1602239231218" duration="802000" />
193
- <workItem from="1602487231033" duration="6016000" />
195
+ <workItem from="1602487231033" duration="7422000" />
194
196
  </task>
195
197
  <servers />
196
198
  </component>
197
199
  <component name="TypeScriptGeneratedFilesManager">
198
200
  <option name="version" value="3" />
199
- <option name="exactExcludedFiles">
200
- <list>
201
- <option value="$PROJECT_DIR$/src/__tests__/components/Remeasure.test.d.ts" />
202
- <option value="$PROJECT_DIR$/src/__tests__/components/TransferToLogbook.test.d.ts" />
203
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedCarbs.test.jsx" />
204
- <option value="$PROJECT_DIR$/src/__tests__/components/Emotion.test.d.ts" />
205
- <option value="$PROJECT_DIR$/src/__tests__/components/MoodIcon.test.d.ts" />
206
- <option value="$PROJECT_DIR$/src/__tests__/components/InvisibleNumberInput.test.d.ts" />
207
- <option value="$PROJECT_DIR$/src/__tests__/components/InfoBars.test.jsx" />
208
- <option value="$PROJECT_DIR$/src/__tests__/components/Remeasure.test.jsx" />
209
- <option value="$PROJECT_DIR$/src/__tests__/Translate.test.jsx" />
210
- <option value="$PROJECT_DIR$/src/__tests__/Utils.test.d.ts" />
211
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationUtils.test.d.ts" />
212
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationScreen.test.d.ts" />
213
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendationModal.test.d.ts" />
214
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedCarbs.test.d.ts" />
215
- <option value="$PROJECT_DIR$/src/__tests__/components/InfoBars.test.d.ts" />
216
- <option value="$PROJECT_DIR$/src/__tests__/components/MoodIcon.test.jsx" />
217
- <option value="$PROJECT_DIR$/src/__tests__/Utils.test.js" />
218
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationScreen.test.jsx" />
219
- <option value="$PROJECT_DIR$/src/__tests__/Validations.test.d.ts" />
220
- <option value="$PROJECT_DIR$/src/__tests__/Validations.test.js" />
221
- <option value="$PROJECT_DIR$/src/__tests__/utils.jsx" />
222
- <option value="$PROJECT_DIR$/src/__tests__/Translate.test.d.ts" />
223
- <option value="$PROJECT_DIR$/src/__tests__/utils.d.ts" />
224
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationUtils.test.js" />
225
- <option value="$PROJECT_DIR$/src/components/Remeasure.jsx" />
226
- <option value="$PROJECT_DIR$/src/components/LineSeparator.d.ts" />
227
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.jsx" />
228
- <option value="$PROJECT_DIR$/src/components/TwoOptionModal.jsx" />
229
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.jsx" />
230
- <option value="$PROJECT_DIR$/src/components/LimitationMessage.d.ts" />
231
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.jsx" />
232
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.d.ts" />
233
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.d.ts" />
234
- <option value="$PROJECT_DIR$/src/components/InfoBars.d.ts" />
235
- <option value="$PROJECT_DIR$/src/components/Header.d.ts" />
236
- <option value="$PROJECT_DIR$/src/components/Remeasure.d.ts" />
237
- <option value="$PROJECT_DIR$/src/components/LineSeparator.jsx" />
238
- <option value="$PROJECT_DIR$/src/components/LimitationMessage.jsx" />
239
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.d.ts" />
240
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.jsx" />
241
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.jsx" />
242
- <option value="$PROJECT_DIR$/src/components/Header.jsx" />
243
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.d.ts" />
244
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.jsx" />
245
- <option value="$PROJECT_DIR$/src/components/TwoOptionModal.d.ts" />
246
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.d.ts" />
247
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.d.ts" />
248
- <option value="$PROJECT_DIR$/src/components/InfoBars.jsx" />
249
- <option value="$PROJECT_DIR$/src/utils/Constants.js" />
250
- <option value="$PROJECT_DIR$/src/utils/Validations.d.ts" />
251
- <option value="$PROJECT_DIR$/src/utils/Utils.js" />
252
- <option value="$PROJECT_DIR$/src/utils/Validations.js" />
253
- <option value="$PROJECT_DIR$/src/types/types.js" />
254
- <option value="$PROJECT_DIR$/src/types/types.d.ts" />
255
- <option value="$PROJECT_DIR$/src/types/enum.js" />
256
- <option value="$PROJECT_DIR$/src/types/enum.d.ts" />
257
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.jsx" />
258
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.d.ts" />
259
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.js" />
260
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.jsx" />
261
- <option value="$PROJECT_DIR$/src/utils/Utils.d.ts" />
262
- <option value="$PROJECT_DIR$/src/utils/Constants.d.ts" />
263
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.d.ts" />
264
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.d.ts" />
265
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.jsx" />
266
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.jsx" />
267
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.jsx" />
268
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.jsx" />
269
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.d.ts" />
270
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.js" />
271
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.d.ts" />
272
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.d.ts" />
273
- <option value="$PROJECT_DIR$/index.d.ts" />
274
- <option value="$PROJECT_DIR$/index.js" />
275
- <option value="$PROJECT_DIR$/App.jsx" />
276
- <option value="$PROJECT_DIR$/App.d.ts" />
277
- <option value="$PROJECT_DIR$/src/components/activity/Activity.jsx" />
278
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.d.ts" />
279
- <option value="$PROJECT_DIR$/src/components/activity/Activity.d.ts" />
280
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.d.ts" />
281
- <option value="$PROJECT_DIR$/src/__tests__/components/Activity.test.jsx" />
282
- <option value="$PROJECT_DIR$/src/__tests__/components/InvisibleNumberInput.test.jsx" />
283
- <option value="$PROJECT_DIR$/src/__tests__/components/LimitationMessage.test.d.ts" />
284
- <option value="$PROJECT_DIR$/src/__tests__/components/TwoOptionModal.test.jsx" />
285
- <option value="$PROJECT_DIR$/src/RecommendationScreen.jsx" />
286
- <option value="$PROJECT_DIR$/src/RecommendationScreen.d.ts" />
287
- <option value="$PROJECT_DIR$/src/__tests__/components/TwoOptionModal.test.d.ts" />
288
- <option value="$PROJECT_DIR$/src/__tests__/components/LimitationMessage.test.jsx" />
289
- <option value="$PROJECT_DIR$/src/__tests__/components/Activity.test.d.ts" />
290
- <option value="$PROJECT_DIR$/src/__tests__/components/Header.test.jsx" />
291
- <option value="$PROJECT_DIR$/src/__tests__/components/Header.test.d.ts" />
292
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedInsulin.test.d.ts" />
293
- <option value="$PROJECT_DIR$/src/__tests__/components/Emotion.test.jsx" />
294
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendationModal.test.jsx" />
295
- <option value="$PROJECT_DIR$/src/__tests__/components/TransferToLogbook.test.jsx" />
296
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedInsulin.test.jsx" />
297
- </list>
298
- </option>
299
201
  </component>
300
202
  <component name="Vcs.Log.Tabs.Properties">
301
203
  <option name="TAB_STATES">
@@ -346,38 +248,38 @@
346
248
  <state x="1792" y="-66" width="3440" height="1159" key="DiffContextDialog/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1600171230341" />
347
249
  <state x="0" y="123" width="1792" height="897" key="DiffContextDialog/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600096736067" />
348
250
  <state x="1792" y="-314" width="1920" height="865" key="DiffContextDialog/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598603549140" />
349
- <state width="1357" height="316" key="GridCell.Tab.0.bottom" timestamp="1602506188647">
251
+ <state width="1357" height="316" key="GridCell.Tab.0.bottom" timestamp="1602685669570">
350
252
  <screen x="0" y="23" width="1792" height="1097" />
351
253
  </state>
352
254
  <state width="1750" height="261" key="GridCell.Tab.0.bottom/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051670" />
353
- <state width="1357" height="316" key="GridCell.Tab.0.bottom/0.23.1792.1097@0.23.1792.1097" timestamp="1602506188647" />
255
+ <state width="1357" height="316" key="GridCell.Tab.0.bottom/0.23.1792.1097@0.23.1792.1097" timestamp="1602685669570" />
354
256
  <state width="1750" height="383" key="GridCell.Tab.0.bottom/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008184" />
355
257
  <state width="1738" height="428" key="GridCell.Tab.0.bottom/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1602257501217" />
356
258
  <state width="1321" height="264" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600268308807" />
357
259
  <state width="1878" height="183" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599837918176" />
358
- <state width="1357" height="316" key="GridCell.Tab.0.center" timestamp="1602506188646">
260
+ <state width="1357" height="316" key="GridCell.Tab.0.center" timestamp="1602685669569">
359
261
  <screen x="0" y="23" width="1792" height="1097" />
360
262
  </state>
361
263
  <state width="1750" height="261" key="GridCell.Tab.0.center/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051669" />
362
- <state width="1357" height="316" key="GridCell.Tab.0.center/0.23.1792.1097@0.23.1792.1097" timestamp="1602506188646" />
264
+ <state width="1357" height="316" key="GridCell.Tab.0.center/0.23.1792.1097@0.23.1792.1097" timestamp="1602685669569" />
363
265
  <state width="1750" height="383" key="GridCell.Tab.0.center/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008183" />
364
266
  <state width="1738" height="428" key="GridCell.Tab.0.center/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1602257501216" />
365
267
  <state width="1321" height="264" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600268308807" />
366
268
  <state width="1878" height="183" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599837918175" />
367
- <state width="1357" height="316" key="GridCell.Tab.0.left" timestamp="1602506188645">
269
+ <state width="1357" height="316" key="GridCell.Tab.0.left" timestamp="1602685669568">
368
270
  <screen x="0" y="23" width="1792" height="1097" />
369
271
  </state>
370
272
  <state width="1750" height="261" key="GridCell.Tab.0.left/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051668" />
371
- <state width="1357" height="316" key="GridCell.Tab.0.left/0.23.1792.1097@0.23.1792.1097" timestamp="1602506188645" />
273
+ <state width="1357" height="316" key="GridCell.Tab.0.left/0.23.1792.1097@0.23.1792.1097" timestamp="1602685669568" />
372
274
  <state width="1750" height="383" key="GridCell.Tab.0.left/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008182" />
373
275
  <state width="1738" height="428" key="GridCell.Tab.0.left/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1602257501216" />
374
276
  <state width="1321" height="264" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600268308806" />
375
277
  <state width="1878" height="183" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599837918175" />
376
- <state width="1357" height="316" key="GridCell.Tab.0.right" timestamp="1602506188646">
278
+ <state width="1357" height="316" key="GridCell.Tab.0.right" timestamp="1602685669570">
377
279
  <screen x="0" y="23" width="1792" height="1097" />
378
280
  </state>
379
281
  <state width="1750" height="261" key="GridCell.Tab.0.right/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051669" />
380
- <state width="1357" height="316" key="GridCell.Tab.0.right/0.23.1792.1097@0.23.1792.1097" timestamp="1602506188646" />
282
+ <state width="1357" height="316" key="GridCell.Tab.0.right/0.23.1792.1097@0.23.1792.1097" timestamp="1602685669570" />
381
283
  <state width="1750" height="383" key="GridCell.Tab.0.right/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008183" />
382
284
  <state width="1738" height="428" key="GridCell.Tab.0.right/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1602257501217" />
383
285
  <state width="1321" height="264" key="GridCell.Tab.0.right/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600268308807" />
@@ -432,11 +334,11 @@
432
334
  <screen x="1792" y="-410" width="1920" height="1057" />
433
335
  </state>
434
336
  <state x="2477" y="-143" key="refactoring.ChangeSignatureDialog/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599040674381" />
435
- <state x="360" y="268" width="670" height="676" key="search.everywhere.popup" timestamp="1602507231608">
337
+ <state x="360" y="268" width="670" height="676" key="search.everywhere.popup" timestamp="1602584484081">
436
338
  <screen x="0" y="23" width="1792" height="1097" />
437
339
  </state>
438
340
  <state x="360" y="268" width="670" height="676" key="search.everywhere.popup/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596101738778" />
439
- <state x="360" y="268" width="670" height="676" key="search.everywhere.popup/0.23.1792.1097@0.23.1792.1097" timestamp="1602507231608" />
341
+ <state x="360" y="268" width="670" height="676" key="search.everywhere.popup/0.23.1792.1097@0.23.1792.1097" timestamp="1602584484081" />
440
342
  <state x="360" y="268" width="671" height="677" key="search.everywhere.popup/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597748285464" />
441
343
  <state x="2484" y="121" width="1287" height="875" key="search.everywhere.popup/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1601982106446" />
442
344
  <state x="360" y="268" width="671" height="677" key="search.everywhere.popup/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1600242616490" />
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "a": "cd android && gradlew clean && cd .. && react-native run-android",
7
+ "a": "index-git.sh && cd android && gradlew clean && cd .. && react-native run-android",
8
8
  "start": "react-native start",
9
- "la": "cd ./android && ./gradlew clean && cd .. && gnome-terminal -- /bin/bash -c \"wmctrl -c 'Terminal';react-native start $SHELL\" && react-native run-android",
9
+ "la": "./index-git.sh && cd ./android && ./gradlew clean && cd .. && gnome-terminal -- /bin/bash -c \"wmctrl -c 'Terminal';react-native start $SHELL\" && react-native run-android",
10
10
  "lint": "tslint --project .",
11
11
  "lint-fix": "tslint --fix --project .",
12
12
  "lint-pkg": "npmPkgJsonLint .",
@@ -204,7 +204,7 @@ class RecommendationScreen extends react_1.default.Component {
204
204
  <Header_1.default exitCallback={this.onExit}/>
205
205
  <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Active Insulin`)} value={activeInsulin ? `${activeInsulin.toFixed(1)}` : null} unit={i18nUtils_1.i18n._(macro_1.t `units`)} showNullAsDash={false}/>
206
206
  <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Blood Glucose Level`)} value={currentBGL ? `${displayedBGL}` : null} unit={this.props.bloodGlucoseUnit} showNullAsDash={true}/>
207
- <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Blood Ketone Level`)} value={currentBKL ? `${displayedBKL}` : null} unit={this.props.bloodKetoneUnit} showNullAsDash={true}/>
207
+ <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Blood Ketone Level`)} value={currentBKL !== null ? `${displayedBKL}` : null} unit={this.props.bloodKetoneUnit} showNullAsDash={true}/>
208
208
  <react_native_1.View style={containerStyles.calcContainer}>
209
209
  <react_native_1.View style={containerStyles.calcMargin}>
210
210
  <react_native_1.View style={[
@@ -309,7 +309,7 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
309
309
  />
310
310
  <InfoBars
311
311
  label={i18n._(t`Blood Ketone Level`)}
312
- value={currentBKL ? `${displayedBKL}` : null}
312
+ value={currentBKL !== null ? `${displayedBKL}` : null}
313
313
  unit={this.props.bloodKetoneUnit}
314
314
  showNullAsDash={true}
315
315
  />