-
Notifications
You must be signed in to change notification settings - Fork 521
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 #4447: Hide Info tab #4528
Fix #4447: Hide Info tab #4528
Conversation
# Conflicts: # domain/src/main/java/org/oppia/android/domain/platformparameter/PlatformParameterModule.kt
Please take an initial pass at this -- please let me know if more test cases are needed. |
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! I took a first pass, but skipped the main tests until the next pass. I think there's some additional adjustments needed here per my comments and suggestions.
Beyond that, could you please also fill in the explanation section for the PR? There's important context to capture here both in terms of what new behavior you're adding (hiding the info tab + why), and what behavior you're changing (also gating the practice tab behind the same flag + why).
...src/main/java/org/oppia/android/app/application/alphakenya/AlphaKenyaApplicationComponent.kt
Outdated
Show resolved
Hide resolved
...src/main/java/org/oppia/android/app/application/alphakenya/AlphaKenyaApplicationComponent.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/topic/TopicFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/platformparameter/PlatformParameterConstants.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/platformparameter/PlatformParameterConstants.kt
Show resolved
Hide resolved
# Conflicts: # domain/src/main/java/org/oppia/android/domain/platformparameter/PlatformParameterModule.kt
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 had a few follow-ups, along with a reminder that there's 1 CI check left to fix. Otherwise, the PR is pretty much LGTM.
app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.kt
Outdated
Show resolved
Hide resolved
@JishnuGoyal please also add screenshots of Espresso tests passing for changed test suites (such as TopicFragmentTest). |
@rt4914 PTAL for codeowners, 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.
LGTM, Thanks @JishnuGoyal . Really nice work.
Thank you so much, so happy to hear :) |
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 one minor nit left, otherwise the PR LGTM.
app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt
Outdated
Show resolved
Hide resolved
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.
Everything LGTM--thanks @JishnuGoyal!
Explanation
Fixes #4447
This PR hides the info tab in the Topic screen, as part of the Interactive Onboarding Flow project (GSoC), thus fixing #4447. It does so by introducing a new platform parameter
enableExtraTopicTabsUi
which hides info and practice tab as well. The practice tab's visibility was earlier controller by a flag calledenablePracticeTab
which used some legacy code and was removed in this PR. Thus, lessons tab is the default tab upon landing on the topic screen.Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Before:
After: