-
Notifications
You must be signed in to change notification settings - Fork 989
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
NT-1951: UI/UX β Error loading initial comments #1284
NT-1951: UI/UX β Error loading initial comments #1284
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1284 +/- ##
=========================================
Coverage 74.34% 74.34%
Complexity 739 739
=========================================
Files 221 221
Lines 6646 6646
Branches 405 405
=========================================
Hits 4941 4941
Misses 1569 1569
Partials 136 136 Continue to review full report at Codecov.
|
|
||
import android.view.View | ||
|
||
fun Boolean.toVisibility(): Int { |
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.
love it! β€οΈ
β¦b.com:kickstarter/android-oss into sunday-nt-1951-error-loading-initial-comments
} | ||
|
||
fun takeData(comments: List<CommentCardData>) { | ||
resetList() |
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 not call resetList(), that should be only initialization step
} | ||
|
||
fun insertPageError() { | ||
resetList() |
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.
same as before
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.
Removing resetList
causes some weird behavior. The previous error page persists even after data arrives
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.
fyi: you need to clean specific sections not all of them, so it's the expected behaviour. Meaning if you need to show the section "SECTION_INITIAL_LOAD_ERROR" send an empty list to the section "SECTION_COMMENT_CARD" and viceversa. For now it's not a problem but I'm gonna have to change it either way on my open PR(#1284) as I need to present there 2 sections at the same time
app/src/main/java/com/kickstarter/ui/adapters/CommentsAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/kickstarter/viewmodels/CommentsViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/kickstarter/viewmodels/CommentsViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/kickstarter/ui/viewholders/InitialCommentLoadErrorViewHolder.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.
I left a few comments , nothing serious just small tweecks.
Once those comments are addressed feel free to merge, overall it looks great :) π
β¦tin/NT-2037-inside-list-error * 'master' of github.com:kickstarter/android-oss: NT-1951: UI/UX β Error loading initial comments (#1284) # Conflicts: # app/src/main/java/com/kickstarter/ui/adapters/CommentsAdapter.kt # app/src/main/java/com/kickstarter/viewmodels/CommentsViewModel.kt
π² What
UI/UX β Error loading initial comments
π€ Why
π How
π See
initial.error.mp4
π QA
Story π
https://kickstarter.atlassian.net/browse/NT-1951