-
Notifications
You must be signed in to change notification settings - Fork 554
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 #387: Concept card linking #731
Conversation
val imageGetter = urlImageParserFactory.create(htmlContentTextView, entityType, entityId, imageCenterAlign) | ||
|
||
val htmlSpannable = HtmlCompat.fromHtml(htmlContent, HtmlCompat.FROM_HTML_MODE_LEGACY, imageGetter, LiTagHandler()) as Spannable | ||
val htmlSpannable = CustomHtmlContentHandler.fromHtml( |
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.
Earlier LiTagHandler was getting used to modify the bullets but now it is not getting used. Not sure how to introduce this back in the implementation. Need suggestions from @BenHenning
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.
Could we create another custom tag handler for li
tags? I'm wondering if we can leverage the existing tag handler machinery to also make the list tag adjustment work correctly.
Thanks for doing this @rt4914! As general feedback, I suggest splitting this into two PRs: one for the custom tag handler machinery & dedicated tests, and a second for actually hooking it up to the concept card & tests for that. It's generally easier to reason about & verify correctness of code when you split apart the introduction of complex code from its integration points. |
@veena14cs @nikitamarysolomanpvt While reviewing this PR, do not focus on code because I will split this PR. But you can definelity check the implementation by the running the application. |
Okay. So far everything works properly. Assign me once it is ready for review. |
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.
I have done a review on html parser, Please assign me back after the implementation and changes suggested by ben is complete.
Closing this PR as @BenHenning would be working on this issue and also this branch is out-of-date. |
Explanation
Fixes #387
This PR adds the concept card linking inside exploration player. This has been done by using #422
Thanks to @BenHenning for #422
TAG information (as confirmed with @seanlip ):
<oppia-noninteractive-skillreview skill_id-with-value="<[skillId]>" text-with-value="<[linkText]>"></oppia-noninteractive-skillreview>
How to test this:
Approach 1. Make
HtmlParserTestActivity
as your launcher activity.Approach 2. Start
Meaning of Equal Parts
exploration. First answer isD. last option
. In second state, answer 3/2 and you should see arefresher lesson
text.Pending Issues:
Checklist