-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new QR reader widget support (#3367)
* Override barcode layout to contain required missing views * Update qr code scanning implementation * Document qr_code widget extension * Isolate qr scanning functionality to QrCodeCameraDialogFragment * Use QrCodeScanUtils to abstract barcode scanning implementation * Support search by QR code config in register search * Move clear button to show as last in register search * Hide qr/barcode icon when showing clear text icon to match design * Wrap search text in a SearchQuery class to track mode of search * Support going to profile directly after QR scan for single result * Add search by QR code option in register (#3379) * Support search by QR code config in register search * Move clear button to show as last in register search * Hide qr/barcode icon when showing clear text icon to match design * Refactor replace 'barcode' with 'qrCode' * Add relevant tests * Upload ci test results to get info on test fails * Refactor qr code single result action to support available workflows * Upload test results as ci artifacts to save test logs * test(EditTextQrCodeViewHolderFactory): Fix InstantionError * Update qr-code widget extension to use codeableConcept * Add ActionTrigger ON_SEARCH_SINGLE_RESULT * Fix indefinite loop on ActionConfig handleClick * Extend QR Code widget to support adding multiple QR codes * Add kdoc to UiSearchQuery data class * Fix test compilation errors * Resolve initial review comments * Fix qr code scan when repeat false Questionnaire item with linkId qr-code-uuid-widget does not allow repeated answers * Fix ON_SEARCH_SINGLE_RESULT action trigger for profile launch * Rename ConfigExtensionsTest to ConfigExtensionsKtTest to fix coverage ?? * Update tests for EditTextQrCodeItemViewHolderFactory * Update tests for EditTextQrCodeViewHolderFactory * Resolve requested changes * Fix profile launch always redirecting on single search result * Revert to use find since Iterable#find internally seems to just use firstOrNull * Add ui android tests for RegisterScreen * Refactor test for QrCodeScanUtils#scanQrCode --------- Co-authored-by: Peter Lubell-Doughtie <peter@ona.io> Co-authored-by: Allan Onchuru <16164649+allan-on@users.noreply.github.com>
- Loading branch information
1 parent
8711045
commit 9f50d19
Showing
45 changed files
with
2,526 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.