-
Notifications
You must be signed in to change notification settings - Fork 535
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 #4449: Modify the design of the chapter list in lessons tab #4535
Fix #4449: Modify the design of the chapter list in lessons tab #4535
Conversation
Please take an initial pass at this |
app/src/main/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.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! Took a first pass. I think after these comments are addressed you can send the PR to Rajat for codeowners review.
Thanks @BenHenning |
# Conflicts: # app/src/main/res/layout/lessons_chapter_view.xml # model/src/main/proto/topic.proto
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. Took another pass. I think one of the past comments hasn't been addressed yet--please make sure to before sending this back.
domain/src/main/java/org/oppia/android/domain/topic/TopicListController.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.
Do these things:
- The Chapter name in RTL is left aligned but instead it should be right aligned.
- Make each chapter item minimum
48dp
height similar to mocks https://xd.adobe.com/view/3dca36c2-5115-419c-b25e-0f10526b077c-6899/screen/558af437-bec4-4719-8d30-291da10bbc9d/specs/ - Add a video showcasing talkback-output correctly. Either it should have a video or captions on screen. https://developer.android.com/guide/topics/ui/accessibility/testing#optional_talkback_developer_settings && https://github.com/oppia/oppia-android/wiki/Accessibility-(A11y)-Guide
app/src/main/res/layout-sw600dp-land/topic_lessons_story_summary.xml
Outdated
Show resolved
Hide resolved
PTAL @rt4914 |
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.
LGTM, Thanks.
PTAL @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.
Thanks @JishnuGoyal! This LGTM!
Explanation
###Quick before an after preview:
This PR, as part of the GSoC project: Interactive Onboarding Flow, modifies the look of the recycler view adapter items on the topic lessons tab.
Now there are different looking item view holders for completed, in-progress, locked and not-started chapter which results in a clear CTA for the users, and they are more likely to click on the correct option. Link to the UI mock: https://xd.adobe.com/view/3dca36c2-5115-419c-b25e-0f10526b077c-6899/screen/558af437-bec4-4719-8d30-291da10bbc9d/specs/
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Before:
After:
Tablet View: (Pixel C API 30)
Portrait
Landscape
with green border:
Accessibility scanner output:
The background to foreground ratio of these view have been kept this way on-purpose to let the users know that those chapters are locked.
RTL:
Talkback:
WhatsApp.Video.2022-09-18.at.1.54.28.AM.1.mp4