feat: squad chat wall with real-time comments, emoji reactions, and A…#19
Open
awidearray wants to merge 336 commits intomainfrom
Open
feat: squad chat wall with real-time comments, emoji reactions, and A…#19awidearray wants to merge 336 commits intomainfrom
awidearray wants to merge 336 commits intomainfrom
Conversation
Fix rate limit unit test
Feat/unit test connect x button
Feat/test setup
Fix/dashboard content fix
This reverts commit f43a7df.
re-add points component to dashboard
…nd fix notification population in details tab
Fix/user admin page fix
…ds-tab fix: users squad now loads in squads/my page
Fix/squadsbrowse stuck
push ref share link fix
push proposal card fix
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a squad chat wall feature that enables real-time messaging and emoji reactions via WebSockets and RabbitMQ. Key changes include:
- Adding a new 'join' event and RabbitMQ consumer in the WebSocket server for squad messages.
- Implementing new GET/POST and reactions API endpoints for squad messages.
- Creating a new React component for the Squad Chat UI that handles message fetching, posting, and reaction toggling.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/websocketServer.js | Added a 'join' event handler for room joining and a consumer for squad messages. |
| src/pages/api/squads/[squadId]/messages/index.ts | Introduced GET/POST endpoints to fetch and create squad messages. |
| src/pages/api/squads/[squadId]/messages/[messageId]/reactions.ts | Added a POST endpoint to toggle emoji reactions for messages. |
| src/models/SquadMessage.ts | Defined the SquadMessage schema with a pre-save hook for the createdAtDay field. |
| src/components/squads/SquadChat.tsx | Built the Squad Chat UI component with real-time updates and reaction handling. |
| src/app/squads/[squadId]/page.tsx | Integrated the Squad Chat component within the squad details page. |
linux08
reviewed
Jun 18, 2025
| export default function SquadChat({ squadId, currentUserWallet }: SquadChatProps) { | ||
| const [messages, setMessages] = useState<ChatMessage[]>([]); | ||
| const [input, setInput] = useState(''); | ||
| const [charLeft, setCharLeft] = useState(140); |
linux08
approved these changes
Jun 18, 2025
933f7cf to
c0d4e5b
Compare
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.
will need websocket set up by @daxdax89 for this feature to fully work