17 Commits
Author SHA1 Message Date
1c349527a1 Update webpack to v5 (#6844)
* upgrade webpack info

* cleanup eslint findings

* fix eslint formatter stylish error

* lazy is invalid option for webpack dev middleware

* upgrade webpack to 5.x

* remove unsupported terser option

* fix missing process polyfill dependency

* try alternate proces fix

* fix css image reference

* add statements to import missing css files to index.html

* TerserPlugin no longer required

* add missing css links

* remove terser

Co-authored-by: Jeremy Cunningham <jpcunningh@gmail.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-02-07 17:25:19 +02:00
3ee90d6927 feat: disable pump battery alarms at night option (#5359)
* feat: add feature to disable pump battery alarms at night

* add timezone handling for server side

* Update pump.test.js

* Update pump.test.js

* Update pump.test.js

Co-authored-by: Jeremy Cunningham <jpcunningh@gmail.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-01-17 15:31:31 +02:00
Jeremy CunninghamandGitHub 89dfe21303 Openaps performance improvement (#5945)
* improve openaps plugin performance

* more performance improvements

(cherry picked from commit 076a2dd3b69093149994258eb0244ae61d68f44e)

* correct setting notEnacted variable

* remove unnecessary debug logging
2020-09-08 08:04:46 +03:00
Jeremy CunninghamandGitHub 7c5a69dd9a Fix d3 portrait to landscape brush failure (#5638)
* fix d3 portrait to landscape brush failure

* fix client.renderer.test for highlighBrushPoints function prototype change

* fix highlightBrush

* move brush reset inside check for valid brush
2020-05-05 22:13:21 +03:00
Jeremy CunninghamandGitHub 6045547ea5 fix brushing loop (#5499) 2020-02-01 09:18:41 +02:00
Jeremy CunninghamandSulka Haro 60be07c9ec Fix Graph Display Without Recent Devicestatus (#5409) 2020-01-06 10:55:04 +02:00
Jeremy CunninghamandSulka Haro e0667c9006 fix some random test failures (#5341)
* fix some random test failures

* use typeof to test for existence
2019-12-20 11:13:02 +02:00
Jeremy CunninghamandSulka Haro 721aa0226c Fix auth dialog sizing error (#5314)
* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version
2019-12-18 08:55:09 +02:00
Jeremy CunninghamandGitHub 6021a0a7cb Fix auth dialog sizing error (#5315) 2019-12-17 17:34:25 -06:00
Jeremy CunninghamandSulka Haro 534c4435a4 Don't use dynamic scale unless entries in database (#5195)
* don't use dynamic scale unless have entries

* fix report crash when no entries

* set forecastTime correctly when no entries present
2019-11-12 08:42:30 +02:00
Jeremy CunninghamandSulka Haro f7750b3534 Rename xdrip-js to xdripjs (#4959)
* rename xdrip-js to xdripjs

* update readme for xdrip-js name change

* update from CGM to XDRIPJS label

* change label from all caps to mixed case for xDripJS

* change pill label back to CGM
2019-11-10 22:32:46 +00:00
Jeremy CunninghamandSulka Haro c4ee62b495 fix devicestatus retro merge (#5193) 2019-11-10 19:18:05 +00:00
Jeremy CunninghamandSulka Haro c1244eae12 Stop Focus Circles from Eating Entries (#5145)
* stop focus circles from eating entries

* fix forecastCircles remove

* resolve possible key collision

* Fixes a major bug where plugins were ran against a sandbox twice, causing issues with predictions. Fixes the look ahead timings.
2019-10-25 20:08:03 +03:00
Jeremy CunninghamandGitHub 41310808b2 fix forecast time max to client focusRangeMS instead of 30 min (#5143) 2019-10-23 08:02:32 -05:00
Jeremy CunninghamandGitHub 4fd28434c1 D3 Upgrade Residual Cleanup (#5140)
* fix forecast limit logic

(cherry picked from commit e88ce7e5d1f5fb12c71ae67da4131ff1a50940c9)

* fix minimum focus forecast time

* make min forecast 30 min
2019-10-23 07:21:25 -05:00
Jeremy CunninghamandPieterGit b8f28b0586 fix(d3): D3 libarry upgrade (lib for visualizing data such as main view, graphs, etc.) (#5081)
* initial commit for d3 upgrade

* d3 v5 mostly working except brush

* more work on the brush

* brush and layout mostly working now

* make open-right and open-left lines visible

* make brush selection hidden

* fix open-right, open-top, and now-line in retro mode

* fix setting brush to now

* fix updateBrushToNow to set start correctly

* add extent to updateBrushToNow

* fix inRetro to use dataExtent instead of domain

* move a debug log message to better location

* debug for brush movements

* cleanup adjusted range vs. brushed range

* fix syntax error

* remove transitions for brush movements

* log message for dataUpdate

* fix updating brush range when new data arrives

* fix keeping up with data when not in retro

* keep brush range at focusRangeMS during update

* fix variable name error

* keep chart in sync with current time when not in retro

* use short transition time

* test no opacity changes

* remove one more highlight and use small transition duration

* fix race condition

* fix for uncommanded going to retro

* fix syntax error

* update chart scales when new data arrives in retro mode

* Use consistent transition for scroll

* clean chart.updateContext

* comment out debug messages

* remove unused variable

* update renderer to account for no structure arg for d3 attr

* fix syntax error

* one more syntax error

* use requestAnimationFrame

(cherry picked from commit b610485597b2e9ecf46471994980136d3c17deec)

* forgot to update current scroll data

(cherry picked from commit 1ab26522cd4abd3fb77a76964469200fc50dc555)

* remove extra treatment circles

* try using class for selection

(cherry picked from commit 92f678c6fe8e2bb700dc61ab56a71d483c5a9988)

* reduce update required for focus circles

(cherry picked from commit 46aab643125c2a083807627b9fb6052faef2134f)

* reduce update required for focus treatments

(cherry picked from commit 23ba5c4bea4bf2ff75f2296e1edc606f311ef7fe)

* fix update prepare treat circles

(cherry picked from commit afcbbab40fe0c93e26e97152513845cf2c5ecf6f)

* use _id for treatments key

* do not use opacity for past entry circles

* replace scale.linear with scaleLinear

see https://github.com/d3/d3/blob/master/CHANGES.md#scales-d3-scale

(cherry picked from commit 3445eeeedd1c0d863ca5210d4cd32994a9da4d49)

* d3 upgrade axis

(cherry picked from commit 06a8a9283100a980ccb5bed7920bce96a5b138cc)

* d3 upgrade axis

(cherry picked from commit 1ac583ce2b1d0796f8d8f0d5f9b5ee29a051af1e)

* fix tooltip location

* fix plugin tooltip location

* update reports for d3 v5

* fix inner radius default for insulin distribution pie

* fix dynamic scaling issues

* fix single click scroll

* Fix font size on axis labels

* Render ticks on top of everything

* fix click to scroll jankiness

* move loading finished to the bottom of updateHeader
2019-10-21 14:06:05 +02:00
Jeremy CunninghamandPieterGit 6223212e9f Enable id query with no date (#4481)
* Enable id query with no date

* Add unit test for query.js
2019-04-06 17:02:56 +02:00