Configure Review layout for SDC catalog application #2783
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2777
Description
This change configures Review layout for SDC Catalog Application. It consist of the following updates:
enableReviewMode
to Layout enum underLayoutListViewModel.kt
and pass it astrue
for the REVIEW enum value along withlayout_review.json
to render questionnaireDemoQuestionnaireFragment.kt
and use it to show Review Page when its value istrue
layout_review.json
to render questionnaire properlyAlternative(s) considered
N/A
Type
Bug fix
Screenshots (if applicable)
![Screenshot 2025-02-03 at 1 36 26 PM](https://private-user-images.githubusercontent.com/16497903/409014129-f7326c7c-6421-4e3e-81f1-63292b6462ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODgzNTAsIm5iZiI6MTczOTM4ODA1MCwicGF0aCI6Ii8xNjQ5NzkwMy80MDkwMTQxMjktZjczMjZjN2MtNjQyMS00ZTNlLTgxZjEtNjMyOTJiNjQ2MmNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE5MjA1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxODZjODBiY2FjMzU0Y2JjNWUzZDc5ZTNlMjA0ZTEyOTBhNzRkYjFmNjE2OTVlODZmNGUyMzM3ZWU0OTA5YmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._7GmfRj49ngfFmJmQCks6MOiEWVO0g_DgpTb6IJyoi0)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.