Added a check-in checkbox to the StoryActivity's story place items.
Depending on whether you are the logged-in user and if the trip is past/current/upcoming, the checkbox appears/behaves differently:
if trip is upcoming, no check box is shown
if trip is current,
user is other user: no check box is shown
user is logged in user: check box is shown
off state: gray with "Check-in" text
on state: green with date text
checking in defaults to current date and animates story place row to bottom of list
unchecking animates story place row to top of list
date text is clickable, and brings up a date picker to change the date if desired.
if trip is past
user is other user: sees checkbox with date if the place has been checked-in to
user is logged in user: check box is shown
off state: orange with "Forgot to check-in?" text
on state: green with date text
tapping checkbox or date text brings up a date picker to select date
no row animation
Bugs: can be a little buggy with the story place row re-ordering position code. I'm planning to refactor the StoryActivity over Thanksgiving week to clean this up.
Issue: #34
Added a check-in checkbox to the StoryActivity's story place items.
Depending on whether you are the logged-in user and if the trip is past/current/upcoming, the checkbox appears/behaves differently:
Bugs: can be a little buggy with the story place row re-ordering position code. I'm planning to refactor the StoryActivity over Thanksgiving week to clean this up.