UNLV-CS472-672 / 2024-S-GROUP5-Munch

The Munch app is a social platform where users create profiles by selecting preferred foods.
1 stars 11 forks source link

Refactor Like Button and Add Button Animation #111

Closed razonm closed 3 months ago

razonm commented 3 months ago

This is related to issue #108

Description / Changes Made

Portions of this code that utilized AI generation

None. However I consulted with ChatGPT to ask for opinions on adjusting the visual like count locally or from an API call. I opted to just do it locally since there was already a small stutter in animation with the API call.

How to Test

  1. Start up Firebase emulator, backend, and frontend
  2. Login to the app
  3. Use postman to make your user follow someone (may have to disable middleware here)
  4. Relog then navigate to Friends
  5. See that the icons are different
  6. Like a post
  7. See the animation play (if you are using a mouse, a fast click will make the animation harder to notice)
  8. Check Firebase to see that the like was added to the post
  9. Relog then navigate to Friends again
  10. See that the like icon is already filled and the like count reflects the count in Firebase
  11. Interact with the like button again
  12. See that it unlikes, that the count decrements, and the change is reflected in Firebase

Checklist