Skip to content
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

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

LZRS
Copy link
Contributor

@LZRS LZRS commented Jul 11, 2024

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #3351

Engineer Checklist

  • I have written Unit tests for any new feature(s) and edge cases for bug fixes
  • I have added any strings visible on UI components to the strings.xml file
  • I have updated the CHANGELOG.md file for any notable changes to the codebase
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
  • I have built and run the FHIRCore app to verify my change fixes the issue and/or does not break the app
  • I have checked that this PR does NOT introduce breaking changes that require an update to Content and/or Configs? If it does add a sample here or a link to exactly what changes need to be made to the content.

Code Reviewer Checklist

  • I have verified Unit tests have been written for any new feature(s) and edge cases
  • I have verified any strings visible on UI components are in the strings.xml file
  • I have verifed the CHANGELOG.md file has any notable changes to the codebase
  • I have verified the solution has been implemented in a configurable and generic way for reuseable components
  • I have built and run the FHIRCore app to verify the change fixes the issue and/or does not break the app

@LZRS LZRS self-assigned this Jul 11, 2024
@LZRS
Copy link
Contributor Author

LZRS commented Jul 11, 2024

@LZRS LZRS requested review from pld, allan-on and ellykits July 12, 2024 08:11
@LZRS LZRS marked this pull request as ready for review July 12, 2024 08:11
Comment on lines 203 to 209
Icon(
imageVector = Icons.Filled.Clear,
CLEAR,
tint = Color.Gray,
modifier = modifier.testTag(TRAILING_ICON_TEST_TAG),
)
}
Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Contributor Author

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?

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

@LZRS LZRS requested a review from ellykits July 12, 2024 10:07
@pld pld merged commit c425132 into update-barcode-scanning-factory Jul 16, 2024
@pld pld deleted the qr_code-search branch July 16, 2024 18:53
ellykits pushed a commit that referenced this pull request Aug 7, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants