Commit Graph

104 Commits

Author SHA1 Message Date
Ryan Slobojan cb16adefc1 Added issuer display names, and NS issuer info (Thanks @corrmaan!)
* All issuers now have display names which will go onto generated cards
* Some other minor cleanup as part of a pending code change for SHC
  receipt support
2021-10-12 11:29:43 -04:00
Ryan Slobojan 8376ea6bb0 Merge remote-tracking branch 'origin/main' into shc-refactoring
* origin/main:
  add reference to setup.md
  Add Alberta's public key
2021-10-10 19:06:41 -04:00
Ryan Slobojan bdc3a052a0 Further SHC refactoring
* Standardized handling of SHC data to generate receipt objects
* Added examples of decoded SHC data for ease of reference and for knowledge-sharing
* Refactored decoder to make logic more standardized for cross-region decoding, and
   eliminated most special-case handling
* Added rejection of non-verified SHC issuers for card generation
* Added rejection of non-COVID SHC cards for card generation
2021-10-10 19:05:54 -04:00
Ryan Slobojan 1ecb61f2ca Added documentation around what code to delete Oct. 22nd to turn off old-style QR code generation 2021-10-10 11:51:27 -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
Kyle Richelhoff f4a9515803
Add Alberta's public key 2021-10-07 23:43:57 -06: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 38a02e5d00 Add in the data we have so far on AB's SHC impl
* Their key will eventually show up at https://skphr.prd.telushealthspace.com/.well-known/jwks.json
   however they appear to have misconfigured CloudFlare and that URL redirects to /home, which
   means none of the SHCs issued by AB to date can be validated :(
2021-10-06 18:02:13 -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 26ce0bb965 Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-10-04 20:24:45 -04:00
Jason Liu 1f57403cd7 name fix for photo receipts 2021-10-04 20:23:43 -04:00
Ryan Slobojan 157c11bcd3 Fix for pdfjs type imports
* Also added a bit more about Android at the top of the homepage
2021-10-04 19:19:06 -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 7b17a87edf tuned the dates heading / details a bit. 2021-10-03 22:34:28 -04:00
Billy Lo 22101f9a4b added expiry date to pass 2021-10-03 22:24:30 -04:00
Billy Lo bbb81c6920 added expiration date and default to ON logic 2021-10-03 21:51:49 -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 6f45d6c690 Merge branch 'main' into shc-support 2021-10-01 09:15:52 -04:00
Billy Lo 4957bd8f55 Merge branch 'shc-support' of https://github.com/billylo1/covidpass into shc-support 2021-10-01 03:23:06 -04:00
Billy Lo 32ea1edbae pre-merge with main updates 2021-10-01 03:23:02 -04:00
Ryan Slobojan 9f2e9b50d7 Added Saskatchewan SHC issuer info 2021-09-30 23:57:50 -04:00
Ryan Slobojan 75c25c1c5b Stop splitting vaccinename so we can detect AZ correctly
* Because we were splitting on space, "COVID-19 COVISHIELD"  was being converted to
  just "COVID-19" which broke AZ detection for Covishield
2021-09-30 18:27:20 -04:00
Billy Lo d2c824f129 Merge branch 'main' into shc-support 2021-09-30 17:44:17 -04:00
Billy Lo 1bfa09de47 special handling of shc code from QC 2021-09-30 17:42:36 -04:00
Billy Lo 9c2130ba2d specify error correction level of QR code in photos to make it compatible with BC scanner app 2021-09-30 02:24:24 -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 2c4af9e5e1 Bump build number 2021-09-29 20:56:17 -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
Billy Lo 52d27089cc verifyJWS working now... picked up latest issuer code 2021-09-29 15:35:02 -04:00
Billy Lo 8c393e110e 1.9.11 - released to prod. 2021-09-29 12:24:06 -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 651ad32004 HOT FIX FOR PDF FILE CHANGE 2021-09-29 08:41:58 -04:00
Billy Lo f21950577c added SETUP.md and default environment config files 2021-09-27 22:36: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
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
Billy Lo 8d8d637645 1.9.8 - layout fixes to Step 3 bullets 2021-09-25 23:23:25 -04:00
Billy Lo 3574b4490d 1.9.7 2021-09-25 23:09:46 -04:00
Billy Lo 4c2a68d6e0 updated build # 2021-09-24 21:47:26 -04:00
Ryan Slobojan 7c22310356 Fix double-encoding breaking generated URLs
* We encoded spaces once to %20, and then a second time to %2520 :(
2021-09-24 15:15:27 -04:00
Evert Timberg a09103797b
Fix URI encoding for indivual params 2021-09-24 12:17:29 -04:00