Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to enable IOB in the mainline #452

Merged
merged 25 commits into from
Mar 8, 2015
Merged

Conversation

jasoncalabrese
Copy link
Member

screen shot 2015-03-01 at 11 12 00 am

Like the Care Portal and Raw Data this feature will need to be enabled using the ENABLE env var. For example: ENABLE="careportal rawbg iob"

This will use a treatment profile or default to a DIA of 3 hours. A UI for setting the treatment profile is begin working on with #439

This also make IOB available to the pebble endpoint

@coveralls
Copy link

Coverage Status

Coverage decreased (-11.85%) to 58.97% when pulling ee9dcae on wip/enable-iob into d616b6c on dev.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-11.85%) to 58.97% when pulling ee9dcae on wip/enable-iob into d616b6c on dev.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.29%) to 68.53% when pulling 127e4f5 on wip/enable-iob into d616b6c on dev.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.99%) to 71.81% when pulling 0aea8a7 on wip/enable-iob into d616b6c on dev.

@jasoncalabrese
Copy link
Member Author

Need to test this on azure, and make sure the bundle can be written, etc


if (!treatments) return {};

if (typeof profile === 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is this any different from if (profile === undefined) { (which is more readable)?

@jasoncalabrese
Copy link
Member Author

Trying out a new pill based display for the BG delta and IOB, these don't get the strikethrough style in retro mode.

iob-pill-noalarm

iob-pill-withalarm

iob-pill-retro

@jimsiff
Copy link
Contributor

jimsiff commented Mar 6, 2015

I like that… looks really good. One thing I noticed with the delta and IOB below BG and trend… the straight down arrow clips IOB in the older style. Not sure if it happens with your new pill design.

On Mar 6, 2015, at 12:34 AM, Jason Calabrese notifications@github.com wrote:

Trying out a new pill based display for the BG delta and IOB, these don't get the strikethrough style in retro mode.

https://cloud.githubusercontent.com/assets/751143/6522277/fa9a5ea2-c397-11e4-9d00-d10adf582187.png
https://cloud.githubusercontent.com/assets/751143/6522276/fa982466-c397-11e4-8642-3f9a27ca5e52.png
https://cloud.githubusercontent.com/assets/751143/6522275/fa8df8b0-c397-11e4-989d-fe5118c1fa2e.png

Reply to this email directly or view it on GitHub #452 (comment).

@francescaneri
Copy link
Contributor

image

@francescaneri
Copy link
Contributor

Hi Jason, you can separate them a thread? Thanks Matteo

@francescaneri
Copy link
Contributor

image

@francescaneri
Copy link
Contributor

....with the oblique arrow are lowered.

@jimsiff
Copy link
Contributor

jimsiff commented Mar 6, 2015

Hey Jason,

I like the look of the pills. It really cleans up the interface.

For my eyes, the grey on black colors and small fonts don't provide a lot of contrast. I have to look harder at the data to read it vs the current green / yellow / red on black.

Would white on black look out of place?

Jim

On Mar 6, 2015, at 10:11 AM, Jason Calabrese notifications@github.com wrote:

Think we'll need multiple lines, and on a narrow screen 3

https://cloud.githubusercontent.com/assets/751143/6530728/4953ac42-c3e8-11e4-989b-a0c03742b5ff.png
https://cloud.githubusercontent.com/assets/751143/6530834/278e2db6-c3e9-11e4-9889-506703936a04.png

Reply to this email directly or view it on GitHub #452 (comment).

@ELUTE
Copy link
Contributor

ELUTE commented Mar 6, 2015

I was thinking the exact same thing Jim

On Mar 6, 2015, at 1:29 PM, Jim Sifferle notifications@github.com wrote:

Hey Jason,

I like the look of the pills. It really cleans up the interface.

For my eyes, the grey on black colors and small fonts don't provide a lot of contrast. I have to look harder at the data to read it vs the current green / yellow / red on black.

Would white on black look out of place?

Jim

On Mar 6, 2015, at 10:11 AM, Jason Calabrese notifications@github.com wrote:

Think we'll need multiple lines, and on a narrow screen 3

https://cloud.githubusercontent.com/assets/751143/6530728/4953ac42-c3e8-11e4-989b-a0c03742b5ff.png
https://cloud.githubusercontent.com/assets/751143/6530834/278e2db6-c3e9-11e4-9889-506703936a04.png

Reply to this email directly or view it on GitHub #452 (comment).


Reply to this email directly or view it on GitHub #452 (comment).

@jasoncalabrese
Copy link
Member Author

Maybe a brighter grey? So not fully white? Icons might be good too, but then we have to move to fixed font sizes. I want to be able to plug in new types of data really easy.

@jimsiff
Copy link
Contributor

jimsiff commented Mar 6, 2015

How does this look @ELUTE and @jasoncalabrese? I changed the pill background color to #bdbdbd but left the font color the same grey. it gives a little more contrast without looking too out of place. Maybe you have a better idea.

screen shot 2015-03-06 at 11 28 43 am

screen shot 2015-03-06 at 11 29 13 am

@francescaneri
Copy link
Contributor

@jimsiff 👍

@jasoncalabrese
Copy link
Member Author

Looks good. We should probably use the same grey for the value in the pill too. Should we replace the other grey? Clock, time ago, BG (retro and default theme), etc.

@jimsiff
Copy link
Contributor

jimsiff commented Mar 6, 2015

Sounds good. I do think the brighter grey pops more against the black... I'd like to see what it looks like with clock, time ago, BG, etc using that. I hope it doesn't kill the effectiveness of Night mode.

@jimsiff
Copy link
Contributor

jimsiff commented Mar 6, 2015

It does look like the straight down trend bleeds into the pill. It's so hard to juggle everything with % fonts.

screen shot 2015-03-06 at 12 06 59 pm

screen shot 2015-03-06 at 12 11 59 pm

@francescaneri
Copy link
Contributor

@jimsiff @jasoncalabrese
raw
...and if so for raw data

@francescaneri
Copy link
Contributor

Hi everyone, you can not keep a new display based pill and place as it was put by wip / IOB -COB have a screen cleaner ? what do you say @scottleibrand

@francescaneri
Copy link
Contributor

image

@jasoncalabrese
Copy link
Member Author

@francescaneri, trying to fit the IOB/COB into the title has been a problem. That layout is really fragile, screws up the click location of the toolbar, and runs into the title.

@jasoncalabrese
Copy link
Member Author

I'm going to merge this to dev and start getting it integrated with everything else

jasoncalabrese added a commit that referenced this pull request Mar 8, 2015
Add an option to enable IOB in the mainline
@jasoncalabrese jasoncalabrese merged commit 1e27704 into dev Mar 8, 2015
@jasoncalabrese jasoncalabrese deleted the wip/enable-iob branch March 8, 2015 00:47
@jasoncalabrese jasoncalabrese modified the milestone: enchilada Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants