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-1969: UX – Show last page of replies #1299

Merged
merged 15 commits into from
Jun 23, 2021

Conversation

sunday-okpoluaefe
Copy link
Contributor

@sunday-okpoluaefe sunday-okpoluaefe commented Jun 18, 2021

📲 What

UX – Show last page of replies

🤔 Why

  • Let’s start by the end and show the last few replies to a given comment.

🛠 How

  • Created new replies adapter
  • Wrapped recycler-view in a nested scroll view
  • Added tests

👀 See

scroller.convert-video-online.com.mp4
Before 🐛 After 🦋

📋 QA

  • Go to project with comments and replies
  • Select View replies

Story 📖

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

@codecov
Copy link

codecov bot commented Jun 18, 2021

Codecov Report

Merging #1299 (28d5fa1) into master (ccd0e66) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1299   +/-   ##
=========================================
  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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccd0e66...28d5fa1. Read the comment docs.

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.

Small comments here, nothing big :) .
Solve the conflicts and we can properly review it again

app/src/main/res/layout/activity_thread_layout.xml Outdated Show resolved Hide resolved
import com.kickstarter.models.Project
import com.kickstarter.ui.data.CommentCardData

fun List<Comment>.toCommentCardList(project: Project?): List<CommentCardData> = this.map { comment: Comment ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice touch 👍

@sunday-okpoluaefe
Copy link
Contributor Author

Small comments here, nothing big :) .
Solve the conflicts and we can properly review it again

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 UI tweecks needed. as shown on the screenshoots

android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.recyclerview.widget.RecyclerView
Copy link
Contributor

@Arkariang Arkariang Jun 22, 2021

Choose a reason for hiding this comment

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

Add constraints for this two elements. When there is only one reply the UI shows like this:
Screen Shot 2021-06-22 at 1 59 22 PM

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.

lgtm! 👍 great work here @sunday-okpoluaefe

@Arkariang
Copy link
Contributor

Fix the lister check and is good to go

@sunday-okpoluaefe sunday-okpoluaefe merged commit 71e72ce into master Jun 23, 2021
@sunday-okpoluaefe sunday-okpoluaefe deleted the sunday-nt-1969-ux-show-last-replies branch June 23, 2021 16:09
Arkariang added a commit that referenced this pull request Jun 23, 2021
…ure/NT-2059-update-stripe-sdk

* 'master' of github.com:kickstarter/android-oss:
  NT-1989: Removed any code related with "Email Verification" feature flag, no related code on the app for "Go Rewardless", "Native Checkout", and "Creator View" (#1302)
  NT-1969: UX – Show last page of replies (#1299)
  - Release 2.16.0 version code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants