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

UX Redesign Support: Comment Preview #583

Open
jterps08 opened this issue Apr 11, 2017 · 3 comments
Open

UX Redesign Support: Comment Preview #583

jterps08 opened this issue Apr 11, 2017 · 3 comments

Comments

@jterps08
Copy link
Member

jterps08 commented Apr 11, 2017

The ability for the system to provide a "preview" of the most recent comment on any item. This will be displayed either in the newsfeed below an item (post/petition/poll/discussion/fundraiser/event) OR below a parent comment.

The app may ask for the most-recent comment or the second-most-recent comment in the event that the app wants to show two previews and not just one. The app will truncate the preview to 150 characters likely. The user may tap on that preview to open up the full comment modal (with its full children comments visible, infinite scrolling, etc.)

@igaponov
Copy link
Collaborator

@jterps08 we have an endpoint now to get comments for any item, I can add sorting (by date) and there is a "limit" parameter, so frontend will be able to get one or two or xxx last comments. But there is no endpoint to get all children.

@jterps08
Copy link
Member Author

jterps08 commented May 5, 2017

can you clarify the use of the api endpoint for this please @igaponov

@jterps08 jterps08 modified the milestones: Release 2.2, Release 2.1.1 May 5, 2017
@igaponov
Copy link
Collaborator

igaponov commented May 5, 2017

https://api-dev.powerli.ne/api-doc#get--api-v2-posts-{id}-comments
sort by createdAt - DESC, per_page = 1 to get the last comment
use a parent query param to filter all children of a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants