Added modal bottom sheet that shows list of users and their reaction #1283
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.
See who left an emoji reaction #740
This PR adds a new feature that shows detailed information about message reactions when long-pressing a reaction button. Users can see who reacted with which emoji in a bottom sheet.
Closes #740
Feature Description
When a user long-presses on a reaction:
A bottom sheet appears showing:
Each user row shows:
Tapping on a user's row navigates to their profile
Implementation Details
The implementation consists of two main parts:
ReactionUsersSheet
- The bottom sheet UI componentReactionChip
- Triggers the bottom sheetReactionUserSheet is in test\widgets\reaction_users_sheet_test.dart
Tests are in test\widgets\reaction_users_sheet_test.dart
Testing
displays emoji buttons correctly
displays user list correctly
handles unknown users gracefully
navigates to user profile on tap
switches between reactions
handles horizontal overflow with many reactions
handles vertical overflow with many users
handles long user names without overflow
displays different types of emojis correctly
Screenshots