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

latest from april 21 #26

Merged
merged 36 commits into from
Apr 21, 2020
Merged

Conversation

alpita-masurkar
Copy link
Owner

Description

How to test

summetj and others added 30 commits April 17, 2020 11:11
Added the ability to enter a "debug" mode where an artificial intersection is
created.  This happens by:
* Going to the About screen
* Tapping on the Team icon 4 times
* You can also return and tap 4 more times to toggle.

When in this debug mode, faux intersection data is placed in the crossing
arrays.  This will either clear automatically during the 12-hour calculation,
or can be cleared by the tester by returning to the About box and repeating
the 4-tap.
* same intersect code as RC

* adding a TODO to implement more scalable processing

* add unit tests.  Lots of minor fixes for edge cases

* update to ExposureHistory to account for bins having exposure time in ms

* update debug mode for mins in millis, as well as sprinkling in a few no-data days

* bring debug mode in alignment on max exposure window constant

* wip

* change bin logic to handle DST change, update tests

* fix disableDebug mode

Co-authored-by: Ken Pugsley <>
Co-authored-by: Tim Stirrat <[email protected]>
* Tweaks to better support small screens

This fixes issues on phone screens as small as 320 pixels wide in various
parts of the application.
* Navigation bar text was too long (even in English) under the Choose Health Authority.
  When the screen width is < 400 pixels the font-size begins to scale.  It also has enforced
  horizontal padding to prevent overlap with the back arrow -- text will now wrap instead of
  overlap.  This change also helps with some translations which make it even longer.
* The Exposure History legend was too long.  I truncated the text "No exposure" to
  "No known" and the "Possible Exposure" to just "Possible"
* The "Choose health authority" screen description text was being truncated.  I changed
  the flex size of the list below it form 3 to 1 and tweaked the font size.  This
  comfortably shows two entries even on a 320x533 screen in the emulator before that list
  requires scrolling, which will probably account for 90%+ of the use cases.
* Slightly shrank the text in the News title for each webview and centered it so it looks
  better if it wraps.

 ## Technical Notes ##
It seems like modifying Typography.js to scale might be a good idea, but I didn't want to
go that big with this PR.

 ## Translation Notes ##
The text for the two entries "Possible exposure" and "No exposure" have changed.  It is
important that those along with "No data" are kept very short, as they appear side-by-side.
For example, the current Kreole translation for "No data" is "Pa gen okenn done" and
gets cut off even with the short English labels for the other two.

* Getting the "Steve" out

Debugging message slipped in.

* Remove test code left in accidentally
@alpita-masurkar alpita-masurkar merged commit 1aad39a into alpita-masurkar:develop Apr 21, 2020
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.