-
Notifications
You must be signed in to change notification settings - Fork 526
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 part of #2132: Chapter List Page Issues #2232
Conversation
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, @viktoriias for your first Pull Request.
Added a few changes, PTAL
@viktoriias Can you please update the PR title to follow our conventional format? |
@viktoriias no changes required in |
|
https://stackoverflow.com/questions/36763274/how-to-remove-a-file-from-git-pull-request/42405903 |
Ok thanks, I think I removed it. |
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 @viktoriias! I think this is a great start. I have a few comments, one of which will required changes to part of the overall approach.
Beyond that, can you also add a test to verify that the previous chapter text is correctly computed & used in the expected cases?
...src/main/java/org/oppia/android/app/story/storyitemviewmodel/StoryChapterSummaryViewModel.kt
Outdated
Show resolved
Hide resolved
Remove blurring thumbnails of inactive cards - this change will be done separately.
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 @viktoriias! As a reminder, please also add a test to verify these changes. And, can you please take a look at @anandwana001's reply to my comment thread above about the data potentially being empty in some cases? (I think this might be intentional & correct, but I haven't looked the case closely).
domain/src/main/java/org/oppia/android/domain/topic/TopicController.kt
Outdated
Show resolved
Hide resolved
I looked into this test file initially, per @anandwana001's advice. It marks first story as completed, so prerequisite didn't show up. I'll need to remove |
Removing |
It only affects |
Sounds good, we can shift it to the test before the launch and check if all the tests are passing on espresso and robolectric. |
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
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 @viktoriias! Overall, the PR LGTM. Just have one more comment from me to address.
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
Show resolved
Hide resolved
...src/main/java/org/oppia/android/app/story/storyitemviewmodel/StoryChapterSummaryViewModel.kt
Outdated
Show resolved
Hide resolved
@anandwana001 please review |
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.
Reviewed the UI test cases, Thanks @viktoriias
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.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.
last nit change. Fix ktlint issues.
LGTM, Thanks @viktoriias
Also, just for the future reference, please add 2 screenshots showing that all the tests are passing on Espresso and Robolectric.
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
Show resolved
Hide resolved
Adding @BenHenning for final merge. |
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 @viktoriias! This looks great! Just one small comment, but otherwise LGTM.
@rt4914 or @anandwana001 feel free to merge this after the last comment is resolved if I miss it.
app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt
Outdated
Show resolved
Hide resolved
…s of inactive cards. (#2422) * Lock and blur * Replace color/white with #FFFFFF * Add \n * Move isBlurred to LessonThumbnailImageView. * Remove unused import. * Move dependency on Glide away from from ImageLoader. * Remove unneeded line. * Refactor Transformation-related code, add KDocs. * Renaming. * Remove unused import. * Reformat. * Add Mockk test * Add Mockk test - lint * Add blurring tests. * Mock ImageLoader in StoryActivityTest. * Add delay before image loading. * Nits and improvements. * Remove unused import. * Remove unused import. * Set image resources in LessonThumbnailImageView in addition to calling GlideImageLoader. * BlurTransformation re-write. * BlurTransformation re-write. * Add TestImageLoaderModule to some tests. * Lint * Add TestImageLoaderModule to more tests. * Add TestImageLoaderModule to more tests. * Update utility/src/main/java/org/oppia/android/util/parser/BlurTransformation.kt Co-authored-by: Ben Henning <[email protected]> * Update utility/src/main/java/org/oppia/android/util/parser/BlurTransformation.kt Co-authored-by: Ben Henning <[email protected]> * TestGlideImageLoader Refactor. * Reformat. * Reformat. * Reformat. * Nits and comments. * Revert changes in landscape design. * Change BlurTransformation to return a copy instead of 'toTransform'. * Update app/src/sharedTest/java/org/oppia/android/app/story/StoryFragmentTest.kt Co-authored-by: Ben Henning <[email protected]> * Refactor TestGlideImageLoader. * Nits Co-authored-by: Ben Henning <[email protected]>
@anandwana001 PTAL
Explanation
Fixes part of #2132
Checklist