-
Notifications
You must be signed in to change notification settings - Fork 293
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
Review screen ux changes like font style, error icon, not answered text color etc. #1737
Conversation
After |
@santosh-pingle looks great. I've realized a new issue that I think we can improve for this view. The current design of "not answered" isn't clear enough and people might miss that this field hasn't been completed. My suggestion is to make that text red (error color) and to add an error icon. See below. |
… value is not answered.
@shelaghm |
@santosh-pingle Great! Can you check the red text color? It looks too light, it should be |
catalog/src/main/java/com/google/android/fhir/catalog/DemoQuestionnaireFragment.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireFragment.kt
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemHeaderViewUtil.kt
Outdated
Show resolved
Hide resolved
...pture/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemHeaderView.kt
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemHeaderViewUtil.kt
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemHeaderViewUtil.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/res/layout/questionnaire_item_simple_question_answer_view.xml
Outdated
Show resolved
Hide resolved
...roid/fhir/datacapture/views/QuestionnaireItemSimpleQuestionAnswerDisplayViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...roid/fhir/datacapture/views/QuestionnaireItemSimpleQuestionAnswerDisplayViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...capture/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemViewItem.kt
Outdated
Show resolved
Hide resolved
...roid/fhir/datacapture/views/QuestionnaireItemSimpleQuestionAnswerDisplayViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...roid/fhir/datacapture/views/QuestionnaireItemSimpleQuestionAnswerDisplayViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/res/layout/questionnaire_item_simple_question_answer_view.xml
Outdated
Show resolved
Hide resolved
datacapture/src/main/res/layout/questionnaire_item_simple_question_answer_view.xml
Outdated
Show resolved
Hide resolved
Addressing review comments, thanks! |
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/extensions/MoreHeaderViews.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/extensions/MoreHeaderViews.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/extensions/MoreHeaderViews.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.
thanks @santosh-pingle just one question below
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1716
Description
Issue : Question text font style of edit mode get applied to the question text in review mode.
Fix : Created separate header item view for review mode so that title medium text style can be applied.
Do not show the help button in the review mode.
Show an error icon and not answered text in the error color if question is not answered, refer ux design.
Move common functions of header view item to new file.
Apply style to item divider in review mode.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Feature
Screenshots (if applicable)
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.