-
Notifications
You must be signed in to change notification settings - Fork 533
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
Fix #161: Exploration player contentcard supports rich-text part [Blocked: #205] #245
Conversation
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.
Generally LGTM.
Do we need to introduce test cases in this PR?
app/src/main/java/org/oppia/app/player/state/StateFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
@veena14cs I suggest writing description related to the |
Test case related to what actually. |
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 @veena14cs. Why is this marked as do not merge? Is it just that it's blocked on #205? If so, please update the title to reflect it's blocked. "Do not merge" to me feels like it should never be merged, but in this case it's unclear.
I agree with @rt4914 that we should add a test case for this. Perhaps one test in StateFragment to verify it properly adds spannables to state with Oppia HTML content. That's expected behavior for StateFragment, and that test should fail if you removed the code being added here. That's then a worthwhile test since it's verifying the integration works.
Once that test is added, this change LGTM.
@BenHenning Actually, do not merge was added by me so that by mistake someone should not merge this because the |
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 @veena14cs! This LGTM!
app/src/main/java/org/oppia/app/application/ApplicationComponent.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/player/state/HtmlParserEntityTypeModule.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/player/state/StateFragmentContentCardTest.kt
Show resolved
Hide resolved
@veena14cs As per @BenHenning last comments I see that you were suppose to make So this PR still LGTM. De-assigning myself. |
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 suggested some nit changes PTL
app/src/main/java/org/oppia/app/player/state/StateFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/player/state/StateFragmentContentCardTest.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.
This branch is not merge compatible with develop. Please make this based off of develop before merging. I believe there are hidden changes in this branch that haven't yet been reviewed after cerateing #265.
Duplicate of this PR is create here #275 . |
Explanation
This PR depends on #205 which is under review and base off merge-fix which contains code of #205.
This PR is mainly to focus on exploration content card it contains implementation of html parser which parses HTML content. Even if the implementation of #205 changes it does not effect this PR.
Recyclerview Matcher file is added in this PR for testcase, It is already present in develop. Once #205 is approved and update to develop this file will be removed.