feat: ✨ Implement consecutive message grouping.#445
Open
japanshah-simform wants to merge 1 commit into
Open
Conversation
e1dea33 to
8f04002
Compare
7 tasks
There was a problem hiding this comment.
Pull request overview
Adds an opt-in “consecutive message grouping” feature to make chat threads more compact by grouping adjacent messages from the same sender on the same day (hiding repeated sender names/avatars and tightening spacing). This directly addresses the requested behavior in issue #128.
Changes:
- Added
enableConsecutiveMessageGroupingtoFeatureActiveConfig(defaultfalse). - Computed
isFirstInGroup/isLastInGroupat the list-item level and passed them intoChatBubbleWidget. - Updated bubble UI to conditionally show sender name/avatar and adjust bottom spacing; added documentation and changelog entry.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/widgets/chat_groupedlist_widget.dart | Computes grouping boundaries (isFirstInGroup / isLastInGroup) via adjacent message comparison. |
| lib/src/widgets/chat_bubble_widget.dart | Applies grouping UI behavior (hide repeated sender name/avatar, tighten margins). |
| lib/src/models/config_models/feature_active_config.dart | Introduces enableConsecutiveMessageGrouping feature flag. |
| doc/documentation.md | Documents how to enable and what changes visually when grouping is on. |
| CHANGELOG.md | Adds an unreleased entry for the new feature (currently with formatting/link issues). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
154
to
+159
| if (!isMessageBySender && | ||
| (featureActiveConfig?.enableOtherUserProfileAvatar ?? true)) | ||
| profileCircle(messagedUser), | ||
| Opacity( | ||
| opacity: isLastInGroup ? 1 : 0, | ||
| child: profileCircle(messagedUser), | ||
| ), |
Comment on lines
164
to
+169
| if (isMessageBySender && | ||
| (featureActiveConfig?.enableCurrentUserProfileAvatar ?? true)) | ||
| profileCircle(messagedUser), | ||
| Opacity( | ||
| opacity: isLastInGroup ? 1 : 0, | ||
| child: profileCircle(messagedUser), | ||
| ), |
| Rendering issue in attached image preview when sending message on web. | ||
| * **Feat**: [420](https://github.com/SimformSolutionsPvtLtd/chatview/pull/420) Added support for | ||
| `playerMode` in `VoiceMessageConfiguration` with `single` and `multi`. | ||
| * * **Feat**: [440](https://github.com/SimformSolutionsPvtLtd/chatview/pull/420) feat: :sparkles: Implement consecutive message grouping. |
| lastSeenAgoBuilderVisibility: false, | ||
| receiptsBuilderVisibility: false, | ||
| enableTextSelection: true, | ||
| enableTextSelection: true, |
8f04002 to
53fbc67
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.
Description
Grouping is Off.

Grouping is On.

Checklist
fix:,feat:,docs:etc).docsand added dartdoc comments with///.examplesordocs.Breaking Change?
Related Issues
Closes #128