* Add bolus plugin and restructure rendering settings
* Add setting to prevent automated micro boluses from triggering notifications and snoozing alarms
* clean up
* Small change to the bolus-settings branch so it supports flexible configuration that enables the old behavior
* Translations
* Fix settings default
Co-authored-by: Jason Calabrese <jason@cbrese.com>
* Copied #5442 - Duplicated @c-robertson's work
* Added tx id and sensor code to tooltip
* Added swagger docs for the new fields
* Added missing language keys
* Added new fields to sage plugin display
Co-authored-by: Sulka Haro <sulka@sulka.net>
In a default configuration, there is no treatment data. The code to redirect
the UI to the profile editor is buried deep within the chart rendering code for
basals. This plugin is only supposed to go into action when enabled via
ENABLE=basal. This commit fixes first-use experience for the default
configuration intended to draw real-time CGM traces and no basal information is
expected. Since no basal information is expected unless plugin is enabled via
ENABLE=basal, this allows skipping instead of redirecting to the profile editor.
* Option to switch off bolus amount outputs (#5514)
* Fixing issue with carb value not be output when set to "none" (#5514)
* Adding additional output options (#5514)
* Adding environment variable option for 'x U and Over' option.
This option is BOLUS_RENDER_OVER with a default value of 1 and the value can be an integer or a float, e.g. 0.3, 1.5, 2, etc...
* Adding change to change the font size depending on the bolus value.
* Merge two "all" options to create an option that displays as SMB had.
* 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.
* Refactor of how prediction data is collected
* 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.
* fix forecast limit logic
(cherry picked from commit e88ce7e5d1f5fb12c71ae67da4131ff1a50940c9)
* fix minimum focus forecast time
* make min forecast 30 min
* Further fixes to profile data fetches, change the client to not create excessive amount of date objects
* Sort entries once on load and then rely on the sorting to find out the largest and smallest value
* Make the renderer reuse Date objects instead of instantiating a huge amount of dates all the time
* * Fix reporting test to match the new output
* Fix number formatter to return the expected 0 when data is NaN
* Remove excessive logging during test runs from cob plugin
* Run all tests in one go
* Fixes D3 invocations for tests. Note this also removes transition timers (most of which seemed to be timed so fast they actually had no effect as the timer was faster than what it takes to draw a frame in Nightscout)
* Run tests independently
* Try not running tap-set-exit
* Remove tap-set-exit
* 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
* Support a wider range of unit strings for profiles
* Fix one more incorrect units detection of units (& remove unrelated line that was not used and caused linting errors)
* skeleton code
* publishing
* Activating remote override
* Fix event types refresh, and fix custom duration
* Don't create treatment record; loop will
* Additional override details for treatment tooltip
* Pass client from careportal
* attempt at moving endpoint to api/v2
* Add bodyParser to v2/notifications
* Remove notifications api from v1
* Remove unused var
* Better error handling and reporting
* Add documentation for new loop plugin vars
* Handle indefinite duration overrides
* Move label of indeterminate duration override to now line when start is offscreen
* test
* Use separate representation for indefinite duration treatments
* fix display for finite duration treatments
* Fix re-use of elements when treatment ordering changes
* Handle more rect transition() updates
* Add check for LOOP_DEVELOPER_TEAM_ID
* Support configuration of aps-environment via environment variable.
* Fix expiration date math; was essentially preventing retries
* (bluefox) add npmignore
* Make it runnable as npm package
* (bluefox) use absolute path for static folder
* Allow start not only from cgm-remote-monitor
* (bluefox) add polling option to make it possible the communication without socket.io
* 0.12.3-2
Allow slow communication without socket.io
* (bluefox) fix errors
* (bluefox) fix clock with authentication
* (bluefox) fix clock
* fix time
* Formatting
* Fix clock if authentication is enabled
Add .npmignore file
* Add time to clock view back
* Formatting
* Fix authentication dialog
Take browser language for auth dialog
* Select browser language for authentication dialog
Make authentication dialog bigger to suit for other languages.
* Update hashauth.js
* Update hashauth.js
* Update hashauth.js
* Update hashauth.js
* (bluefox) fix chart if no latestSGV defined
* Select language from localStorage
And get suitable language for the very first auth dialog (before the settings were read from server or user can select language in the configuration)
* Fix language selection
* Charts were fixed if no latestSGV value found
HTML formatting for "TDD average" and so on
* Remove .npmignore
* Some code formatting. No relevant changes
* Show "-?-" in clock mode if no measured value found.
* Small CSS Formatting
* Cherry picks the ES language changes from #4690
* Fix small issues found in linting
* * Fix all but one eslint complaint in the bundled code
* Add eslint and js-beautify rc files into the repo
* Add protein and fat logging to CarePortal, simple sums to day to day reporting, grams in graphs
* Add fat and protein to swagger
* Fix aggregate report sometimes considering logged carbs, protein and fat as a string. Add editing of protein and fat to reports. Show protein and carbs on daily reports
The chart would create SVG objects for treatment event records, then
later recreate them without deleting the old ones. This resulted in a
huge number of duplicates accumulating, which (in my setup) would cause
a crash due to excessive memory usage and DOM size in about a day.
* Smarter formatting based on amount of data, to make sure the rendering works for both SMB and non-SMB users
* Move comment to where it belongs, changed math so first 10 treatments don't reduce scaling
fix merge errros by reverting views/index.html and lib/client/renderer.js,
up version in bower.json, npm-shrinkwrap.json and package.json
fix test/client.renderer.test.js