feat(message): show grouped-message timestamps and clickable edit history - #1969
Draft
Th-Underscore wants to merge 21 commits into
Draft
feat(message): show grouped-message timestamps and clickable edit history#1969Th-Underscore wants to merge 21 commits into
Th-Underscore wants to merge 21 commits into
Conversation
Th-Underscore
force-pushed
the
feat/message-edit-timestamps
branch
from
August 27, 2026 03:14
e432aed to
70e2ea3
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.
Note: #1942 adds an always-on timestamps setting; this PR takes a complementary hover-only approach and will be rebased on top of dev after that merges.
Description
Two related timeline polish items:
timeHourMinute, matching the existing "reacted with" underscript styling). The most recent message already shows its time - this surfaces the hidden ones.(edited)shows a tooltip with the edit timestamp(s) (newest last, viagetEventEdits). Clicking it now opens the message's version history - the exact same modal as right-click -> "Version History". Keyboard accessible (Enter/Space); propagation is stopped so surrounding message handlers don't fire.Purely cosmetic interaction layer; no data changes. Related to #1942 (which shows timestamps in the message header) - this takes a lighter-weight approach that only surfaces times on hover, keeping the timeline uncluttered.
Tested on the desktop app, Ubuntu 24.04.
Type of change
Checklist:
.changesetAI disclosure:
I designed and directed the features and tested them in the GUI; the code itself was AI-generated.
The timestamp footnote reuses the reaction underscript's typography scale and renders from the same collapse-grouping pass the timeline already computes. Edit timestamps thread through an
editTimestampsprop fromRenderMessageContentinto the text renderers soMessageEditedContentcan build tooltip strings. Click-to-history reuses the context menu'ssetModal({ type: ModalType.EditHistory, ... })call verbatim rather than reimplementing it, gated onroom && mEventbeing present so non-timeline render sites stay inert.