100 Commits
Author SHA1 Message Date
Brian Hanifin 5035ecf707 Custom Title: Fixed HTML injection attack vector. Thanks for the catch @bewest! 2014-08-11 20:24:15 -07:00
Brian Hanifin c1b2988eb0 Merge branch 'hotfix/0.3.5' 2014-08-03 11:25:06 -07:00
Brian Hanifin 42f7fc610c Merge branch 'hotfix/0.3.5' into develop 2014-08-03 11:25:06 -07:00
Brian Hanifin 0f231a4e6c Restored BG # strikethrough when stale
* Changed client.js inline style from `.css('text-decoration','none')` to `.css('text-decoration','')`
2014-08-03 11:24:36 -07:00
Brian Hanifin 37958ee464 Restored BG # strikethrough when stale
* Changed client.js inline style from `.css('text-decoration','none')` to  `.css('text-decoration','')`
2014-08-03 11:18:13 -07:00
Brian Hanifin b7e19bd381 [Fix] Data does not load: Cookies + Cache Busting
* Cookies are required to store settings on the browser.
* The site now *fails gracefully* when a user has cookies disabled.
* A message replaces the settings form when cookies are disabled.
2014-08-01 22:40:22 -07:00
Brian Hanifin 7ce02a18d4 Merge branch 'hotfix/0.3.4' 2014-08-01 22:35:57 -07:00
Brian Hanifin e181d3a74a [Fix] Data does not load: Cookies + Cache Busting
* Cookies are required to store settings on the browser.
* The site now *fails gracefully* when a user has cookies disabled.
* A message replaces the settings form when cookies are disabled.
2014-08-01 22:35:09 -07:00
Brian Hanifin bd80a9f949 Revert "Adding experimental Tasker Task."
This reverts commit 5d42f5e09e.
2014-08-01 17:14:35 -07:00
Brian Hanifin 5d42f5e09e Adding experimental Tasker Task. 2014-08-01 17:09:30 -07:00
Brian Hanifin 9ad3a53f15 [Fix] Data does not load: Cookies + Cache Busting
* Cookies are required to store settings on the browser.
* The site now *fails gracefully* when a user has cookies disabled.
* A message replaces the settings form when cookies are disabled.
2014-08-01 11:23:11 -07:00
Brian Hanifin 8ec193936b [Fix] Data does not load: Cookies + Cache Busting
* Cookies are required to store settings on the browser.
* The site now *fails gracefully* when a user has cookies disabled.
* A message replaces the settings form when cookies are disabled.
2014-08-01 11:21:40 -07:00
Brian Hanifin f72ab34137 [Fix] Data does not load
* Cookies are required to store settings on the browser.
* The site now *fails gracefully* when a user has cookies disabled.
* A message replaces the settings form when cookies are disabled.
2014-07-31 22:27:38 -07:00
Brian Hanifin 5c1b89a567 Release Notes link change
Pointing to https://github.com/nightscout/cgm-remote-monitor/releases
2014-07-31 16:04:34 -07:00
Brian Hanifin 4e8595b98e no message 2014-07-31 16:02:18 -07:00
Brian Hanifin 2968a98caf Stabilize: cache busting attempt 2014-07-31 12:22:40 -07:00
Brian Hanifin 8892d3f1e8 Added populate.js test data generator.
Thanks to John A. [euclidjda](https://github.com/euclidjda) for creating this for us!
Source: https://gist.github.com/euclidjda/7c70c35d8ffc61c932cb
2014-07-31 11:02:25 -07:00
Brian Hanifin cfa6cecd1e Removed loading splash screen. 2014-07-30 21:49:28 -07:00
Brian Hanifin d223c0b9d4 Merge branch 'hotfix/0.3.3' into develop
Conflicts:
	bower.json
	package.json
	static/css/main.css
2014-07-30 14:10:18 -07:00
Brian Hanifin da667e028a Merge branch 'hotfix/0.3.3' 2014-07-30 14:03:53 -07:00
Brian Hanifin d4984bf777 version 0.3.3: Mobile layout adjustments
* Shrunk BG number on mobile so it doesn't push the time elements out of view (when the toolbar is collapsed).
* Fix issue that caused the chart to fill the entire screen on the Android Stock & Dolphin Browsers.
* Removed strikethrough on arrows (when data is stale).
* Improved alignment of time elements.
* Slight style refactoring (moved some css from js to css).
2014-07-30 13:32:52 -07:00
Brian Hanifin fdb160cd3c version 0.3.3: Mobile layout adjustments
* Shrunk BG number on mobile so it doesn't push the time elements out of view (when the toolbar is collapsed).
* Fix issue that caused the chart to fill the entire screen on the Android Stock & Dolphin Browsers.
* Improved alignment of time elements.
* Slight style refactoring (moved some css from js to css).
2014-07-30 13:23:12 -07:00
Brian Hanifin 5514a8f874 version 0.3.3: Mobile layout adjustments
* Shrunk BG number on mobile so it doesn't push the time + staleness info out of view (when the toolbar is collapsed).
* Fix issue that caused the chart to fill the entire screen on the Android Stock & Dolphin Browsers.
* Slight style refactoring (moved some css from js to css).
2014-07-30 13:00:24 -07:00
Brian Hanifin 7b6d7c40b7 version 0.3.3: Mobile layout adjustments
* Shrunk BG number on mobile so it doesn't push the time + staleness info out of view (when the toolbar is collapsed).
* Slight style refactoring (moved some css from js to css).
2014-07-30 11:47:12 -07:00
Brian Hanifin cb331e4deb Loading screen, remove 2 sec delay 2014-07-29 23:02:46 -07:00
Brian Hanifin 3fed7c4268 MongoDB test population
By [John A.](https://github.com/euclidjda)
Source: https://gist.github.com/euclidjda/7c70c35d8ffc61c932cb

> Testing Custom Alarms: I created a MongoDB instance that is populated every 2 min with test cgm data that oscillates between bg levels of 40 and 400 every 15 minutes. The idea is that you can point your cgm-remote-monitor code at this and get a quick test of the custom alarm code. Anyways, using it for my stuff test and thought I would share.
2014-07-29 22:40:22 -07:00
Brian Hanifin 5f9b91545b Merge pull request #68 from brianhanifin/develop
Feature: Loading Screen
2014-07-29 22:32:14 -07:00
Brian Hanifin 88c8f4d36a Merge pull request #57 from brianhanifin/feature/loading
Loading screen
2014-07-29 21:53:39 -07:00
Brian Hanifin 2b5788f48d Loading screen 2014-07-29 21:52:16 -07:00
Brian Hanifin 4afa2ec685 Merge pull request #56 from brianhanifin/feature/loading
Loading screen
2014-07-29 21:49:12 -07:00
Brian Hanifin aefc9c6e4e Loading screen 2014-07-29 21:47:19 -07:00
Brian Hanifin 250387d451 Merge pull request #55 from brianhanifin/feature/loading
Loading screen
2014-07-29 21:39:05 -07:00
Brian Hanifin 6583d8f107 Loading screen 2014-07-29 21:38:20 -07:00
Brian Hanifin 5ffbd8917b Merge pull request #54 from brianhanifin/feature/loading
Feature/loading
2014-07-29 21:33:45 -07:00
Brian Hanifin 85e83fc123 Loading screen 2014-07-29 21:28:25 -07:00
Brian Hanifin 4c5456ea71 Revert "Feature: Loading Screen"
This reverts commit a0ab409b5e.
2014-07-29 20:54:15 -07:00
Brian Hanifin a0ab409b5e Feature: Loading Screen
Display large Nightscout logo in center of screen, with the rest of the background faded out while the data is loading.
2014-07-29 20:51:49 -07:00
Brian Hanifin f3f60a1c02 Merge pull request #53 from nightscout/develop
Bump version to 0.3.2 + small fix.
2014-07-29 19:53:21 -07:00
Brian Hanifin b72697760d Version bump to match version from hotfix/0.3.2 2014-07-29 17:21:28 -07:00
Brian Hanifin f2fe803445 Bump version to 0.3.2 + small fix. 2014-07-29 17:19:01 -07:00
Brian Hanifin 1769361180 Merge branch 'hotfix/0.3.2' into develop
Conflicts:
	static/js/client.js
2014-07-29 16:33:08 -07:00
Brian Hanifin 061cbcf173 Merge branch 'hotfix/0.3.2' 2014-07-29 16:32:40 -07:00
Brian Hanifin ef39d0346d Fix: Stale background data persistence (attempt #2) 2014-07-29 16:23:51 -07:00
Brian Hanifin 5ab3051b6d Another attempt to fix the stale data colors remaining. 2014-07-29 16:19:02 -07:00
Brian Hanifin 69eb0d52b2 Disable test code. 2014-07-29 15:32:56 -07:00
Brian Hanifin 8d6f8cb3ff Merge branch 'feature/disable-alarms' into develop 2014-07-29 15:27:10 -07:00
Brian Hanifin 38edf5cfea Feature: Disable High/Low Alarms 2014-07-29 15:27:10 -07:00
Brian Hanifin 1722f72148 Alarms: add high/low disable setting 2014-07-29 15:27:10 -07:00
Brian Hanifin 482ad0a3c5 Bump version number 0.3.1 for hot fix. 2014-07-29 14:25:23 -07:00
Brian Hanifin 1f0d348d31 Update client.js 2014-07-29 14:05:12 -07:00
Brian Hanifin 763b49f775 Merge branch 'hotfix/0.3.1' into develop 2014-07-29 14:02:36 -07:00
Brian Hanifin dd4602bb20 Merge branch 'hotfix/0.3.1' 2014-07-29 14:02:36 -07:00
Brian Hanifin 6ccff97632 Possible fix for stale data warning colors not clearing 2014-07-29 14:02:16 -07:00
Brian Hanifin 31876463f4 Merge pull request #35 from nightscout/feature/base-api
Base API - settings, basic auth, and experimental endpoints
2014-07-29 02:25:17 -07:00
Brian Hanifin 94ee2a54c1 Merge pull request #58 from nightscout/rebase/settings
0.3.0
2014-07-29 02:21:52 -07:00
Brian Hanifin 439a8d7501 arrow fix 2014-07-29 02:15:20 -07:00
Brian Hanifin 291abb585a Fix truncated arrow 2014-07-29 01:27:34 -07:00
Brian Hanifin 4fa27ab3ee Status layout: removed unnecessary font shrinkage step. 2014-07-29 01:15:43 -07:00
Brian Hanifin b5fdb3dddd Adding custom title to page title 2014-07-29 00:56:10 -07:00
Brian Hanifin 9bd5ace7ee Settings: renamed Patient Name -> Custom Title 2014-07-29 00:48:30 -07:00
Brian Hanifin 9c4f5d1f91 Settings: Patient Name
For parents monitoring multiple kids. Replaces "Nightscout" in the toolbar.
2014-07-29 00:44:44 -07:00
Brian Hanifin 9ce67b0453 Stale data: strikethrough when 20 minutes out of date 2014-07-29 00:20:39 -07:00
Brian Hanifin 7b5bff94ac no message 2014-07-29 00:06:32 -07:00
Brian Hanifin d10df6b307 Last Entry: out of date colored backgrounds
Adding warning + urgent colored backgrounds when BG is out of date by 10 or 20 minutes.
2014-07-29 00:00:55 -07:00
Brian Hanifin 7ebe17a94e Changed battery glyph to visibility:hidden
That way the CSS and HTML can stay enabled. When we are ready to add code to ui-utils.js we can just start running.
2014-07-28 23:30:17 -07:00
Brian Hanifin b43767fe01 Prep work for battery status in button bar. 2014-07-28 23:21:46 -07:00
Brian Hanifin 2dd8f5385c Added Battery Glyphs in preparation for display of battery percentage. 2014-07-28 23:08:57 -07:00
Brian Hanifin 913e5c5e57 About: further tweaking text 2014-07-28 21:39:48 -07:00
Brian Hanifin f558a5b82f About: added link to Release Notes
* Changed other links to text links.
2014-07-28 21:29:26 -07:00
Brian Hanifin 92d56f808e Created high contrast treatment for the last entry time. 2014-07-28 18:55:49 -07:00
Brian Hanifin a1562fd6e3 Fixed javascript error in ui-utils.js when no query string parameters were present. 2014-07-28 18:48:47 -07:00
Brian Hanifin b8c908c7b3 High contrast display for last entry time. 2014-07-28 18:41:35 -07:00
Brian Hanifin 4d975712e1 Committing important unsaved changes to ui-utils.js. 2014-07-28 17:30:18 -07:00
Brian Hanifin da8d78dbfc Merged dropdown.js into ui-utils.js
* Querystring values now replace underscores with a space, pluses are now treated as any other character.
* Added type parameter to showNotifications(note, type). Now blue, green, red, and yellow background can be used (by passing the type as "info", "success", "urgent", "warn").
2014-07-28 11:51:43 -07:00
Brian Hanifin dd70399300 Merge commit 'f51b6c3a8b98a0ecc350f307cda6746ba002e6db' into rebase/settings 2014-07-27 21:06:59 -07:00
Brian Hanifin 3f4075fbb7 Interface tweaks 2014-07-26 11:06:32 -07:00
Brian Hanifin 812d35eb89 Cleanup: 2 tiny tweaks. 2014-07-26 01:29:47 -07:00
Brian Hanifin e620027779 Red alert button position adjustments.
Makes it look a little better.
2014-07-26 01:12:44 -07:00
Brian Hanifin d147b68937 Cross platform UI cleanup
* Fixed chart not sliding with drawer open/close.
* Shrunk red snooze/warning button to fit the space better.
* Fixed time overlapping red warning button on small screens (by hiding
it).
2014-07-26 00:59:50 -07:00
Brian Hanifin fe5cc89953 Fix: Snooze list now appears above all else 2014-07-25 23:53:36 -07:00
Brian Hanifin 55f77785be Cross browser fix + more responsive
* UI is far more consistent across Chrome, Safari, Firefox, and IE
(only tested on the latest versions of each).
* Responsive improvement: BG number, clock, etc now collapse together
neater on small screens.
* Collapsing the toolbar now increases the font size of BG, clock, etc!
:)

![cross browser
comparison](https://cloud.githubusercontent.com/assets/57336/3710186/947
d5328-1478-11e4-817b-ec5f67d44ea2.png)
2014-07-25 23:38:38 -07:00
Brian Hanifin c619738ab4 Notifications
* Custom built, simple notification system.
* `showNotification(“Hamburger?”);` Android Toast style messages can
appear at the top middle of the screen.
* Use `?notify=Hello,+world!` to test.
* Each new message overwrites the last.
* The notifications are locked to the top middle of the page.
2014-07-25 07:59:49 -07:00
Brian Hanifin c8c3781850 Rudimentary Notifications
To test `http://localhost:1337/?notify=Hello+world!`.
Note: see previous commit for more info.
2014-07-25 03:06:43 -07:00
Brian Hanifin 57c30b9bfa Rudimentary Notifications
* `showNotification(“Hamburger!”);` Android Toast style messages can
appear at the top middle of the screen.
NOTE: The right edge of the notification is clipped. I need some sleep
so I will take another look at it tomorrow.
2014-07-25 03:03:15 -07:00
Brian Hanifin ce19663749 ?toolbar=false
* Use this for support requests asking how to get rid of the toolbar. ;)
2014-07-25 01:14:04 -07:00
Brian Hanifin a476b9f67e Cleanup + ?drawer=true + mv fonts/ glyphs/
* Auto settings drawer opener (to help use support users).
* Removing experiments favicons and logos (because choices were made by
@rnpenguin).
* Glyph Fonts folder renamed to reflect usage: /static**/fonts** was
renamed to /static**/glyphs**.
* Hamburger?
2014-07-25 00:58:36 -07:00
Brian Hanifin 42114e8cf9 Hamburger Experiment
:)
2014-07-25 00:28:06 -07:00
Brian Hanifin 4cf38cb91d Hamburger Experiment 2014-07-25 00:24:41 -07:00
Brian Hanifin fd6b9e30ff Change: Form Tooltip now = Github's Question Mark
The custom font only has 5 glyphs still! :)
2014-07-24 19:38:46 -07:00
Brian Hanifin fa9e0e55e7 Cleanup:
* Removing duplicate functions.
* Reorganization of ui-utils.js.
* Early preparation for eventual inclusion of server side settings
storage.
* Adding ` />` to `<img>` and `<input>` tags.
2014-07-24 18:32:02 -07:00
Brian Hanifin 79f91b0487 Restore alerts 2014-07-24 13:42:56 -07:00
Brian Hanifin 73b1339b84 Cleanup + added ?mute=true for testing
An alert is displayed if the alarm is muted.
2014-07-24 13:35:23 -07:00
Brian Hanifin ab0657b5e6 Moved version info inside drawer. 2014-07-23 23:12:23 -07:00
Brian Hanifin a355c4e507 Fix: firefox settings save issue + trimmed fonts
* I fixed the problem @ELUTE reported with firefox displaying an error
when saving settings.
* Trimmed the font glyphs down to the 5 we are currently using.

Note: I discovered that you can “Import” the config.json into
fontello.com to start with the same list of fonts. Also, you can
overwrite /static/fonts when with the entire contents of the fontello
zip file to replace the font.
2014-07-23 23:09:22 -07:00
Brian Hanifin 9879009a46 Fix: touchscreen tooltip changes
Tooltips get stuck on touch screen devices. So I disabled all of them
except for the ones in the drawer, since they are needed for more form
details.
2014-07-23 21:58:04 -07:00
Brian Hanifin a11bbffb80 Fix: misc mobile sizing 2014-07-23 21:02:00 -07:00
Brian Hanifin 6c99055ed1 Toolbar hide/show buttons + Custom glyph font
* I added toolbar hide/show functionality for users that want that UI
out of the way.
* I built a custom glyph font using
[fontello.com](http://fontello.com/). These fonts are replacing images
I was using in the toolbar. See http://localhost:1337/fonts/demo.html
for the list of available fonts.
* I combined drawer.js and settings.js.
* Various other cleanup.
2014-07-23 17:06:54 -07:00
Brian Hanifin 34ddd828b8 Fix: time flicker
One of the three hard coded format strings were different than the
others causing the flicker.

FORMAT_TIME is now defined at the top and is used in place of hard
coded values.
2014-07-23 14:25:21 -07:00
Brian Hanifin 5ef617f089 Fix: restored mg/dL chart "tickValues"
The values on the right hand side were missing when on mg/dL.
2014-07-23 13:12:40 -07:00
Brian Hanifin fbda0c54ed Toolbar Logo experiments
I added the two B&W logos. I like the primarily white one best.
2014-07-23 11:56:28 -07:00