Skip to content

Conversation

@Omm2005
Copy link
Contributor

@Omm2005 Omm2005 commented Oct 27, 2025

This pull request introduces several improvements to the chat application, focusing on enhanced message animation, more granular reaction handling for split messages, and code readability. The most significant changes are grouped below:

Message Animation and UI Enhancements:

  • Added a staggered "slide-in" animation for the last few recent messages in the chat, making new messages appear more smoothly and visually appealing (app/globals.css, components/chat-area.tsx). [1] [2] [3] [4]
  • Animation delay is dynamically calculated based on message position and split index, ensuring a natural flow for split messages (components/chat-area.tsx). [1] [2]

Reaction Handling Improvements:

  • Reactions now support a splitIndex property, allowing users to react to individual split parts of a message. This includes updating reaction logic, UI components, and handlers to account for split messages (components/app.tsx, components/chat-area.tsx). [1] [2] [3] [4] [5] [6]
  • The reaction popover is now only shown when a message doesn't have a form or the form was already submitted, improving UX for interactive messages (components/chat-area.tsx).

Code Readability and Formatting:

  • Improved code formatting for better readability, especially in the chat API route and message handling logic (app/(chat)/api/chat/route.ts). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
  • Added MessageForm import for future extensibility in the chat area component (components/chat-area.tsx).

These updates collectively enhance the user experience by making chat interactions more dynamic and intuitive, while also improving maintainability and clarity in the codebase.

@vercel
Copy link

vercel bot commented Oct 27, 2025

@Omm2005 is attempting to deploy a commit to the supermemory Team on Vercel.

A member of the Team first needs to authorize it.

@Dhravya Dhravya self-requested a review October 28, 2025 03:49
@Dhravya Dhravya merged commit 01263ad into supermemoryai:main Oct 28, 2025
0 of 2 checks passed
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.

2 participants