Commit Graph

113 Commits

Author SHA1 Message Date
Ryan Slobojan f35e9dbfb0 Lots of messaging updates 2021-10-15 10:47:32 -04:00
Billy Lo d1f70167b6 deployed version - 1.10.0 after merge and a few fixes 2021-10-14 23:07:52 -04:00
Ryan Slobojan e2b0dcf694 Completed SHC implementation
* We now register SHCs using a different format than old-style ON cards
* server-side register function has been updated to split out old-style and
  SHC registrations and put them into different collections so we can easily
  delete old-style data when the code path is turned off
* Record SHCs (minus PII) from unexpected issuers so that we can
  proactively learn about and react to new SHC issuers or format changes
* Load API config exactly once and reuse it rather than reloading on every
  card generation
2021-10-14 10:32:02 -04:00
Ryan Slobojan 79150bc3ee Implemented SHC-specific Wallet cards
* Photos and Wallet cards have white background and black text
  to make them instantly visually differentiable from current pass
* Not possible to accurately determine vaccinated or not between
  provinces, so no decoration is added to the card
* Name only on card, to encourage scanning of proof-of-vaccination
  which leads to less fake documents (if people look at what's on
  the card and don't bother scanning, then if the QR code is garbage
  they will never know; field experience indicates scanning is rare)
* This is now ready for review, final testing, and deployment
* TBD: Add new datastore for tracking observed SHC issuers and
  vaccine data, to faciliate troubleshooting
2021-10-13 17:47:06 -04:00
Ryan Slobojan d24e218f8c WIP: SHC code handling refactoring
* QR code rendering for SHCs fixed for images - had to use
  Nuintun QRcode lib and render in 2 chunks (byte and numeric),
  was not possible to do this with zxing
* Add support for image file processing (Thanks upstream!)
* Added support for scanning all pages in a PDF for SHC codes
* Simplified ON receipt detection algorithm (well-known PDF info)
* Re-hide render canvas at bottom of page
* Minor README updates
* TBD: Handle multi-jurisdiction SHCs cleanly (not all data is being
  properly passed along at the moment leading to missing card data)
* TBD: blow up if invalid issuer detected in SHC (currently allows
  card creation even with invalid issuer)
2021-10-08 23:05:58 -04:00
Ryan Slobojan 06e360df87 Send Promise reject as an Error, not a string
* Also filter from Sentry reporting
2021-10-07 20:35:57 -04:00
Ryan Slobojan 384624605a Try to improve handling on image-only PDFs which are detected as QC SHC PDFs
* Also remove .png from select box since we don't actually support it right now
2021-10-06 22:05:29 -04:00
Ryan Slobojan d0eafe76c8 Added more Sentry message filtering, improved PDF metadata analysis 2021-10-06 18:00:56 -04:00
Ryan Slobojan 5fc81b82a8 More Sentry fixes and app error handling
* Bump lockfile ver of pdjjs-dist to match package.json definition
* Also added dev env wiring code for Vagrant VM
* Increment app version to 1.9.19
* Assorted logging cleanup and debugging addition around QC and BC SHC codes to help improve SHC code detection
2021-10-06 16:24:35 -04:00
Ryan Slobojan 99c66260a7 Lots of Sentry error handling cleanup (don't log known situations)
* Also fixed duplicated words on multi-dose selection
* Bump rev to 1.9.18
2021-10-06 13:10:36 -04:00
Ryan Slobojan 58739b8212 Fix typo in expiry date (10-23 -> 10-22), bump page rev 2021-10-05 12:12:42 -04:00
Jason Liu 3c8653b5d3 updated save photo headings and added expiry 2021-10-04 20:09:54 -04:00
Ryan Slobojan 36f7595fca
Merge pull request #27 from Coteh/main
Fix bug preventing file selection on iPhone 6 iOS 12.5
2021-10-04 17:21:40 -04:00
Billy Lo bbb81c6920 added expiration date and default to ON logic 2021-10-03 21:51:49 -04:00
Coteh 82a1b85b24 Fix input element not accepting PDFs on older iOS devices
see https://stackoverflow.com/a/57163798 for more information on this solution
2021-10-03 21:42:07 -04:00
Coteh dfb7aa39c6 Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
Replaced with a margin that closely matches the spacing that was there originally.
2021-10-03 21:29:26 -04:00
Coteh 0f31cdd252 Merge remote-tracking branch 'origin/main' into main 2021-10-03 12:23:52 -04:00
Billy Lo f6cdcada1c cleaned up console logging to be ready for main branch merge 2021-10-01 09:16:28 -04:00
Billy Lo 32ea1edbae pre-merge with main updates 2021-10-01 03:23:02 -04:00
Billy Lo d2c824f129 Merge branch 'main' into shc-support 2021-09-30 17:44:17 -04:00
Billy Lo 0e53240dd0 functional shc (including photo) 2021-09-30 00:26:15 -04:00
Billy Lo 0fe177dffa add to wallet working now - working on photos portion 2021-09-29 21:39:11 -04:00
Ryan Slobojan 4576b3bd3b Increment public build number 2021-09-29 21:00:02 -04:00
Ryan Slobojan f0c5a5622e Updated Covishield to detect as AZ
* Also made photo filename dynamic rather than fixed to avoid
  save conflicts
2021-09-29 20:51:44 -04:00
Billy Lo 66e450a2ed Merge branch 'main' into shc-support 2021-09-29 16:13:13 -04:00
Jason Liu b90cabb5d5 new receipt handling
- dynamically load receipt payload into obj keyed by dose number
- select dose number option based on receipt
2021-09-29 11:19:24 -04:00
Jason Liu d317514dd8 Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-09-28 03:02:24 -04:00
Jason Liu cdd09af07e moved warning messages to top of page 2021-09-28 03:02:16 -04:00
Jason Liu e659c5ab30 added warning color to banner 2021-09-28 03:02:02 -04:00
Billy Lo 9f485787c9 1.9.9 pushed to prod
- simplified instructions
- button disable fix
- switch to a different sentry account so we can see error logs
- thx everyone!
2021-09-27 16:05:33 -04:00
tvalenta1 d8969f568c SHC - Smart Health Card support. Parse QR code from PNG image and parse it into Payload 2021-09-26 22:36:27 -07:00
Evert Timberg 3552637450 Show nicely formatted text 2021-09-26 21:27:19 -04:00
Coteh 1b2d5309b8 Add support for iPhone 6 iOS 12.5
- Using the legacy build of PdfJS allows for the Select File button to open the file dialog on iPhone 6 12.5.4. It also fixes the Ontario Ministry of Health button and an error that appears due to PdfJS import when opening the app in dev mode.
- Fix selected files not being used when selected on iOS devices. Safari on these devices currently does not support "input" event on selected file change. "change" event should be used to support these devices. https://stackoverflow.com/a/58342757 https://caniuse.com/input-event
2021-09-26 21:19:59 -04:00
Evert Timberg 8a33d2097e Create custom hook to get pass count 2021-09-26 20:06:24 -04:00
Ryan Slobojan f4010d8918 If you don't import things and define all your constants, you get build errors. Who knew. :| 2021-09-26 19:18:02 -04:00
Ryan Slobojan 7fc971ab79 Moved pass count from bottom of page to title for more visibility 2021-09-26 19:05:02 -04:00
Evert Timberg 5bc6c93d13 Block buttons when requests are running 2021-09-26 08:54:09 -04:00
Billy Lo 8d8d637645 1.9.8 - layout fixes to Step 3 bullets 2021-09-25 23:23:25 -04:00
Billy Lo 72f1a95fd5 Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-09-25 23:09:49 -04:00
Billy Lo 3574b4490d 1.9.7 2021-09-25 23:09:46 -04:00
Jason Liu c47091684a open ontario health link in new tab 2021-09-25 22:40:32 -04:00
Ryan Slobojan d1ca278fde
Merge pull request #15 from samuelyeungkc/main
Enable Add to Wallet button for non-iOS devices with warning messages
2021-09-25 22:27:09 -04:00
Ryan Slobojan 24d3c69ff0 Updated Apple Wallet PKPass to dynamic name
* Changing filename should hopefully prevent duplication errors on some devices
* Filename includes name, dose, and vaccine to make path collisions less likely
2021-09-25 21:47:48 -04:00
Billy Lo 80e3ee6849 1.9.6 - brief updates for users for Sept 24 2021-09-24 19:08:18 -04:00
Samuel Yeung cd5fd9a8b6 check error message for null or empty as well in addition to undefined 2021-09-24 13:19:33 -04:00
Samuel Yeung 6aafd987b6 check warning message for null or empty as well in addition to undefined 2021-09-24 13:19:10 -04:00
Samuel Yeung 0650e89a1f reword warning message 2021-09-24 13:18:15 -04:00
Samuel Yeung 98c60aa3e7 enable non-iOS device to add to wallet with warning message 2021-09-24 01:53:16 -04:00
Jason Liu 93bd9690a1 Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-09-23 22:09:52 -04:00
Jason Liu aa1ea4a507 more FAQ changes 2021-09-23 22:09:48 -04:00