Skip to content

feat/added stickers using svg support - #156

Closed
anshika-guleria wants to merge 2 commits into
CodePlaygroundHub:mainfrom
anshika-guleria:feat/add-sticker-support
Closed

feat/added stickers using svg support#156
anshika-guleria wants to merge 2 commits into
CodePlaygroundHub:mainfrom
anshika-guleria:feat/add-sticker-support

Conversation

@anshika-guleria

Copy link
Copy Markdown
Contributor

Summary

Implemented native sticker pack support for PasoChat, allowing users to send and receive expressive, categorized stickers in both direct and group conversations.

Key Changes

1. Backend Architecture & Database Sync

  • Added sticker field to the message schema.

  • Added favoriteStickers and recentStickers arrays to the user model.

  • Added sticker APIs:

    • GET /api/stickers/packs
    • GET /api/stickers/user-data
    • POST /api/stickers/favorites/toggle
    • POST /api/stickers/recents
  • Updated sendMessage, sendGroupMessage, and forwardMessage to support sticker messages.

  • Added support for reply previews when working with sticker messages.

  • Recent stickers are deduplicated and limited to 30 items.

2. Built-in Sticker Packs

Added 46 SVG stickers across 5 curated packs in frontend/public/stickers/:

  • Reactions & Moods — Mindblown, Laughing, Crying, Party, Cool, Heart Eyes, Fire, Facepalm, Thinking, Shocked, Angry, Angel
  • Pepe & Memes — Pepe Happy, Pepe Sad, Pepe Hype, Big Brain Pepe, Doge Wow, 100 Percent, GG WP, Stonks, Popcat, Bruh
  • Cute Animals — Cat Love, Coder Cat, Happy Pup, Sleepy Fox, Bear Hug, Cheering Bunny, Panda Munch, Waddling Penguin
  • Anime & Chibi — Sparkle Eyes, Chibi Rage, Nervous Sweat, Kawaii Blush, Peace Sign, Sleepy Chibi, Pro Gamer, Coffee Time
  • Vibes & Gestures — Thumbs Up, Heart Hands, High Five, Peace Out, Clapping, Rocket Launch, Super Star, Fresh Coffee

3. Interactive Sticker Picker

Created StickerPicker.jsx with:

  • Real-time sticker search by name, pack, and emotion tags
  • Categorized tabs for All, Recent, Favorites, and individual packs
  • Favorite/unfavorite functionality with instant feedback
  • One-click sticker sending
  • Lazy-loaded sticker assets with loading fallbacks
  • Outside-click dismissal

4. Message Composer & Chat Bubble

  • Integrated a dedicated Sticker button into MessageInput.jsx.

  • Added a separate sticker picker popup with outside-click dismissal.

  • Updated MessageBubble.jsx to render sticker-only messages with:

    • Transparent backgrounds
    • Smooth hover animations
    • Timestamps and message status
    • Reactions
    • Forwarding
    • Reply previews

Screenshot

Screenshot (2030) Screenshot (2031) Screenshot (2032) Screenshot (2033) Screenshot (2034) Screenshot (2035)

Testing

  • Verified sticker sending and receiving in direct conversations.
  • Verified sticker sending and receiving in group conversations.
  • Verified favorites and recent stickers persist correctly.
  • Verified forwarding and replying to sticker messages.
  • Verified responsive sticker picker behavior.

Closes Issue

Closes #119

@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

@anshika-guleria is attempting to deploy a commit to the Akash Santra 's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 72564cf6-d757-4029-9c45-c8a0a4f72657


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

[FEATURE] Add Sticker Packs Support for Chat Messages

1 participant