-
Notifications
You must be signed in to change notification settings - Fork 315
Migrate QuestionnaireEditRecyclerview to compose #2884
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
base: master
Are you sure you want to change the base?
Migrate QuestionnaireEditRecyclerview to compose #2884
Conversation
Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
- Fixed duplicate ids when using repeated groups - Fixed issues with progress indicator upon scroll - Fixed issues with showing validation errors - Fixed issues with state management on individual lazy column rows that renders form widgets. Tag the created views with the viewholder, and call viewholder bind method to update view content. Signed-off-by: Elly Kitoto <[email protected]>
Every field in a questionnaire is expected to have a unique linkId. Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireFragment.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Outdated
Show resolved
Hide resolved
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.
please also check the reason we're still keeping the edit adapter class.
if it's still being used by something, like a utility, just refactor it and only keep the part that's being used.
View holder tagging on on composable views will no longer be necessary once all the views are migrated to compose. Signed-off-by: Elly Kitoto <[email protected]>
In order to prevent LazyColumn id name collisions when repeated groups are nested arbitrarily deep, the questionnaire ID is generated from the string derived from tracking all the accumulated paths from all ancestor repeated groups through recursive calls. Signed-off-by: Elly Kitoto <[email protected]>
Some code from the |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2851
Description
Clear and concise code change description.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)
Screenshots (if applicable)
Checklist
./gradlew spotlessApplyand./gradlew spotlessCheckto check my code follows the style guide of this project../gradlew checkand./gradlew connectedCheckto test my changes locally.