Commit Graph

70 Commits

Author SHA1 Message Date
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 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
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 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 0fe177dffa add to wallet working now - working on photos portion 2021-09-29 21:39:11 -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
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
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
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
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 aa1ea4a507 more FAQ changes 2021-09-23 22:09:48 -04:00
Jason Liu eaeca0dd9f FAQ touch ups 2021-09-23 20:27:52 -04:00
Jason Liu 4c21ed83ec created FAQ redirect card 2021-09-23 20:12:07 -04:00
Jason Liu ae12a7eb9c added error handling in an array
added error message for unsupported browsers
2021-09-23 16:49:07 -04:00
Billy Lo 088c2de84c 1.9.2 - Date of Birth added to pass, commercial vaccine name in brackets
For pass and photos
2021-09-23 11:59:20 -04:00
Billy Lo 67d56c942d v1.9 - added support for versioning of registration functions to allow concurrent operations of v.Current and v.Next 2021-09-23 05:10:11 -04:00
Billy Lo 114b718dbf Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-09-21 23:18:34 -04:00
Billy Lo 13406b688e added some extra debug code to troubleshoot Object Not found problem. 2021-09-21 23:17:45 -04:00
Billy Lo 9602bdbaf6
Merge pull request #6 from billylo1/more-logging-for-generate-errors
More logging for sentry to track down errors
2021-09-21 20:45:08 -04:00
Billy Lo ec11d0614d minor fixes to handle J&J and iOS Chrome issue...
can't support iOS Chrome right now... lots of strange behaviors.
2021-09-21 20:31:52 -04:00
Evert Timberg ed415a5c69 More logging for sentry to track down errors 2021-09-21 20:01:38 -04:00
Billy Lo 645a05bc9b remove safari check 2021-09-21 16:26:35 -04:00
Billy Lo 4d23b017fc work in progress for shc-support 2021-09-21 10:38:24 -04:00
Billy Lo 13a07de0e0 1.8 finally working 2021-09-19 12:21:59 -04:00
Billy Lo 37d8ed99e4 1.7 2021-09-14 20:33:27 -04:00
Billy Lo 6fe6a0d07c keep both buttons enabled all the time 2021-09-10 19:11:57 -04:00
Billy Lo 6303637f9a clean up for Save as Photos release 1.6 2021-09-09 17:08:49 -04:00
Billy Lo 6b4cfaf42c Save to Photos is finally working on iOS/Android/Mac/Windows 2021-09-09 16:24:24 -04:00
Billy Lo fd35bd12e9 patch for iOS 14.0, 14.1 and 13.7 issue on arrayBuffer 2021-09-09 12:45:21 -04:00