Skip to content

Conversation

@ellykits
Copy link
Collaborator

@ellykits ellykits commented Sep 17, 2025

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

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

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]>
@ellykits ellykits marked this pull request as ready for review October 2, 2025 13:01
@ellykits ellykits requested a review from a team as a code owner October 2, 2025 13:01
@ellykits ellykits requested a review from MJ1998 October 2, 2025 13:01
Signed-off-by: Elly Kitoto <[email protected]>
@github-project-automation github-project-automation bot moved this from New to PR under Review in Android FHIR SDK Oct 8, 2025
Copy link
Collaborator

@jingtang10 jingtang10 left a 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]>
@ellykits
Copy link
Collaborator Author

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.

Some code from the QuestionnaireEditAdapter is used in QuestionnaireReviewAdapter that is refactored in a separate PR. The code will be deleted once this PR is merged #2881.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: PR under Review

Development

Successfully merging this pull request may close these issues.

Replace Questionnaire Edit RecyclerView with LazyColumn

3 participants