Skip to content

Frontend Routes

JamesKoenig edited this page Feb 9, 2021 · 4 revisions

/

URI Pattern Description
/ (when signed out) signup/sign in (Splash)
/ (when signed in) user's feed
  • feed uses FeedIndex to map the feed items into a scrolling date ordered stream
    • FeedIndexItem is either a post or a notif (e.g. of a like)
      • PostIndexItem is the render for a post object
      • LikeIndexItem will be the container for a like notification

session-related

URI Pattern Description
/login login form
/signup sign up form (adds a user)
  • uses SessionForm

post-related

URI Pattern Description component/container name
/post/:postId a post's show page PostShow
/post/new create new post form PostForm
/post/:postId/edit edit post form EditPostForm
  • EditPostForm is a wrapped version of PostForm with the relevant information added
  • PostShow will render an PostInteractions list
    • PostInteracitons will render LikeIndexItems of likes of the current post

Bonus goals

reblog-related

  • ReblogIndexItem created and added to: FeedIndexItem
    • this can likely be a wrapped version of PostIndexItem since it displays the same information + that it's a reblog
  • ReblogNotificationItem created and added to:
    • PostShow (where the reblog is of the post)
    • FeedIndexItem (a little notification for the reblog author)
Clone this wiki locally