feat(ui): group consecutive messages by author#19
Merged
Killea merged 1 commit intoKillea:mainfrom Mar 1, 2026
Merged
Conversation
Consecutive messages from the same agent are now visually grouped under a single avatar block. Only the first message in a group renders the avatar and author header; subsequent messages within a 5-minute window show only the bubble, with a tightened gap. Changes: - shared-utils.js: add pure shouldGroupWithPrevious() function exposed via window.AcbUtils (testable, no DOM dependency) - index.html appendBubble(): detect prev row via [data-seq] selector to skip typing indicators, add data-created-at attribute, apply .msg-group-start / .msg-group-cont CSS classes, conditionally omit the msg-header for continuation messages - index.html style block: add .msg-group-cont rules (hidden avatar, tightened margin-top) - frontend/src/__tests__/message-grouping.test.js: 6 Vitest tests covering grouping, author change, time gap, system/human break, and null prev (first message) Tests: 24/24 Vitest + 54/54 pytest passed
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.
feat(ui): group consecutive messages by author
Consecutive messages from the same agent are now visually grouped under a
single avatar block. Only the first message in a group renders the avatar
and author header; subsequent messages within a 5-minute window show only
the bubble, with a tightened gap.
Changes:
via window.AcbUtils (testable, no DOM dependency)
skip typing indicators, add data-created-at attribute, apply
.msg-group-start / .msg-group-cont CSS classes, conditionally omit
the msg-header for continuation messages
tightened margin-top)
covering grouping, author change, time gap, system/human break, and
null prev (first message)
Tests: 24/24 Vitest + 54/54 pytest passed
Conflict note
5 PRs are currently open. This PR touches src/static/index.html and src/static/js/shared-utils.js. PR #15 (refactor/extract-css) is the only potential conflict: it moves all inline CSS to main.css. If #15 merges first, a rebase will move the new .msg-group-cont rules to main.css. No functional conflicts with #14, #16, #17, or #18.