I'm Feeling Lucky - cheehongw/functional_expressionism GitHub Wiki
This page includes a Tinder-like system where user get recommended with cards each contain a dish in NUS. The user will either swipe left to indicate their dislike or swipe right for their like/partial like
Action | Expected Result | Result |
---|---|---|
User swipes right | The cards retain in the recommendation card deck | ✔️ |
User swipes left | The cards disappear from the recommendation card deck | ✔️ |
User swipes right at the last card of the deck | If there is only one swiped right dish then a prompt will appear asking if this is the final dish choice. Else the previously swiped right cards will reappear | ✔️ |
User swipes left at the last card of the deck | If there is only one swiped right card then a prompt will appear along with that card asking if this is the final dish choice. Else if there is no swiped right card then a prompt will appear to inform that there is no suggestion available. Else the prviously swiped right cards will reappear |
✔️ |
User attempts to swipe up and down | These gestures are not registered and the card returns back in its original position | ✔️ |
User swipes in valid direction | The card flies away from the screen | ✔️ |
User presses on the Swipe Left button | The card flies to the left side of the screen | ✔️ |
User presses on the Swipe Right button | The card flies to the right side of the screen | ✔️ |
User finishes the session | Either the card which contains the chosen dish or an "apology" page appears | ✔️ |