Code Monkey home page Code Monkey logo

adopt_dont_shop's People

Watchers

 avatar

adopt_dont_shop's Issues

User Story 22

Styling

As a visitor
When I visit any page on the site
Then I should see a reasonably well styled page

User Story 14

Shelter Delete From Shelter Index Page

As a visitor
When I visit the shelter index page
Next to every shelter, I see a link to delete that shelter
When I click the link
I am returned to the Shelter Index Page where I no longer see that shelter

User Story 21

Shelter Pet Index Link

As a visitor
When I visit a shelter show page ('/shelters/:id')
Then I see a link to take me to that shelter's pets page ('/shelters/:id/pets')

User Story 16

Pet Delete From Pets Index Page

As a visitor
When I visit the pets index page or a shelter pets index page
Next to every pet, I see a link to delete that pet
When I click the link
I should be taken to the pets index page where I no longer see that pet

User Story 3

Shelter Show

As a visitor
When I visit '/shelters/:id'
Then I see the shelter with that id including the shelter's:

  • name
  • address
  • city
  • state
  • zip

User Story 12

Pet Delete

As a visitor
When I visit a pet show page
Then I see a link to delete the pet "Delete Pet"
When I click the link
Then a 'DELETE' request is sent to '/pets/:id',
the pet is deleted,
and I am redirected to the pet index page where I no longer see this pet

User Story 27

Sort Shelters by number of adoptable pets

As a visitor
When I visit the Shelter Index Page
Then I see a link to sort shelters by the number of adoptable pets they have
When I click on the link
I'm taken back to the Shelters Index Page where I see all of the shelters in order of their count of adoptable pets (highest to lowest)

User Story 26

Change Pet's Adoptable/Pending Adoption Status

As a visitor
When I visit a Pet Show page
Then I see a link to change the pet's adoptable status
Adoptable pets should have the link "Change to Adoption Pending"
Adoption Pending pets should have the link "Change to Adoptable"
When I click the link
Then a 'PATCH' request is sent to '/pets/:id/adoptable' or 'pets/:id/pending' (depending on the link)
and I am redirected to the Pet Show page where I see the pet's status has been changed

User Story 6

Shelter Delete

As a visitor
When I visit a shelter show page
Then I see a link to delete the shelter
When I click the link "Delete Shelter"
Then a 'DELETE' request is sent to '/shelters/:id',
the shelter is deleted,
and I am redirected to the shelter index page where I no longer see this shelter

User Story 15

Pet Update From Pets Index Page

As a visitor
When I visit the pets index page or a shelter pets index page
Next to every pet, I see a link to edit that pet's info
When I click the link
I should be taken to that pets edit page where I can update its information just like in User Story 11

User Story 28

User Story 28, Sort Shelters in Alphabetical Order

As a visitor
When I visit the Shelter Index Page
Then I see a link to sort shelters in alphabetical order
When I click on the link
I'm taken back to the Shelters Index Page where I see all of the shelters in alphabetical order

User Story 25

Pet Filter by Adoptable Status

As a visitor
When I visit the pets index page or a shelter pets index page
I see a link to show only adoptable pets
I also see a link to show only adoption-pending pets
When I click the link
Then my path is something like '/pets?adoptable=true' or '/pets?adoptable=false' (respectively)
And I see only the pets that are adoptable/pending adoption (respectively).

User Story 13

Shelter Update From Shelter Index Page

As a visitor
When I visit the shelter index page
Next to every shelter, I see a link to edit that shelter's info
When I click the link
I should be taken to that shelters edit page where I can update its information just like in User Story 5

User Story 17

Shelter Links

As a visitor
When I click on the name a shelter anywhere on the site
Then that link takes me to that Shelter's show page

User Story 2

[ ] done

User Story 2, Shelter Index

As a visitor
When I visit '/shelters'
Then I see the name of each shelter in the system

User Story 1

[ ] done

User Story 1, Deploy your application to Heroku

As a visitor or user of the site
I will perform all user stories
By visiting the application on Heroku.
Localhost is fine for development, but
the application must be hosted on Heroku.

User Story 2

Shelter Index

As a visitor
When I visit '/shelters'
Then I see the name of each shelter in the system

User Story 20

Shelter Index Link
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Shelter Index

User Story 11

Pet Update

As a visitor
When I visit a Pet Show page
Then I see a link to update that Pet "Update Pet"
When I click the link
I am taken to '/pets/:id/edit' where I see a form to edit the pet's data including:

  • image
  • name
  • description
  • approximate age
  • sex
    When I click the button to submit the form "Update Pet"
    Then a PATCH request is sent to '/pets/:id',
    the pet's data is updated,
    and I am redirected to the Pet Show page where I see the Pet's updated information

User Story 5

Shelter Update

As a visitor
When I visit a shelter show page
Then I see a link to update the shelter "Update Shelter"
When I click the link "Update Shelter"
Then I am taken to '/shelters/:id/edit' where I see a form to edit the shelter's data including:

  • name
  • address
  • city
  • state
  • zip
    When I fill out the form with updated information
    And I click the button to submit the form
    Then a PATCH request is sent to '/shelters/:id',
    the shelter's info is updated,
    and I am redirected to the Shelter's Show page where I see the shelter's updated info

User Story 19

Pet Index Link
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Pet Index

User Story 18

Pet Links
As a visitor
When I click on the name a pet anywhere on the site
Then that link takes me to that Pet's show page

User Story 1

User Story 1, Deploy your application to Heroku

As a visitor or user of the site
I will perform all user stories
By visiting the application on Heroku.
Localhost is fine for development, but
the application must be hosted on Heroku.

User Story 9

Pet Show

As a visitor
When I visit '/pets/:id'
Then I see the pet with that id including the pet's:

  • image
  • name
  • description
  • approximate age
  • sex
  • adoptable/pending adoption status

User Story 7

Pet Index

As a visitor
When I visit '/pets'
Then I see each Pet in the system including the Pet's:

  • image
  • name
  • approximate age
  • sex
  • name of the shelter where the pet is currently located

User Story 4

Shelter Creation

As a visitor
When I visit the Shelter Index page
Then I see a link to create a new Shelter, "New Shelter"
When I click this link
Then I am taken to '/shelters/new' where I see a form for a new shelter
When I fill out the form with a new shelter's:

  • name
  • address
  • city
  • state
  • zip
    And I click the button "Create Shelter" to submit the form
    Then a POST request is sent to '/shelters',
    a new shelter is created,
    and I am redirected to the Shelter Index page where I see the new Shelter listed.

User Story 24

Adoptable Pets Display First

As a visitor
When I visit a shelter pets index or a pets index page
I see adoptable pets listed before pets whose adoption status is pending

User Story 8

Shelter Pets Index

As a visitor
When I visit '/shelters/:shelter_id/pets'
Then I see each Pet that can be adopted from that Shelter with that shelter_id including the Pet's:

  • image
  • name
  • approximate age
  • sex

User Story 1

Deploy your application to Heroku

As a visitor or user of the site
I will perform all user stories
By visiting the application on Heroku.
Localhost is fine for development, but
the application must be hosted on Heroku.

User Story 10

Shelter Pet Creation

As a visitor
When I visit a Shelter Pets Index page
Then I see a link to add a new adoptable pet for that shelter "Create Pet"
When I click the link
I am taken to '/shelters/:shelter_id/pets/new' where I see a form to add a new adoptable pet
When I fill in the form with the pet's:

  • image
  • name
  • description
  • approximate age
  • sex ('female' or 'male')
    And I click the button "Create Pet"
    Then a POST request is sent to '/shelters/:shelter_id/pets',
    a new pet is created for that shelter,
    that pet has a status of 'adoptable',
    and I am redirected to the Shelter Pets Index page where I can see the new pet listed

User Story 23

Shelter Pet Count

As a visitor
When I visit a shelter pets index page
I see a count of the number of pets at this shelter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.