Skip to content
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 #456: Improvised bullet code #490

Merged
merged 13 commits into from
Dec 18, 2019
Merged

Fix #456: Improvised bullet code #490

merged 13 commits into from
Dec 18, 2019

Conversation

rt4914
Copy link
Contributor

@rt4914 rt4914 commented Nov 29, 2019

Explanation

This PR tries to improvise on bullets in HtmlParser

Screenshot_1575026452
Screenshot_1575026487

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@veena14cs
Copy link
Contributor

veena14cs commented Nov 29, 2019

Code looks good to me. I have one concern in this screenshot why always 2nd option is improper.

@veena14cs veena14cs assigned rt4914 and unassigned veena14cs Nov 29, 2019
Copy link
Contributor

@veena14cs veena14cs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM nice work.

Copy link
Contributor

@nikitamarysolomanpvt nikitamarysolomanpvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation LGTM (@mschanteltc suggestion... bullet design can be improvised )

@mschanteltc
Copy link

mschanteltc commented Dec 2, 2019

For the content in the blue box, can we indent just the text that is bullet pointed by 32 px? It would look similar to how the Content Card is formatted.

For the submitted answer, let's have the text be aligned to the left. The size of the box will depend on which answer's text is the longest. It should look like this answer on the Question Player. Remember that answers in the Exploration Player will format user's responses differently by having the box on the right side.

@BenHenning
Copy link
Member

@mschanteltc one thing that confuses me about how we format this for the question player: learners also receive feedback for answers in the question player. Shouldn't we have the same left/right alignment to indicate the back-and-forth conversation flow?

@seanlip as well in case I'm missing something with questions.

@seanlip
Copy link
Member

seanlip commented Dec 2, 2019

I think the idea is that explorations are meant to be a "conversation", whereas questions don't really have that sense -- so the UI is a little different. But if it's hard to do that, it doesn't matter so much I think.

@nikitamarysolomanpvt nikitamarysolomanpvt removed their assignment Dec 2, 2019
@BenHenning
Copy link
Member

I understand the product side, but I don't understand how the UI can represent that per the current mocks. Questions have feedback for answers, so it needs to be conversational. The current mocks assume that there isn't feedback for answers to questions, but the current questions structures do have feedback.

@mschanteltc
Copy link

If a user does get a problem incorrect in the Question Player, the feedback should be short like in this mock. For the Exploration Player, feedback should be more explanatory while the Question Player provides smaller hints or prompts them to "try again."

@BenHenning
Copy link
Member

Thanks @mschanteltc.

@rt4914 deferring this review until the changes Chantel requested are done.

@BenHenning BenHenning assigned rt4914 and unassigned BenHenning Dec 2, 2019
@rt4914
Copy link
Contributor Author

rt4914 commented Dec 2, 2019

For the content in the blue box, can we indent just the text that is bullet pointed by 32 px? It would look similar to how the Content Card is formatted.

For the submitted answer, let's have the text be aligned to the left. The size of the box will depend on which answer's text is the longest. It should look like this answer on the Question Player. Remember that answers in the Exploration Player will format user's responses differently by having the box on the right side.

@mschanteltc Please check these screenshots
I have increased the starting indent space and bullet radius.

Screenshot_1575295317
Screenshot_1575295352

@rt4914 rt4914 assigned BenHenning and mschanteltc and unassigned rt4914 Dec 2, 2019
@rt4914
Copy link
Contributor Author

rt4914 commented Dec 5, 2019

@BenHenning As mentioned in #494 the bullets were not correct in MDPI device. So I have updated the code. The only concern is that the dimens are in utility module and also, I had to inject activity to get the context to get resources.

@rt4914
Copy link
Contributor Author

rt4914 commented Dec 5, 2019

@BenHenning I have added y-offset to bullets to make it look more aligned with text.

MDPI screenshot
Screenshot 2019-12-05 at 11 40 07 AM

XHDPI screenshot
Screenshot 2019-12-05 at 11 40 46 AM

@BenHenning BenHenning assigned rt4914 and unassigned BenHenning Dec 11, 2019
@rt4914 rt4914 assigned BenHenning and veena14cs and unassigned rt4914 and veena14cs Dec 11, 2019
@BenHenning BenHenning assigned rt4914 and unassigned BenHenning Dec 17, 2019
@rt4914 rt4914 merged commit b5e33de into develop Dec 18, 2019
@rt4914 rt4914 deleted the bullet-fix-2 branch December 18, 2019 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants