cryonics-institute / checkin

A Mobile+Web Suite That Lets Those You Love Know You're OK; A Dead Man's Switch for Your Phone
GNU General Public License v3.0
3 stars 1 forks source link

Finish Redux Actions for Time Inputs #71

Closed ghost closed 4 years ago

ghost commented 4 years ago

Although some issues need to be posted about more work to be done on the time-inputs screen, these actions need to be folded in to the main fork.

With this pull request, the patient/member-user is able to schedule alerts to remind him or her to check in using times of day. Those alerts will fire at those times each day. The alert times are stored in the Firebase Firestore along with the sign-in time, the last check-in time, and the interval until the next alert should fire. There is also still a field for a snooze, or an interval between which the member/patient is alerted to check in and the buddy/standby is alerted that the member/patient has not checked in. That snooze is not yet integrated into the actions and will be addressed in a new issue.

The buddy/standby now has actions set up that fetch the scheduled alert-times from Firebase and schedules and alert to be fired when the member/patient does not check in. That calculation is made similarly to how the calculation is made on the member/patient's side. Once again, the snooze interval still needs to be integrated into this calculation.

Finally, an Expo Snack needs to be created to demonstrate these new screens. In the meantime, please continue to refer to the Snack demo that follows: https://snack.expo.io/@michaelgill1969/dynamic-text-input-for-react-native