Skip to content
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-1997:UI/UX – Error loading more replies #1313

Merged
merged 29 commits into from
Jul 6, 2021

Conversation

hadia
Copy link
Contributor

@hadia hadia commented Jul 6, 2021

πŸ“² What

handle problems loading more replies

πŸ€” Why

show pagination Error loading extra pages of replies

πŸ›  How

same as comments we change the view more to the error message and its clickable to retry

πŸ‘€ See

Screen_Recording_20210706-154610_Kickstarter.mp4

πŸ“‹ QA

  1. Test load replies view more
  2. Produce pagination error "flight mode"
  3. Click retry
  4. try post replies

Story πŸ“–

https://kickstarter.atlassian.net/browse/NT-1997

hadia and others added 27 commits June 29, 2021 15:34
# Conflicts:
#	app/src/main/java/com/kickstarter/ui/adapters/RepliesAdapter.kt
#	app/src/main/java/com/kickstarter/viewmodels/ThreadViewModel.kt
#	app/src/main/res/layout/activity_thread_layout.xml
# Conflicts:
#	app/src/main/java/com/kickstarter/ui/activities/ThreadActivity.kt
#	app/src/main/java/com/kickstarter/ui/adapters/RepliesAdapter.kt
#	app/src/main/java/com/kickstarter/viewmodels/ThreadViewModel.kt
#	app/src/main/res/layout/activity_thread_layout.xml
@codecov
Copy link

codecov bot commented Jul 6, 2021

Codecov Report

Merging #1313 (61c0316) into master (5c31fce) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1313   +/-   ##
=========================================
  Coverage     74.12%   74.12%           
  Complexity      739      739           
=========================================
  Files           221      221           
  Lines          6666     6666           
  Branches        406      406           
=========================================
  Hits           4941     4941           
  Misses         1589     1589           
  Partials        136      136           

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 5c31fce...61c0316. Read the comment docs.

@@ -50,6 +50,9 @@ interface ThreadViewModel {

fun isFetchingReplies(): Observable<Boolean>
fun loadMoreReplies(): Observable<Void>

/** Display the bottom pagination Error Cell **/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On threads is displayed on top, modify the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

this.internalError
.compose(Transformers.combineLatestPair(onCommentReplies))
.filter {
// it.first.second &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@Arkariang Arkariang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Some picky comments, but is good to go on my end :) πŸ‘

@hadia hadia merged commit 0860cdd into master Jul 6, 2021
@hadia hadia deleted the UI/UX_Error_loading_more_replies branch July 6, 2021 16:39
Arkariang added a commit that referenced this pull request Jul 6, 2021
…ure/NT-2059-update-stripe-sdk

* 'master' of github.com:kickstarter/android-oss:
  NT-1997:UI/UX – Error loading more replies (#1313)
  NT-2095:View Replies show and hide with scrolling (#1312)
  NT-2053:UX – Add pagination to replies (#1311)
  NT-2028: Navigation – Back button should slide view out #1310
  NT-1958: UX – Post a reply (#1305)
  NT-2071: Update exoplayer, mockito, and timber dependencies to latest versions (#1306)
  Set the name as an empty string to prevent the app from crashing. (#1309)
  NT-2069:Refactor Comment Pagination code  (#1308)
  NT-2005: Update Dependencies to Latest Version (#1304)
  NT-2069:Refactor Comment Pagination code (#1303)
  NT-1958: UX – Post a reply (#1301)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants