tidepool-org/blip — pull request #15 by nicolashery (2014-02-27 18:02:57+00:00)
Title: Change upload button behavior

As I mentioned yesterday, this (along with the work from today already in `master`) changes a bit the flow/behavior of the "create your profile and upload data" process.

Things go like this overall:

- Sign up for a new account
- Click on "create your patient profile"
- Enter your birthday, diagnosis date, click "create"
- On the patient profile page your taken to, click on "upload device data"
- In the new window that's opened, follow the upload process, close the window when done
- Back in Blip, click "Patient data" to view your data

Big changes are:

- The "patient profile" creation page now works
- The "upload" button is on your profile page (I will also add others in the future, like on your empty data page, and maybe in the navbar)
- We don't listen to the "window close" event to redirect you to the patient data page. I already mentioned some reasons (tight coupling, hard to debug when things happen, we're at an early stage of "getting things working", inter-window communication if probably best done with cookies I think, I'll have to do a bit of research before implementing anything, if we do decide to come back to it)

I haven't gotten a chance to test this extensively yet, but since I'm stepping out for the day I wanted to put it out there so people can see.

If there are any issues, I'll be back later to review/discuss.