Skip to content

Instantly share code, notes, and snippets.

@BrianZanti
Last active April 16, 2021 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianZanti/c1d60c7982e48d2edc324ad8b7e9146e to your computer and use it in GitHub Desktop.
Save BrianZanti/c1d60c7982e48d2edc324ad8b7e9146e to your computer and use it in GitHub Desktop.
User Story 1 - Chef Show Page

As a visitor
When I visit a chef's show page
Then I see the name of the chef
And I see the names and descriptions of all the chef's dishes
User Story 2 - Chef's Ingredients

As a visitor
When I visit a chef's show page
Then I see the name and calories of all ingredients this chef uses in their dishes
And I see that the list of ingredients is unique (contains no duplicate ingredients)
And I see that the list of ingredients is ordered from most calories to least calories
User Story 3 - Remove a Dish from a Chef

As a visitor
When I visit a chef's show page
Then next to each dish I see a button to delete it
When I click this button
I am returned to the chef's show page
And I no longer see the dish listed
(Note: you should not destroy the dish record entirely. Instead, you should disassociate it from the Chef)

Extensions

Extension - Chef's most popular ingredients

As a visitor
When I visit a chef's show page
I see a section for "Most Popular Ingredients"
And in that section I see the three most popular ingredients that the chef uses in their dishes
(Note: Popularity is based off of how many dishes use that ingredient)
(Note: You should only make 1 database query to calculate the most popular ingredients)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment