PublicDataWorks / verdad-frontend

MIT License
1 stars 0 forks source link

VER-178: [Frontend] Implement Like/Dislike Functionality for Snippets #146

Open nhphong opened 1 week ago

nhphong commented 1 week ago

Enhance the snippets feature by adding Like/Dislike functionality. This will involve updating the frontend to display the user's like status for each snippet, allowing users to interact and provide feedback on the snippets they view.

Acceptance Criteria:

  1. Add Like/Dislike buttons for each snippet displayed on the frontend.
  2. Modify the get_snippets and get_snippet API functions to include user_like_status for each snippet.
  3. Display the user_like_status on the frontend to reflect whether the user has liked or disliked each snippet.
  4. Ensure the Like/Dislike status updates dynamically when a user interacts with these buttons.
  5. Provide visual feedback for users when they like or dislike a snippet (e.g., change button color or icon).
  6. Ensure that the functionality is responsive and works seamlessly across different devices and browsers.

Tasks:

Comments:

linear[bot] commented 1 week ago

VER-178 [Frontend] Implement Like/Dislike Functionality for Snippets