VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 69 forks source link

feat: Combined the feature of like/dislike with the reaction feature successfully issue 252 #253

Closed MeetDOD closed 3 months ago

MeetDOD commented 3 months ago

Pull Request Resolves [#252 ]

Title: Combined the feature of like/dislike with the reaction feature successfully.

Description

  1. Removed the like/dislike routes and controllers from the backend and created a fresh 4 api's for reactions.
  2. API's are reactToPostController,removeReactionController, getUserReaction, getAllreaction and their respective routes.
  3. In frontend, I created ReactionButtons.tsx which post and get the reaction which allow user to do reactions.
  4. In PostCard I fetched all the reaction by all the users and sum it up to show total and the emoji will show only one time each.
  5. I created five emoji exactly like linkedin also ~ same colors => 'Like' | 'Celebrate' | 'Support' | 'Love' | 'Insightful' | 'Funny'.
  6. The design is simple and easy to use by any user.
  7. User most be a verified user and also logged In to the application.
  8. By default if user click on button it will trigger like button or he/she can choose from various emoji's also again click it will remove the emoji.

Related Issues

Fixes #252

Changes Made

New features: Combined the feature of like/dislike with the reaction feature

Screenshots

image

Video

https://github.com/VaibhavArora314/StyleShare/assets/120380073/75f601fe-32f5-4952-8722-6104457c87bf

I certify that I have carried out the relevant code of conduct and provided the requisite screenshot for validation by submitting this pull request.

Thank You for this contribution.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
style-share βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 18, 2024 7:56am
github-actions[bot] commented 3 months ago

Thank you for submitting your pull request! πŸ™Œ We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

MeetDOD commented 3 months ago

@VaibhavArora314 It's Done πŸ˜„, please merge this PR first because their are many changes done, if you merge other PR than it will lead to huge conflicts because their are many changes done.

MeetDOD commented 3 months ago

@VaibhavArora314 done both the changes as requested.

image

MeetDOD commented 3 months ago

Hello, @VaibhavArora314 any updates 😒

VaibhavArora314 commented 3 months ago

Hello, @VaibhavArora314 any updates 😒

sorry for the late response. looks good to me now.

github-actions[bot] commented 3 months ago

πŸŽ‰ Your pull request has been successfully merged! πŸŽ‰ Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! πŸš€