Skip to content

User Stories

DanielLaV edited this page Dec 7, 2021 · 5 revisions

Users

Sign Up

  • As an unregistered and unauthorized user, I want to be able to sign up for the website via a sign-up form.
    • When I'm on the /signup page:
      • I would like to be able to enter my email, username, and preferred password on a clearly laid out form.
      • I would like the website to log me in upon successful completion of the sign-up form.
        • So that I can seamlessly access the site's functionality
    • When I enter invalid data on the sign-up form:
      • I would like the website to inform me of the validations I failed to pass, and repopulate the form with my valid entries (except my password).
      • So that I can try again without needing to refill forms I entered valid data into.

Log in

  • As a registered and unauthorized user, I want to be able to log in to the website via a log-in form.
    • When I'm on the /login page:
      • I would like to be able to enter my email and password on a clearly laid out form.
      • I would like the website to log me in upon successful completion of the lob-up form.
        • So that I can seamlessly access the site's functionality
    • When I enter invalid data on the log-up form:
      • I would like the website to inform me of the validations I failed to pass, and repopulate the form with my valid entries (except my password).
        • So that I can try again without needing to refill forms I entered valid data into.

Demo User

  • As an unregistered and unauthorized user, I would like an easy to find and clear button on both the /signup and /login pages to allow me to visit the site as a guest without signing up or logging in.
    • When I'm on either the /signup or /login pages:
      • I can click on a Demo User button to log me in and allow me access as a normal user.
        • So that I can test the site's features and functionality without needing to stop and enter credentials.

Log Out

  • As a logged in user, I want to log out via an easy to find log out button on the navigation bar.
    • While on any page of the site:
      • I can log out of my account and be redirected to a page displaying recent FauxTweets.
        • So that I can easily log out to keep my information secure.

Stories

Viewing Stories

  • As a logged in or logged out user, I want to be able to view a selection of the most recent stories.

    • When I'm on the /stories page:
      • I can view the ten most recently posted stories.
        • So that I can read and interact with the stories of users I follow.
  • As a logged in or logged out user, I want to be able to view a specific story and its associated comments and likes.

    • When I'm on the /stories/:id page:
      • I can view the content of the story, as well as the associated comments and likes.
        • So that I can read and interact with the stories of users I follow.

Updating Stories

  • As a logged in user, I want to be able to edit my stories by clicking an Edit button associated with the story anywhere that story appears.
    • When I'm on the /stories, /stories/:id, or /users/:id/stories pages:
      • I can click "Edit" to make permanent changes to stories I have posted.
        • So that I can fix any errors I make in my stories.

Deleting Stories

  • As a logged in user, I want to be able to delete my stories by clicking a Delete button associated with the story anywhere that story appears.
    • When I'm on the /stories, /stories/:id, or /users/:id/stories pages:
      • I can click "Delete" to permanently delete a story I have posted.
        • So that when I realize I shouldn't have publicly said something, I can easily remove it.

Likes

Like Stories

  • As a logged in user, I want to be able to like a story by clicking a Like button associated with the story anywhere that story appears.
    • When I'm on the /stories, /stories/:id, or /users/:id/stories pages:
      • I can click "Like" to like the story
        • And see the number of likes attached to the story.

Like Comments

  • As a logged in user, I want to be able to like a comment by clicking a Like button associated with the comment anywhere that comment appears.
    • When I'm on the /story/:id/comments or /comments/:id pages:
      • I can click "Like" to like the comments
        • And see the number of likes attached to the comment.

Unlike Stories

  • As a logged in user, I want to be able to unlike a story by clicking a Like button after it's been liked which is associated with the story anywhere that story appears.
    • When I'm on the /stories, /stories/:id, or /users/:id/stories pages:
      • I can click "Like" to Unlike the story
        • And see the number of likes attached to the story.

Unlike Comments

  • As a logged in user, I want to be able to Unlike a comment by clicking a Like button after it's been liked which is associated with the story anywhere that story appears.
    • When I'm on the /story/:id/comments or /comments/:id pages:
      • I can click "Like" to Unlike the comment
        • And see the number of likes attached to the comment.

Clone this wiki locally