Commit Graph

408 Commits

Author SHA1 Message Date
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
Billy Lo 03c49f3be9
add reference to setup.md 2021-10-09 08:45:24 -04:00
Billy Lo c5d455dfab scaffolding is all working - need to format stuff a bit before beta release 2021-10-09 08:39:17 -04:00
Marvin Sextro 4f749442d6
Merge pull request #110 from covidpass-org/localization
Norwegian Translation
2021-10-09 14:10:05 +02:00
Marvin Sextro c8897532da
Merge pull request #82 from unk1nd/main
Norwegian Translation
2021-10-09 14:02:42 +02: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 b5e09a7928
Merge pull request #36 from grepme/patch-1
Add Alberta's public key
2021-10-08 08:39:25 -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 3ae22de2f1
Merge pull request #32 from billylo1/polyfill-starts-with
Add a polyfill for String.prototype.startsWith
2021-10-05 12:56:28 -04:00
Ryan Slobojan 33af99c529 Merge remote-tracking branch 'origin/main' into polyfill-starts-with
* origin/main: (23 commits)
  Fix typo in expiry date (10-23 -> 10-22), bump page rev
  name fix for photo receipts
  updated save photo headings and added expiry
  Fix for pdfjs type imports
  tuned the dates heading / details a bit.
  added expiry date to pass
  added expiration date and default to ON logic
  Fix input element not accepting PDFs on older iOS devices
  Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
  cleaned up console logging to be ready for main branch merge
  pre-merge with main updates
  Added Saskatchewan SHC issuer info
  Stop splitting vaccinename so we can detect AZ correctly
  special handling of shc code from QC
  Failed to locate ByteRange is an expected error
  specify error correction level of QR code in photos to make it compatible with BC scanner app
  functional shc (including photo)
  add to wallet working now - working on photos portion
  verifyJWS working now... picked up latest issuer code
  SHC - Smart Health Card support. Parse QR code from PNG image and parse it into Payload
  ...
2021-10-05 12:34:35 -04:00
Ryan Slobojan c608b2d6a6
Merge pull request #33 from billylo1/improve-logging-when-not-digitally-signed
Failed to locate ByteRange is an expected error
2021-10-05 12:33:13 -04:00
Ryan Slobojan cdf3748317 Merge remote-tracking branch 'origin/main' into improve-logging-when-not-digitally-signed
* origin/main: (22 commits)
  Fix typo in expiry date (10-23 -> 10-22), bump page rev
  name fix for photo receipts
  updated save photo headings and added expiry
  Fix for pdfjs type imports
  tuned the dates heading / details a bit.
  added expiry date to pass
  added expiration date and default to ON logic
  Fix input element not accepting PDFs on older iOS devices
  Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
  cleaned up console logging to be ready for main branch merge
  pre-merge with main updates
  Added Saskatchewan SHC issuer info
  Stop splitting vaccinename so we can detect AZ correctly
  special handling of shc code from QC
  specify error correction level of QR code in photos to make it compatible with BC scanner app
  functional shc (including photo)
  add to wallet working now - working on photos portion
  verifyJWS working now... picked up latest issuer code
  SHC - Smart Health Card support. Parse QR code from PNG image and parse it into Payload
  Add support for iPhone 6 iOS 12.5
  ...

# Conflicts:
#	src/process.ts
2021-10-05 12:32:53 -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
Jason Liu 3c8653b5d3 updated save photo headings and added expiry 2021-10-04 20:09:54 -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 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 8eac24880d
Merge pull request #35 from billylo1/shc-support
Shc support
2021-10-01 09:23:44 -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 2e373857a2
Merge pull request #34 from billylo1/covishield-as-az
Stop splitting vaccinename so we can detect AZ correctly
2021-09-30 18:34:54 -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
Evert Timberg 754aaa0374 Failed to locate ByteRange is an expected error
We don't need to capture an exception for this, instead
just capture the message and move on.
2021-09-30 09:17:29 -04:00
Evert Timberg 9fac4dbcc4 Add a polyfill for String.prototype.startsWith
This error appears in Sentry and is likely occuring in older browsers
2021-09-30 08:34:33 -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 1db3095ec1
Merge pull request #31 from billylo1/covishield-as-az
Updated Covishield to detect as AZ
2021-09-29 21:17:57 -04:00
Ryan Slobojan 4576b3bd3b Increment public build number 2021-09-29 21:00:02 -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