-
Notifications
You must be signed in to change notification settings - Fork 534
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
Fixes #3169: Item selection interaction text change and checkboxes should be disabled on selection #4777
Conversation
As discussed during the meeting, there are some logic changes needed yet in the interaction view model. Please assign back once that's done @Akshatkamboj14. |
… ItemSelectionInteraction-text-change-and-checkboxes-should-be-disabled-on-selection
Hi @Akshatkamboj14, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
… ItemSelectionInteraction-text-change-and-checkboxes-should-be-disabled-on-selection
… ItemSelectionInteraction-text-change-and-checkboxes-should-be-disabled-on-selection
Will need to follow up with a code suggestion tomorrow. |
…checkboxes-should-be-disabled-on-selection
Ensure checkboxes have a disabled color.
PTAL at Akshatkamboj14#1 & the checklist for fixes and remaining things to do that I noticed as part of creating that PR. Merging it will automatically update your branch & show up on this PR. |
Hi @Akshatkamboj14, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Ensure items disable when hitting max.
… ItemSelectionInteraction-text-change-and-checkboxes-should-be-disabled-on-selection
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 @Akshatkamboj14! The PR pretty much LGTM, just had one nit.
Besides that, I think you have one comment open from yourself that will need to be closed if it's no longer valid, and I think the PR needs to be updated with the latest develop. Please assign back once those are done, the last comment is addressed, and CI is passing (since then the PR should be ready to merge).
app/src/sharedTest/java/org/oppia/android/app/player/state/StateFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/databinding/AppCompatCheckBoxBindingAdapters.java
Show resolved
Hide resolved
...rc/sharedTest/java/org/oppia/android/app/databinding/AppCompatCheckBoxBindingAdaptersTest.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 @Akshatkamboj14. This LGTM!
app/src/sharedTest/java/org/oppia/android/app/player/state/StateFragmentTest.kt
Outdated
Show resolved
Hide resolved
I believe this needs your review as well @rt4914. PTAL. |
Also @Akshatkamboj14 please update your PR description to include a proper explanation of what this PR is doing, and to include screenshots and/or videos per the 'UI-specific only PRs' section to show the changed behaviors for both checkbox enabled/disabled states and the new item selection label text. |
Hey @BenHenning I have updated the PR Description and added supporting screen recording, Thanks. |
Hey @rt4914 can you PTAL, its needs your review as well to get merged? |
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.
LGTM
Explanation
Fixes #3169
Fixes #3624
This PR is doing 2 things -
It's updating the textView based on the selection of checkboxes by the user, If the user has not selected any checkbox then the Text will be
Please select all correct choices.
, If the user has selected less than maxSelection then the text will beYou may select more choices.
and if the user has selected maxSelection then the text will beNo more than $maxSelection choices may be selected.
If the user has selected maximum checkboxes that can be selected, then the non selected checkboxes will be disbaled, and if the user unselects the checkbox or checkboxes, then all checkboxes will get enabled.
This is the link to the repository for the comparison of the StateFragmentTest.kt, to show that the same tests are failing on both branches(i.e. my feature branch and my develop branch)
https://github.com/Akshatkamboj14/Test-Comparison-For-StateFragmentTest.kt-oppia-android
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
issue.webm