Feat: Reactions, Supermemory AI reacting on text #3
+258
−41
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.
This pull request introduces significant improvements to the chat reaction system, focusing on better handling of reaction menus, actor attribution, UI consistency, and message content processing. The main changes involve refactoring how reaction menus are managed, ensuring reactions are correctly attributed to the current user, and updating UI elements for a more polished appearance. Additionally, backend processing now removes reaction markers from responses before saving messages.
Chat Reaction System Enhancements
Refactored reaction menu state management:
activeReactionTargetstate and related helpers (openReactionMenu,closeReactionMenu,isReactionMenuOpen, etc.) to control which reaction menu is open per message/split, improving UX and preventing multiple menus from opening. [1] [2] [3]Improved reaction actor attribution:
getReactionActorForMessageto consistently attribute reactions to the current user ("me") and refactored all relevant usages. [1] [2] [3] [4] [5] [6]UI and Styling Updates
Backend Message Processing
REACTION_MARKER_REGEXand removed markers from responses to prevent them from being stored or displayed as message content. [1] [2] [3]Popover and Reaction Handling
Other Minor Improvements
These changes collectively provide a more robust, user-friendly, and visually consistent chat reaction experience.
Screenshot
