the-collab-lab / tcl-65-smart-shopping-list

1 stars 1 forks source link

3. As a user, I want to set up a new shopping list so I can start tracking purchased items #3

Closed fullybaked closed 1 year ago

fullybaked commented 1 year ago

Summary

A shopping list is a set of items associated with a specific three-word token. We need to allow users to start new lists, so they can save the things they need to buy. To start a new list, we will need to do a few things:

  1. Generate a new, unique token
  2. Save the token to localStorage
  3. Show the user the list view

Up to this point, the app has rendered the items in the list associated with the token my test list. Before we can allow users to make new lists, we have to stop showing them this test list.

Acceptance criteria

If a user doesn’t already have a token:

If a user does already have a token:

Notes