Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Exposure History screen #760

Merged
merged 9 commits into from
Dec 15, 2020
Merged

Conversation

devinjameson
Copy link
Contributor

@devinjameson devinjameson commented Dec 14, 2020

Why: we would like to better inform users about their exposure information.

This commit:
Introduces two major changes.
Firstly, this commit moves the most relevant information from the exposure details screen to the exposure history screen. We decided to do this because the exposure detail screen currently does not provide any additional info on the exposure and always has the same content regarding next steps and health recommendations, regardless of the exposure. For this reason, it makes more sense to include this information on the main exposure history screen if the user has had any exposures within the past 14 days.
Secondly, this commit introduces an exposure summary at the top of the exposure history screen, which informs the user how many days remain in their recommended quarantine period if they have a recent exposure.
Fixes an issue that caused the Exposure History screen to render more often than necessary, by applying useCallback to the refreshExposureInfo function in the ExposureContext.

Co-Authored-By: John Schoeman johnschoeman1617@gmail.com
Co-Authored-By: Matt Buckley matt@nicethings.io

Before After
Simulator Screen Shot - iPhone 12 Pro - 2020-12-14 at 18 09 28 Simulator Screen Shot - iPhone 12 Pro - 2020-12-14 at 18 09 07

@devinjameson devinjameson changed the title work in progress. Refactor Exposure History screen Dec 14, 2020
Copy link
Contributor

@johnschoeman johnschoeman left a comment

Choose a reason for hiding this comment

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

LGTM

@devinjameson devinjameson merged commit ffcf38c into develop Dec 15, 2020
@devinjameson devinjameson deleted the jts-dj-mb-quaranteen-days branch December 15, 2020 00:10
tokumori pushed a commit to AlohaSafe/gaen-mobile that referenced this pull request Dec 31, 2020
Why: we would like to better inform users about their exposure information.

This commit:
Introduces two major changes.
Firstly, this commit moves the most relevant information from the exposure details screen to the exposure history screen. We decided to do this because the exposure detail screen currently does not provide any additional info on the exposure and always has the same content regarding next steps and health recommendations, regardless of the exposure. For this reason, it makes more sense to include this information on the main exposure history screen if the user has had any exposures within the past 14 days.
Secondly, this commit introduces an exposure summary at the top of the exposure history screen, which informs the user how many days remain in their recommended quarantine period if they have a recent exposure.
Fixes an issue that caused the Exposure History screen to render more often than necessary, by applying useCallback to the refreshExposureInfo function in the ExposureContext.

Co-Authored-By: John Schoeman johnschoeman1617@gmail.com
Co-Authored-By: Matt Buckley matt@nicethings.io
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.

2 participants