Skip to content

Multi-Type Post Reactions System#72

Open
GaneshKulakarni wants to merge 3 commits into
the-mayankjha:mainfrom
GaneshKulakarni:main
Open

Multi-Type Post Reactions System#72
GaneshKulakarni wants to merge 3 commits into
the-mayankjha:mainfrom
GaneshKulakarni:main

Conversation

@GaneshKulakarni
Copy link
Copy Markdown
Contributor

@GaneshKulakarni GaneshKulakarni commented Mar 7, 2026

📌 Overview

This PR introduces a multi-type reaction system for posts in HashTribe, replacing the previous single Like interaction with multiple expressive reactions.

The update enhances engagement and allows users to express different sentiments toward content, making the platform feel more like a modern social developer community.

Original Repository:
https://github.com/the-mayankjha/hashtribe

Updated Implementation:
https://github.com/GaneshKulakarni/hashtribe_1


❗ Previous Behavior

Previously, posts supported only a single "Like" interaction, which had several limitations:

  • Users could only express a single reaction
  • No way to distinguish between helpful, trending, or supportive posts
  • Limited interaction analytics
  • Reduced engagement possibilities

✅ New Implementation

🎯 Multi-Type Reaction System

Posts now support multiple reactions:

  • 👍 Like
  • 🚀 Useful
  • 🔥 Trending
  • ❤️ Support

⚡ Reaction Features

  • Users can click reactions directly on each post
  • Reaction counts update dynamically
  • Clicking the same reaction again removes it (toggle behavior)
  • Selected reactions are visually highlighted
  • Reaction counts are persisted in the backend

🧩 UI Improvements

  • Replaced the single Like button with a reaction bar
  • Displayed reaction icons with individual counters
  • Improved visual feedback for selected reactions
  • Fully responsive layout across devices

🛠 Backend Enhancements

  • Updated post schema to support multiple reaction types

  • Stored reactions with:

    • userId
    • reactionType
  • Enabled backend persistence for reaction counts


Note: Reactions currently trigger on double-click interaction to prevent accidental reactions during scrolling; this can be easily switched to single-click in future updates if required.


🧪 Testing

The feature was tested for:

  • ✅ Adding reactions
  • ✅ Removing reactions (toggle behavior)
  • ✅ Correct reaction count updates
  • ✅ UI highlight for selected reactions
  • ✅ Mobile and desktop responsiveness
  • ✅ No console errors

🎯 Impact

This feature improves the platform by:

  • Increasing user engagement
  • Allowing richer interaction with posts
  • Providing better analytics for trending content
  • Making HashTribe behave more like a modern social community

🔗 Related Issue

Closes #66

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 7, 2026

@GaneshKulakarni is attempting to deploy a commit to the flashcodes-themayankjha's projects 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.

Add Multi-Type Post Reactions (Beyond Like)

1 participant