Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/1083 emoji reactions #1908

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tannerkc
Copy link

This PR features working interactive reactions with view, delete and rate limit
The reactions are simply links Lottie files that can be swapped out to any animations of your liking.
The code implementation here is meant to be simple and does not account for adding the reactions to your DB and currently ties the reaction the users IP. I figured I would let you decide how to handle user differentiation and database structure. It should not be too much work altering this code to account for a predefined array of reactions that come from the DB.

The reaction displays on the timeline for 5 seconds after being added. All reactions can be shown by hovering the marker that sits just above the timeline. Clicking a marker of ones own reaction will delete it. More logic will need to be added to add and remove reactions to the DB in sync. No more than one reaction per user can be made within a 10 second span on the timeline to prevent reaction spamming. All of these values can be adjusted to fit preferences.
Reactions also show when the player progress approaches their marker.

Screen.Recording.2024-11-21.at.8.25.11.AM.mov

Copy link

vercel bot commented Nov 21, 2024

Someone is attempting to deploy a commit to the Syntax Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant