frankiesanjana / bake-it-better

Bake It Better is a blog-style website for users to share baking recipes. The site has been created for the fourth portfolio project for Code Institute's Diploma in Full Stack Software Development.
0 stars 1 forks source link

User Story: View My Starred Bakes in List of All Bakes #15

Open frankiesanjana opened 1 year ago

frankiesanjana commented 1 year ago

As a site user, I can see which bakes I have starred from the summary list of all bakes on the index page, so that I know if I have already marked each bake as starred or not

Acceptance Criteria

When a user is logged in, when that user views the list of bakes on the website, the star icon next to the bake should display as gold if that user has already liked the bake. Otherwise, it will display in the default format (solid if that bake has been given any stars, clear if not).

Tasks

Add if statement to index.html to apply the 'user-starred' class to bakes that the user has starred

frankiesanjana commented 1 year ago

Note that this functionality was later removed in user testing, since it was deemed to be too much information to present on the index page and is covered by the My Starred Bakes page