Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Remove the "0 days left" text that is shown after the 14 day upload cycle is finished #808

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

smcmurtry
Copy link
Collaborator

Closes #802. This fix was arrived at after discussion w/ @katewilhelm.

Homescreen shown after the user uploads for the last time:

Before (Ontario):
Screen Shot 2020-07-20 at 4 27 45 PM

After (Ontario):
Screen Shot 2020-07-20 at 4 16 01 PM

Menu shown after the user uploads for the last time:

Before:
Screen Shot 2020-07-20 at 4 29 55 PM

After:
Screen Shot 2020-07-20 at 4 18 43 PM

Details on local testing

To test this locally, I modified the getCurrentDate fn. And I commented out the server request reportDiagnosisKeys on @henrytao-me's advice since it was giving me a 400 error. Here is what I observed before making this PR:

Today: July 20th
-> I upload a one time diagnosis key and agree to share my "random codes"
homescreen: "Thank you" screen, "For the next 13 days you'll get a daily notification..."
menu: 13 days left

-> I change the source code and fast forward to July 31st
homescreen: "Upload random codes" screen
menu: 2 days left

-> I upload my random codes
homescreen: "Thank you" screen, "For the next 2 days..."
menu: 2 days left

-> I fast forward to Aug 1st
homescreen: "Upload random codes" screen
menu: 1 day left

-> I upload my random codes
homescreen: "Thank you" screen, "Tomorrow you'll get your last notification..."
menu: 1 day left

-> I fast forward to Aug 2nd
homescreen: "Upload random codes" screen
menu: 0 days left

-> I upload my random codes
homescreen: "Thank you" screen, "For the next 0 days you'll get a daily notification..."
menu: 0 days left

-> I fast forward to Aug 3
homescreen: I am back to monitoring: "No exposure detected" screen
menu: "Diagnosed w/ Covid? enter your one-time key..."

@smcmurtry smcmurtry requested a review from a team as a code owner July 20, 2020 22:30
@smcmurtry smcmurtry requested a review from timarney July 20, 2020 22:31
@timarney
Copy link
Member

@smcmurtry let's review this today.

@smcmurtry smcmurtry merged commit 35b4954 into master Jul 21, 2020
@smcmurtry smcmurtry deleted the issue/802/0-days-left branch July 21, 2020 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User sees "0 days left" text at the end of their 14 day upload cycle
2 participants