KristinJJ / MovieMeetUp

MovieMeetUp: A group movie recommender built during CodeDay Labs 2021
https://www.moviemeetup.com
GNU General Public License v3.0
4 stars 1 forks source link

Mg 81 ranked movies to event table #87

Closed ZenSorcere closed 3 years ago

ZenSorcere commented 3 years ago

For Issue #81 - Update Ranking Component to add User Rankings to the Event Table

This feature enhances the Rankings component, by allowing visitors/guests to enter a userID, use the click/drag feature to rank movies from highest to lowest, and then submit these rankings to the Event table, where the lambda function will "eventRankings" (consisting of the userID and their userRankings selections to the indicated eventID. If the eventID indicated does not have any eventRankings, it will be created for the eventID. If it alread has eventRankings entries, a new set of userID-userRankings will be appended to the eventRankings attribute.

This PR also has some optimizing of the ranking.component.html, allowing the userID to be displayed to the user as they are typing it, with no need to press the Enter Key, as well as displaying the user's current top choice, but not a total top choice for all userRankings.

Tested on Win10 laptop, Chrome v92.

Sample Ranking Page Image: image

To Test the feature:

From the Home page (localhost:4200/)