-
Notifications
You must be signed in to change notification settings - Fork 283
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
Auto add authorities #587
Auto add authorities #587
Conversation
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
Tweak the text of the toggle UI. Also add a localization string for manual URL entry.
Several light changes to this: * The GPS filter toggle wasn't behaving properly * Made the entire toggle line look different and react to a touch Also: * Added localization string for the text that appears when entering URL manually (it was hard-coded)
I've looked at the ChooseProvider.js screen and it works well! Awesome work, @Patrick-Erichsen. I tweaked the UI and behavior a little bit on this PR branch. I haven't had time to verify the auto-subscription notification yet. |
Answering some of your questions:
NOTE: We need to switch to the CDN version of the YAML before we push this code to the app stores. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix this: typo in numAuthories in en.json
Signed-off-by: Patrick Erichsen <[email protected]>
Fixed - that same typo was copy/pasted in another file as well. Thanks for catching. |
The linter is failing due to an error on
Anyone mind if I just ignore that rule for those lines? I think it's meant to prevent actual module mocks - this is just mock data. |
@tstirrat - thoughts on this? |
Added |
a rule override is totally fine given that you're not double importing a module mock |
I think there's still some UI work to do on this. Feel free to remove the |
Based on the standup call today, I'm going to do a bit of refactoring on this:
|
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
Some contextual linking on a platform is better than none. So I'd be in favor of doing as much as possible here (but in another PR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing major, great stuff on this!
app/locales/en.json
Outdated
@@ -6,11 +6,19 @@ | |||
"authorities_desc": "Choose trusted healthcare authorities in your area to obtain exposure data. Either select a name from the global registry, or enter the web address provided by an authority which has implemented Safe Paths.", | |||
"authorities_input_placeholder": "Paste your URL here", | |||
"authorities_no_sources": "No data source yet", | |||
"authorities_new_in_area_title": "New Healthcare Authority In Your Region", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take screenhots of these new strings so we can upload to lokalise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where should we be placing these screenshots? This is used in a push notification - so we want a screenshot of that notification to upload to Lokalise?
app/locales/en.json
Outdated
@@ -51,6 +61,9 @@ | |||
"launch_notif_header": "Notifications will let you know if you cross paths with an infected person.", | |||
"launch_notif_subheader": "We won't bother you except to share updates on your potential exposure risks.", | |||
"launch_notification_access": "Allow notifications", | |||
"launch_authority_header": "Healthcare Authorities will give us the local data to know if you cross paths with an infected person.", | |||
"launch_authority_subheader": "Automatically subscribe to receive the latest updates from Healthcare Authorities in your area.", | |||
"launch_authority_access": "Health authority subscription", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like you're proposed update: Subscribe to nearby authorities
. I think that along with the longer subtext in that screen should be enough context for a user. Maybe this is something, in particular, we can ask the testers to give us thoughts on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diarmid could probably weigh in ahead of time too
Signed-off-by: Patrick Erichsen <[email protected]>
Signed-off-by: Patrick Erichsen <[email protected]>
…ivate-kit into auto-add-authorities
@tstirrat I feel pretty solid at this point. Think it's ready to get in front of some testers ASAP. |
Signed-off-by: Patrick Erichsen <[email protected]>
I'll be doing a technical and functional review tonight. I think we need to open the discussion on whether or not we've covered this well enough for inclusion in v1.0.1. |
Signed-off-by: Patrick Erichsen <[email protected]>
e2e tests are failing right now due to the missing Haitiain language strings. Once this is merged I'll open a new PR to only run the full suite of language tests on a merge to fix this issue. |
@kenpugsley we checked with Diarmid and there were no specific blockers getting this in. One desired enhancement after this, is to immediately auto sub to any nearby HCAs when choosing the auto option, but this requires a refactor of the location tracking stuff as we've mentioned elsewhere (a non trivial job). |
@Patrick-Erichsen I think the label is too long on the onboard 5 screen: I fixed it so it wraps if too long, but was not quire sure what to do with the vertical height of the Onboarding5 screen. if we can keep the checkbox line to a single line, it's not quite ideal but it would probably prevent much of this wrapping: (galaxy nexus emulator) |
Still a problem on nexus4: Even if I make it single line :( I suspect we could merge and fast follow with some kind of text hack that uses less text on small devices.... as long as you pretty pretty pinky swear to look into it straight after I'd still love to get this PR in to prevent as many merge conflicts etc. |
Signed-off-by: Patrick Erichsen <[email protected]>
Pushed up a fix to instead make the subheader text width |
If you make a visual change provide a screenshot so that I don't have to check out everything and rebuild just to see the text tweak you did :) |
* develop: Fix "plural" keys, add i18n checks for new PRs (#648) Auto add authorities (#587) Clean up more eslint issues (#678) Make nav back arrow color theme aware (#686) yarn run-ios now runs pod install (#681) Fix settings icon on iOS 12, replace with new icon (#687) Feature/creole tests (#690) Fix formatting EULAs (#671) [i18n] Don't translate terms_of_use_url (#642) Fix background to run to edge of screen on iOS (#682)
Description
This PR creates a new notification and filtering feature for Healthcare Authorities in a user's location.
Issue
#425
How to test
Unit
npx jest HCAService.spec.js
Integration
Choose health authority
screen and press theAdd Trusted Source
button. Press the GPS filter switch and confirm that all health authorities are removed (the current live yaml file does not include abounds
field so by default there will be no authorities in your area)Comments / Concerns
BackgroundTaskService
that will send a push notification to the user every 12 hours if there is an authority in their region that they haven't subscribed to.BackgroundTaskService
(ours runs every 12 hours to check for intersections), so I'm not sure how else we could check at a pre-defined interval.Choose health authority
screen. However, the only way to do that on iOS as far as I can tell is through the deprecatedalertAction
param. I believe that we can do this for Android through theaction
field for local notifications, but I'm not sure if we want that inconsistency between platforms.raw.githack
, and in general, is there a way that we're going to force authorities to include bounds? And in the case where a user uploads an authority with theAdd authority via URL
option, will we just allow them to not include bounds?Translation Notes
There are several new strings for translation.