Skip to content

Phase 4: render reactions in chat modal#1234

Merged
osyed merged 5 commits intomainfrom
phase4-render-reactions
Apr 7, 2026
Merged

Phase 4: render reactions in chat modal#1234
osyed merged 5 commits intomainfrom
phase4-render-reactions

Conversation

@dnlbui
Copy link
Copy Markdown
Collaborator

@dnlbui dnlbui commented Apr 7, 2026

Summary

This PR opens phase4-render-reactions against main so the chat reaction work can be reviewed from the default branch.

What changed

  • adds the reaction rendering layer in ChatModal
  • wires reaction-only updates into chat refresh handling
  • updates the modal logic that applies reaction changes to message state
  • adds the CSS needed to display reaction chips in the message UI

Why

The reaction rollout needs the chat UI layer that actually shows stored reaction state to users.

Impact

Because main does not yet contain the prerequisite phase 3 reaction commits from this branch, this PR currently includes both:

  • the phase 3 optimistic/local reaction state handling
  • the phase 4 reaction rendering changes

Validation

  • compared phase4-render-reactions against main
  • reviewed the commit list and diff summary for the branch
  • no automated tests were run as part of opening this PR

dnlbui added 5 commits April 6, 2026 16:08
- Added logic to manage local reactions based on incoming reaction events, allowing for immediate UI updates.
- Introduced a mechanism to apply reactions optimistically and save the state if successful.
- Enhanced error logging for cases where local reaction application is skipped, improving debugging capabilities.
…se management

- Moved the transaction response check for sending reaction messages to a more logical position in the code.
- Restored error logging for failed reaction message sends, enhancing debugging capabilities.
- Removed unnecessary state saving before the transaction response check to streamline the process.
- Introduced a new UI component for displaying message reactions, enhancing user interaction within chat messages.
- Updated the logic to apply pending reactions and trigger chat modal updates when reactions are applied.
- Enhanced CSS styles for reaction chips to improve visual presentation and layout consistency.
- Added functionality to manage and display reactions based on user ownership, improving clarity in chat interactions.
- Introduced normalization for user and contact addresses to streamline reaction processing.
- Refactored the logic for displaying message reactions, improving clarity and ownership representation.
- Updated CSS by removing unnecessary styles for contact reactions, focusing on user-specific reaction styling.
- Removed visibility state check before appending the chat modal, ensuring it is displayed regardless of the document's visibility state when a pending reaction is applied.
- Streamlined the logic for showing the chat modal during reaction processing, enhancing user experience in chat interactions.
@dnlbui dnlbui marked this pull request as ready for review April 7, 2026 22:53
@osyed osyed merged commit d223a3e into main Apr 7, 2026
3 of 4 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