1
0
mirror of https://github.com/covidpass-org/covidpass.git synced 2025-02-23 06:57:40 +01:00

123 Commits

Author SHA1 Message Date
Ryan Slobojan
e65b85ba7b Attempted fixes to timing issues in image save
* Delay removal of QR codes until second card is generated, rather than right after first
* Don't hide image HTML until after save loading is complete
* Await unawaited toBlob call in image save
2021-10-17 23:49:57 -04:00
Ryan Slobojan
e93de3243a Text updates, Rev 2.1.0 release 2021-10-17 17:58:48 -04:00
Ryan Slobojan
cdd8317bd5 Updated iOS 15 detection and debugging messages 2021-10-17 14:56:43 -04:00
Ryan Slobojan
8e83c65f6c Added direct camera-scan support for creating QR codes
* SHC QR codes can now be scanned directly from the camera, eliminating the need for
  error-prone screenshotting or photos - the scanner will auto-detect an SHC QR code
  and proceed to the next step
2021-10-17 13:30:18 -04:00
Billy Lo
24ec6b062b add sentry logging for ios15 log errors 2021-10-17 11:58:10 -04:00
Billy Lo
04a1f697ce enhancing ios15 check with user agent 2021-10-17 11:56:54 -04:00
Billy Lo
b179c19e3d 2.0.5 - update for iOS 15 validation 2021-10-16 14:54:16 -04:00
Billy Lo
8dd93e7a8b user experience fix for mobile browser
Many user struggles to navigate back to grassroots after a new window is open (in step 1 or video demo).

Mobile chrome/firefox Users cannot use back button to return (this is ok on Safari because Apple is smart to allow back button to continue to work (despite it's a different window)
2021-10-16 06:00:36 -04:00
Ryan Slobojan
7ca5a469b2 Added support for new unreleased Manitoba SHC QR codes as well as NWT, NJ, HI, UT, and VA
* Also ignore now-common SHC warning message in Sentry
2021-10-15 22:32:38 -04:00
Ryan Slobojan
fdc896f7ca Lots of text and messaging updates 2021-10-15 20:28:35 -04:00
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