-
Notifications
You must be signed in to change notification settings - Fork 531
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 #4450: Add next and previous card options on revision screen #4554
Conversation
# Conflicts: # app/src/main/res/values/strings.xml
PTAL @BenHenning please take an initial pass -- does the general implementation look correct? |
Hi @JishnuGoyal. I didn't review it in detail (i.e. I have a bunch of more detailed feedback that I can give), but I think it looks solid at a high-level. I do have some high-level feedback:
|
PTAL @BenHenning , thanks! |
Unassigning @JishnuGoyal since a re-review was requested. @JishnuGoyal, please make sure you have addressed all review comments. Thanks! |
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 @JishnuGoyal! Some top-level thoughts:
- Could you include two brief videos in the PR description showing you playing through and clicking the next/previous buttons with and without TalkBack (i.e. one video for TalkBack, one for not)? I think seeing how this will actually behave will help better contextualize your screenshots.
- Why are the colors different between the tablet & non-tablet screenshots? Something seems wrong there.
- For RTL, it seems like the header text isn't being reversed to the other side of the layout--is the wrong style being used for that TextView?
- Please include screenshots for RevisionCardFragmentTest passing on Espresso since it's been changed.
- It would be nice, I think, to include at least one screenshot of the new UI with dark mode just to see how it looks. While we're not factoring in dark mode fully for each individual PR, there are some color changes here that I'm wondering about.
- The header looks a bit weird to me both for the "next button only" case, and on tablet in general. For the latter, it probably needs to be bigger. For the former, maybe a bigger header would help but I'm actually wondering if perhaps the button needs to be centered. I suggest emailing @mschanteltc and showing her the screenshots from this PR to get her thoughts on what we might be able to tweak to help with how it looks.
- CI checks are failing--PTAL.
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/topic/TopicListController.kt
Outdated
Show resolved
Hide resolved
Thank you Jishnu. I agree with Ben that when "only next is available," the current formatting looks a bit weird. Here are my suggestions for improvement: All Layouts Mobile (Portrait) Mobile (Landscape) and Tablet (Portrait, Landscape) Mobile, Portrait [Prev and Next] [Next Only] |
Hi @JishnuGoyal, 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. |
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 @JishnuGoyal. Mostly LGTM. Just had a few nits left. Please also wait for CI to finish & fix all failures before sending back.
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardViewModel.kt
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revision/TopicRevisionFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivity.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivity.kt # app/src/main/res/values/component_colors.xml # app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt
PTAL @BenHenning |
Unassigning @JishnuGoyal since a re-review was requested. @JishnuGoyal, please make sure you have addressed all review comments. Thanks! |
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 @JishnuGoyal. Just a few small things left (I think one of my past KDoc comments was a bit unclear, but I've clarified it now).
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardViewModel.kt
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardActivityTest.kt
Outdated
Show resolved
Hide resolved
PTAL @BenHenning |
Unassigning @JishnuGoyal since a re-review was requested. @JishnuGoyal, please make sure you have addressed all review comments. Thanks! |
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.
@JishnuGoyal I can't approve this PR yet because one of the comments wasn't fully addressed. PTAL.
app/src/main/java/org/oppia/android/app/topic/revisioncard/RevisionCardViewModel.kt
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 @JishnuGoyal! PR LGTM.
Assigning @rt4914 for code owner reviews. Thanks! |
Explanation
Fixes #4450
This PR creates navigation cards on the revision card screen so that the users can easily view the next revision item without having to return to the topic screen, thus fixing the issue #4450 as a part of the Interactive Onboarding Flow (GSoC) project. The current implementation makes sure that the functionality can be viewed correctly on a mobile screen.
This PR is backed up by unit tests.
Link to the original mock: https://xd.adobe.com/view/3dca36c2-5115-419c-b25e-0f10526b077c-6899/screen/9c633b9e-aae5-428d-a037-efcc0338c4df/specs/
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Mobile (Portrait)
When next and prev both are available
When only next is available
When only previous is available
Mobile (Landscape)
Tablet (Portrait) - prev button only
Tablet (Portrait) - both buttons
Tablet (portrait) - next button only
Tablet (Landscape)
RTL:
RTL (land):
Confirming that the Espresso tests are passing locally:
Functionality demo:
https://user-images.githubusercontent.com/64526117/192758757-37e18649-2a5f-48dd-8917-19d5c15b143d.mp4
TalkBack:https://user-images.githubusercontent.com/64526117/192503526-8ef9100d-083e-40ef-ad17-04f857955354.mp4