-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search by QR code option in register #3379
Conversation
...id/quest/src/main/java/org/smartregister/fhircore/quest/util/extensions/ContextExtensions.kt
Outdated
Show resolved
Hide resolved
Icon( | ||
imageVector = Icons.Filled.Clear, | ||
CLEAR, | ||
tint = Color.Gray, | ||
modifier = modifier.testTag(TRAILING_ICON_TEST_TAG), | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have the clear button at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor request: fix the padding on the icons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor request: fix the padding on the icons
What size is currently being used for fhircore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Further reviewing of the designs shared, it seems the qr-code icon gets hidden when the clear button is shown, and so I've reverted the change to match that
to match design
* 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>
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #3351
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file