-
Notifications
You must be signed in to change notification settings - Fork 548
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 #4448: Hide promoted story section for the first time user #4430
Fix #4448: Hide promoted story section for the first time user #4430
Conversation
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. |
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. |
@BenHenning PTAL would be possible for you to take an initial pass at this? I'll be adding tests for the functionality in my next commit. |
please ignore the first 4 commits as they were finally changed after merger with develop re: #4438 |
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--PTAL.
Also, please make sure to fill in the rest of the PR description (I think you're missing filling out the checklist, and the UI part of the PR description is missing).
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
…de profileTestHelper.kt
… method inside profileTestHelper.kt
@BenHenning PTAL |
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 for codeowners
Unassigning @rt4914 since they have already approved the PR. |
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 one final comment--PTAL.
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
Yes, this has been resolved and was added to a separate function. DataProviderTestMonitor was used instead of the legacy code, as discussed in the meeting. |
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. This LGTM!
Explanation
This PR is a part of the GSoC project: Interactive Onboarding Flow which fixes #4448 by hiding the promoted stories section when the user logs in for the first time. A clear CTA is also added as the topics list header. Note that when the user enters the app for the second time (and every time after that), the promoted stories section is displayed as usual.
The hiding of the promoted stories section is achieved by utilizing the work in #4438 <--this PR where a login counter was introduced. Tests are modified to account for the hidden UI elements. New test cases are also added to back the functionality introduced in the PR.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Before:

After:

First login:
Second login:
