Added ability to read comments on claims #920
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#920
Loading…
Reference in a new issue
No description provided.
Delete branch "comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: resolves #652
What is the current behavior?
No comments or commenting under video
What is the new behavior?
You can now read the first "page" of comments on a video
Other information
There is still a lot of commenting features that aren't done yet like "infinite scroll". For now it just loads as many comments as possible on the first page. There is also lacking of the ability write comments, read replies, write replies, click on usernames to go to their channel, and and see the poster's icon. So I don't know if this should close the referenced issue but I'd imagine it'd be better to separate these "different" features into separate issues.
I'm not sure if this is a "breaking change" because I don't know if this was intentional. On FileViewFragment the function to listen for when the SDK was ready called onSDKReady when it wasn't ready and did the listener when it was so I switched that to prevent an error when fetching comments.
This was my first time writing stuff for an Android app in Java (I took the AP Java course online in 8th grade but it was too late for me to sign up for the exam so I "know" Java but I haven't done any personal projects with it) & one of my first times contributing to an outside open-source project. I'm pretty sure there are no errors in the way I've done this, but I could be wrong.
Hi! This is great, thanks! Just a couple of things.
@akinwale Um, what are they? I don't see any comments.
@ -0,0 +8,4 @@
import lombok.Data;
@Data
public class Comment {
You can add the @Data annotation from lombok so you don't have to implement the boilerplate toString and getter methods. https://projectlombok.org/features/Data
Could you change this to handle pagination by adding
page
andpageSize
parameters? For a simple example showing how pagination works for infinite scroll, refer toPurchaseListTask
and the recycler view scroll listenercontentList.addScrollListener
inLibraryFragment.java
.You can remove the top margin because the bottom margin last item in the related content view already has some spacing applied.
@clay53 For some reason, my first review submitted without the comments. I have posted a new review.
@ -0,0 +8,4 @@
import lombok.Data;
@Data
public class Comment {
Done in
e88706e
Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling).
9e6acd9
Done in
c1853b8
Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
Looks good. Thanks.
Can we show you some appreciation for the contribution?