You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most important feature of our app is the ability to look at their shopping lists to see what's on them, so the user knows what they need to buy. For this to work, we'll have to be able to choose a our shopping lists. The List (the active shopping list) and Home (where the user will be able to switch shopping lists) components are the best place in our code to do that. In fact, this feature is already partially implemented. Refer to the acceptance criteria in this issue, and the existing code, to understand the work that remains.
The List component is rendered on the /list page. Because the navigation links are currently broken, you'll have to type that path into your browser's address bar.
Acceptance criteria
The useShoppingLists hook is used in App.jsx to get the shopping lists a user has access to from the database
The lists are passed into the Home component as a prop named data
The setListPath function is passed into the Home component so we can update the current list
The useShoppingListData hook is used in App.jsx to get the items in the current list from the Firestore database
The list is passed into the List component as a prop named data
In Home.jsx, the SingleList component is used to render the name of each shopping list a user is subscribed to
In List.jsx, the ListItem component is used to render the name of each item
Notes
⚠️ Your only goal is to make sure that the names of the items render as expected. You might be tempted to modify ListItem.jsx or SingleList.jsx to show more information – you will do that later.
The variables you need are already being passed into the List and Home components. What steps do you need to take in order to render them?
Additionally, you until issues 4 and 5 you should only be able to see the shopping list that was manually added in issue 1.
The text was updated successfully, but these errors were encountered:
stacietaylorcima
changed the title
1. As a component, I want to be able to read from and write to the Firestore database so that users can persist information. #1
1. As a user, I want to read the names of all of the items in my shopping list
Dec 18, 2023
jeremiahfallin
changed the title
1. As a user, I want to read the names of all of the items in my shopping list
1. As a user, I want to read all of my shopping lists and the items in them.
Dec 21, 2023
jeremiahfallin
changed the title
1. As a user, I want to read all of my shopping lists and the items in them.
2. As a user, I want to read all of my shopping lists and the items in them.
Dec 29, 2023
Summary
The most important feature of our app is the ability to look at their shopping lists to see what's on them, so the user knows what they need to buy. For this to work, we'll have to be able to choose a our shopping lists. The
List
(the active shopping list) andHome
(where the user will be able to switch shopping lists) components are the best place in our code to do that. In fact, this feature is already partially implemented. Refer to the acceptance criteria in this issue, and the existing code, to understand the work that remains.The
List
component is rendered on the/list
page. Because the navigation links are currently broken, you'll have to type that path into your browser's address bar.Acceptance criteria
useShoppingLists
hook is used inApp.jsx
to get the shopping lists a user has access to from the databaseHome
component as a prop nameddata
setListPath
function is passed into theHome
component so we can update the current listuseShoppingListData
hook is used inApp.jsx
to get the items in the current list from the Firestore databaseList
component as a prop nameddata
Home.jsx
, theSingleList
component is used to render the name of each shopping list a user is subscribed toList.jsx
, theListItem
component is used to render the name of each itemNotes
ListItem.jsx
orSingleList.jsx
to show more information – you will do that later.List
andHome
components. What steps do you need to take in order to render them?The text was updated successfully, but these errors were encountered: