Skip to content

Align editor comments visibility settings with preview - #2479

Merged
tf merged 7 commits into
codevise:masterfrom
tf:comments-editor-menu
Aug 31, 2026
Merged

Align editor comments visibility settings with preview#2479
tf merged 7 commits into
codevise:masterfrom
tf:comments-editor-menu

Conversation

@tf

@tf tf commented Aug 31, 2026

Copy link
Copy Markdown
Member

REDMINE-21261

tf added 7 commits August 27, 2026 18:32
Move CommentDisplayFilterProvider from frontend/commenting to review/,
so the editor's sidebar and preview iframe can share the mechanics of
the preview's resolution toggle. The provider itself now only carries
the context; useStoredCommentDisplayFilter keeps the resolution in local
storage under a caller-chosen key, so the editor and the preview
remember their setting separately.
Add a resolution prop to ThreadList: 'unresolved' drops the resolved
threads together with their count pill, 'all' shows them expanded behind
it. A thread the reviewer picked stays listed either way, so that
following a resolved comment from the activity feed does not end up in
an empty list.
Offer the resolution filter of the preview toolbar as two menu items
beside the comments view's activity button. The setting lives on the
entry, so both sidebar tabs and (later) the preview read the same
resolution, and is remembered across editor sessions.

Resolved threads and their count pill leave the entry-wide list while
it shows unresolved threads only; headings and type separators left
without threads go with them.
The selection tab keeps its fold, so the reviewer can still peek at
resolved threads of the current selection without turning them on
everywhere. The filter only decides whether it starts out open.
Hand the sidebar's resolution over to the preview iframe, on every
reload and whenever the reviewer picks another one, and let the section
and content element badges follow it. A subject whose threads are all
resolved reads as grey, the same as in the published entry's preview
mode.
Let the highlight overlay and the badge column of an editable text
follow the editor's filter, so that text a resolved thread refers to
reads as grey instead of staying unmarked until the thread is picked.
Add a checkbox to the comments view menu that stops comments from being
displayed on anything the reviewer has not selected: no badge dots on
sections and content elements, no highlights and badges on commented
text.

What reads as selected keeps its comments: a selected section or content
element shows its badge, the selection rect of an editable text shows
the comments of the blocks it spans, and the thread opened from the
sidebar keeps marking the text it refers to, so a comment can still be
followed into the preview. Put the other way around, nothing displays
that would have been a mere dot.

Framed as "always show comments" and checked by default, mirroring the
preview toolbar's show/hide toggle. The menu holds more than the
resolution filter now, so its title speaks of comment display.
@tf tf added this to the v17.2 milestone Aug 31, 2026
@tf
tf merged commit 68a736d into codevise:master Aug 31, 2026
18 checks passed
@tf
tf deleted the comments-editor-menu branch August 31, 2026 10:48
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