Skip to content

Preview commenting#2395

Merged
tf merged 9 commits intocodevise:masterfrom
tf:preview-commenting
Apr 13, 2026
Merged

Preview commenting#2395
tf merged 9 commits intocodevise:masterfrom
tf:preview-commenting

Conversation

@tf
Copy link
Copy Markdown
Member

@tf tf commented Apr 13, 2026

REDMINE-21261

tf added 8 commits April 13, 2026 14:53
Clicking the comment badge on a content element opens a bubble
displaying all threads with their comments. The ThreadList
component renders author names and comment text, filtered by
subject.

REDMINE-21261
Threads with replies collapse when multiple threads exist,
showing reply count with an avatar stack of unique authors.
Clicking expands to reveal all replies. Comments display
author avatar with hue derived from name, formatted date,
and body text indented past the avatar.

REDMINE-21261
Previewers can create a new comment thread with an initial
comment on a content element. The ReviewSession posts to the
API, the ReviewMessageHandler routes the postMessage, and the
NewThreadForm collects user input.

REDMINE-21261
Render CSRF meta tags in the entry preview when commenting is
enabled so the review API can verify POST requests. The JS
request helper reads the token from the meta tag and includes
it in the X-CSRF-Token header.

REDMINE-21261
Show the form automatically when no threads exist. When
threads are present, show a "New topic" button that reveals
the form on click. The form hides again after submission.

REDMINE-21261
Add a reply form to each thread that shows a textarea and
reveals a Send button with icon when text is entered. Replies
are posted to the comments API and appended to the thread in
the ReviewSession.

REDMINE-21261
Add a chevron button to threads with replies for
expand/collapse.

REDMINE-21261
Split the content element commenting overlay into three
focused components: FloatingAnchor positions a portal
relative to the element, Popover manages badge toggle and
dismiss, ContentElementDecorator composes them. FloatingAnchor
passes placement to Popover via render prop so it can control
its own flex layout direction.

REDMINE-21261
@tf tf added this to the v17.2 milestone Apr 13, 2026
Let reviewers enter a mode where content elements become
selectable for commenting. Selecting an element exits the mode,
highlights the element with an accent border, opens the comment
popover, and hides other badges to reduce clutter. Clicking
outside or toggling the toolbar button dismisses the mode.

REDMINE-21261
@tf tf force-pushed the preview-commenting branch from c3b99de to e1640f7 Compare April 13, 2026 13:22
@tf tf merged commit 0dd2585 into codevise:master Apr 13, 2026
18 checks passed
@tf tf deleted the preview-commenting branch April 13, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant