epic(pano): home page feed #566
Labels
apps/kampus
epic
a big issue that tracks other issues, if you know jira, you know what epics are :D
product/pano
issues related to pano.kamp.us
Milestone
Home Page Feed
We want our users to use pano's homepage to navigate their posts feed. They will also be able to create a new post (think about twitter/facebook type of UX).
Home page feed will show
Query.viewer.panoFeed
GQL query to fetch the response. The result of the query is aPanoPostConnection
object.The most recent post should appear on top, so we will need to update
Viewer.panoFeed
accordingly.We will render this page at
/
top-level route, meaningpano.dev.kamp.us
orpano.kamp.us
(in the future) should show this page.Feed Filters
We want to give our users an ability to sort the feed by providing them a preset of different filters:
all
-hepsi
: This is the default behavior. We show the feed in descending order by their creation date. Most recent is on top.active
-En son yorumlananlar
: Show the feed in descending order by their most recent comment's creation date. Most recently commented post is on top.hot
-En fazla yorum almislar
: Show the feed in ascending order by their comment count. The post with the most comment count is on top.upvoted
-Oyladiklarim
: Same order withall
but only the posts viewer's upvoted.owned
-başlıklarım
: Same order withall
but only the posts viewer created.An example: https://pano-dev.kamp.us/
Related files/folders from deprecated pano
https://github.com/kamp-us/monorepo/blob/dev/deprecated/pano/app/routes/index.tsx
https://github.com/kamp-us/monorepo/tree/dev/deprecated/pano/app/routes/posts
Tasks for this epic
Posts
Query.allPosts
toViewer.panoFeed
query #654panoFeed
#610Viewer.panoFeed
to accept feed filters #611Query.viewer.panoFeed
on homepage. #612PanoPostComposer
component and useMutation.createPanoPost
to add a new pano post #613findMany
queries #615prisma.model.findMany
call #617Comments
Upvotes
createPostUpvote
mutation #554removePostUpvote
mutation #556PanoPost.isUpvotedByViewer
field #621PanoComment.isUpvotedByViewer
field #622Mutation.createPanoUpvote
andMutation.removePanoUpvote
resolvers to supportPanoComment
type #650@kampus/gql-utils
The text was updated successfully, but these errors were encountered: