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-1943: UI/UX β Empty state #1258
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1258 +/- ##
=========================================
Coverage 74.50% 74.50%
Complexity 739 739
=========================================
Files 221 221
Lines 6632 6632
Branches 404 404
=========================================
Hits 4941 4941
Misses 1555 1555
Partials 136 136 Continue to review full report at Codecov.
|
.filter { ObjectUtils.isNotNull(it) } | ||
.compose(bindToLifecycle()) | ||
.subscribe { | ||
commentsList.onNext(it) | ||
it.totalCount?.let { count -> | ||
if (count > 0) { |
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.
you could refactor these lines to be
this.setEmptyState.onNext(count > 0)
so you don't need the if condition inside the let block
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.
great. thanks this.setEmptyState.onNext(count < 1)
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.
Small comment left, once it's addressed feel free to merge :)
β¦ndroid-oss into sunday-nt-1943-empty-state
π² What
UI/UX β Empty state
π€ Why
Someone has to be the first to comment, let's make sure they have a nice experience!
π How
activity_comments_layout
commentEnvelope
, checked fortotalCount
. show comments if > 0; else show empty stateπ See
π QA
record.mp4
Story π
https://kickstarter.atlassian.net/browse/NT-1943