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

Changing all related functions such that reactions button is linked to reaction-count tooltip #49

Open
4 tasks
yukiiii04 opened this issue Feb 28, 2025 · 0 comments
Assignees

Comments

@yukiiii04
Copy link
Contributor

Description

This sub issue is for getting the actual reaction button to show up. The user would click on this reaction button to toggle a reaction. For this project, we wanted to implement separate buttons for different reactions, but for the sake of time and development, we changed it so that we only have 1 overall button for this purpose.

Acceptance Criteria

This part feature will be accepted after verifying that:

  • button with fa-smile icon shows up on post container and still changes styling when hovered and clicked
  • when clicked, reaction-count should increment by 1
  • when button is already clicked, if the user clicks again, then it should count as an unreact, and count should decrease by 1 (delta = 0 in total for this specific uid)
  • when count button is clicked, a tooltip should show up, showing how many people and who has reacted on this post.

Implementation

To implement this, @yukiiii04 and @lynzhlang had to go through all relevant files for Upvote/Downvote, which we identified to be the most similar to the feature we want to create.

Dependencies

Dependent on #45 to be created first.

Resources

Branch: reactions-sprint2-lynn
All relevant files doc: https://docs.google.com/document/d/19IliLN_3vqqb-hlR2MCBgwjhhXwsxUy8r6mByMTBIhs/edit?tab=t.0

Testing

This change should be (and can be tested) through navigating to posts after they are posted and seeing if the acceptance criteria are met.

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

No branches or pull requests

2 participants