StephMode / art-gallery-app

0 stars 0 forks source link

#05 User Story 5: Favorites #5

Open StephMode opened 15 hours ago

StephMode commented 15 hours ago

Value Proposition

As an art enthusiast

I want to mark art piece pieces as favorites

so that I can find them easier.

Acceptance Criteria

[ ] The favorite-button is displayed in each entry in the list view [ ] The favorite-button is displayed in the details view [ ] The favorite-button is NOT displayed in the spotlight view [ ] Clicking the favorite-button on a non-favorite piece saves it as a favorite [ ] Clicking the favorite-button on a favorite piece removes it from favorites

Tasks

[ ] Create an additional state artPiecesInfo to save further information for art pieces [ ] Make the artPiecesInfo state globally available for all pages [ ] Store the favorite flag in the artPiecesInfo [ ] Reference art pieces by slug in the additional state [ ] Create the component FavoriteButton [ ] FavoriteButton props: isFavorite, onToggleFavorite [ ] Render the FavoriteButton component in the ArtPiecePreview and ArtPieceDetails component