NIAEFEUP / uni

Mobile app designed to help students of the University of Porto to manage their academic life.
GNU General Public License v3.0
50 stars 18 forks source link

Favourite Button Keeps Toggled State After Refusing To Add To Main Page #1389

Open R0drig0-P opened 2 weeks ago

R0drig0-P commented 2 weeks ago

If there isn’t a “Favourite Restaurants” card on the main page, clicking the favourite button on a restaurant opens a pop-up asking if the user wants to add their favourite restaurants to the main page. If the user presses "No", the favourite button keeps its selected state, which it shouldn’t.

https://github.com/user-attachments/assets/aee08891-1695-406c-bf32-2da847f7e5b1

DGoiana commented 1 week ago

Hey, good observation here. The question in the pop-up is "Do you want to see your favorite restaurants on the main page", which only shows if the restaurant's card is not yet present in the main cards list. The goal of that pop-up is to add that card to the homepage, not favorite a restaurant. You can still mark a restaurant as a favorite and not want to add the restaurant's card to the homepage. If you add it manually through the homepage, all your favorite restaurants should appear.