feat/added stickers using svg support - #156
Closed
anshika-guleria wants to merge 2 commits into
Closed
Conversation
|
@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. |
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
stickerfield to the message schema.Added
favoriteStickersandrecentStickersarrays to the user model.Added sticker APIs:
GET /api/stickers/packsGET /api/stickers/user-dataPOST /api/stickers/favorites/togglePOST /api/stickers/recentsUpdated
sendMessage,sendGroupMessage, andforwardMessageto 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/:3. Interactive Sticker Picker
Created
StickerPicker.jsxwith: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.jsxto render sticker-only messages with:Screenshot
Testing
Closes Issue
Closes #119