This patch adjusts the user feedback while the server is initializing to
communicate that Nightscout startup sequence should take closer to 15 second
than 5 seconds.
This patch allows the operator to control whether or not the API Secret
authentication dialog will display by default or not. Historically Nightscout
allows a configuration to be readable and to send alarm information to all
displays.
A change in in dev in February to support authentication and api v3 introduced
a new configuration where websocket communication is authenticated, and the API
Secret modal will display if it authenticates in error. The side-effect is
that all new instances, even readable instances with glucose data, can't be
seen or monitored without putting in the API Secreet or explicitly dismissing
it.
This patch returns to the default behavior while allowing to select the new one
using authenticationPromptOnLoad in the settings communicated from server to
client. If people strongly prefer, we can reverse to the new behavior over
time.
To select the old behavior with no API Secret needed for readabable data, do nothing.
To select the new behavior where the API Secret prompts occur on load, set
`AUTHENTICATION_PROMPT_ON_LOAD=1`.
* Experimental branch that replaces momentjs with dayjs in the client
* Revert unintentional change
* feat
* Turns out dayjs is a no-go, but this has some good restructuring so submitting that
* This commit updates the uuid and socket.io packages to latest versions and enables compression over websocket
* Drop the compression threshold down to 512 bytes
* Enable http compression down to 512 bytes and request long poll transport only, as per current release
* Add the socket.io-client back in
* Use polling with the NS client
* Update express to latest in 4.x line, fix tests
* 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>
* Adds a new method for the server to push notifies to the client, which require administration privileges from the user. If there are messages in queue but user is not privileged, she is notified of pending messages
* Fix unit tests
* Increase timeouts on tests
* Add translations
* * Aggregate admin messages
* Send admin message on auth fail
* Sending messages over bus
* XSS filtering of objects sent over the REST API
* Warn users if their instance is world readable
* Fix adminnotifies init()
* Fix couple issues from Codacy
* Auth resolve now supports async/await
* Read only tokens can be used for authentication and the UI shows privileges for these accounts correctly
* Failed attempt at authenticating an API_SECRET or token delays subsequent auth attempt by 5000 ms
* 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.
* Allow auth tokens to be passed in the api-secret header and used in the client in place of the API secret
* Fix unit test
* Fix admin test
* Reload page when token is used as a secret
* 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 layouting and load data in one go. Bonus points if you can fix the rendering for this
* fix focus target lines and high and low lines
* Remove debug logging. Change profile functions to clear the cache on new data, instead of calculating heavy hashes
* Remove unused code
* Fix tests
* Have Travis run tests on Node 10 and 12, not 13
* 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
* (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
* Fix clock if authentication is enabled
Add .npmignore file
* Add time to clock view back
* Formatting
* 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
* 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)
* remove extra `/ ` from clockview, otherwise bundle will not load and search for domain `bundle`
fixes https://github.com/nightscout/cgm-remote-monitor/pull/4860#pullrequestreview-277209223
* remove .npmignore for now.
should be merged in seperated PR
* small fixes
* 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
* Remove Profile Editor toggle
`profile` isn't an optional plugin anymore; doesn't need this display toggle. (Plus it was erroneously toggling off in the absence of the `basal` plugin — see #4442.)
* Remove profilecontrol class
* Adds API to plugin manager that calls plugins to visualize alarms
* Refactoring how the translation object is managed after discovering every server-side plugin had it's own instance of the translations and the language code wasn't propagated to any code that generated alarms
* Add more missing translations
* Some more localization fixes
Update Finnish to 100% localized
Change Mongo connection to not stop retrying connecting
* Better scaling for mmol
Fix bug in detecting new BG values
* Delta calculation was the wrong way round :D
* add missing dutch translations
* Have tests bail early & tell Mocha to exit at the end of the run
* Try if Travis likes running tests one by one better
* Enable blocking IO for Travis
* Fix Warning, Pump Battery Low Alarm cannot be disabled
* fix Clock Views language.js
* see if this will solve the problems with the speech plugin detection at the client
* fix dutch spelling
* translate Clock Views:
* disable again
* Update language.js