Skip to content

Abbreviates dates in the patient data charts and brings arrows in closer.#182

Merged
jebeck merged 7 commits into
tidepool-org:masterfrom
ursooperduper:sk/arrows-and-dates
Jan 13, 2015
Merged

Abbreviates dates in the patient data charts and brings arrows in closer.#182
jebeck merged 7 commits into
tidepool-org:masterfrom
ursooperduper:sk/arrows-and-dates

Conversation

@ursooperduper
Copy link
Copy Markdown
Contributor

This PR abbreviates the dates shown in daily, weekly, and trend views of patient data.
@jebeck @skrugman

To tighten the position of the arrows, I removed a large block element that surrounded the dates in each view. When you test this, you'll notice that this causes the arrows to bounce slightly as the width of the date string changes. In my testing, I found that you can still click the arrows repeatedly to move forward or backward in time without losing focus.

If the slight jump/bounce of the arrows is undesirable, I can create CSS rules for each view that will reintroduce the block around the date, just a bit tighter than before when there was one block for all views.

Let me know how you'd like me to proceed!

Resolves: https://trello.com/c/RELPBpRy

I agree to the terms of Tidepool Project’s Volunteer/Contributor License Agreement v1.0
as it exists at http://tidepool-org.github.io/TidepoolVCLA.pdf on Monday, January 12, 2015.
cc/ @kentquirk

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to keep ordinal markers after the dates? e.g., 14th instead of 14?

This is a question as much for @skrugman and @brandonarbiter

If yes, everywhere or just daily view?

Comment thread app/pages/patientdata/patientdata.less Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you delete commented out lines?

@jebeck
Copy link
Copy Markdown
Contributor

jebeck commented Jan 13, 2015

Just waiting on deletion of commented-out code and another update merge from master; otherwise looks good.

@ursooperduper
Copy link
Copy Markdown
Contributor Author

@jebeck
Removed all the commented out code. Sorry about that! The branch is merged and the build passes.

@jebeck
Copy link
Copy Markdown
Contributor

jebeck commented Jan 13, 2015

Awesome, thanks!

jebeck added a commit that referenced this pull request Jan 13, 2015
Abbreviates dates in the patient data charts and brings arrows in closer.
@jebeck jebeck merged commit 6f186ee into tidepool-org:master Jan 13, 2015
@ursooperduper ursooperduper deleted the sk/arrows-and-dates branch January 15, 2015 16:48
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.

3 participants