Bug 161811 - [TRACK CHANGES] Changes in TC manager dialog should be in order of appearance in document.
Summary: [TRACK CHANGES] Changes in TC manager dialog should be in order of appearance...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Jim Raykowski
URL:
Whiteboard: target:25.2.0
Keywords: topicDesign, topicDoc, topicUI
Depends on:
Blocks: Track-Changes
  Show dependency treegraph
 
Reported: 2024-06-27 12:23 UTC by Olivier Hallot
Modified: 2024-07-26 06:09 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Addition of a drop down box to select sort by method. (599.73 KB, video/webm)
2024-07-08 18:03 UTC, Jim Raykowski
Details
screen shot of sort by control at the top of the dialog/panel (106.34 KB, image/png)
2024-07-10 15:52 UTC, Jim Raykowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2024-06-27 12:23:10 UTC
When reviewing track changes the Manager dialog the list of changes can be sorted by Action, Author, Date and comments.

The order in these list does not follow the order of appearance in the document. As consequence, approve/reject individual changes forces the cursor to jump back and forth in the document turning the revision process tedious because it breaks the comprehension of the text.

Actual results
--------------
When approving/reject changes, the cursor jumps back and forth in the document, in the order displayed in the Manager dialog.

Expected results
----------------
The list of changes should follow the order appearance of the text, in which the changes can be  better understood by the reviewer and revision process quicker.

Further comments
----------------

As discussed with Heiko, An additional column in the Manager can sort the changes in the appearance order, making it easier to review.
Comment 1 Heiko Tietze 2024-06-28 07:57:26 UTC
Sorting according different needs makes sense. So we should keep that. But an opportunity to sort by the appearance in the document is missing. Can we perhaps add an empty column, label it #, and sort respectively? Jim, you have done some work around TC recently. What do you think? 

According Olivier, a workaround to get back to the sequential sorting is to close and reopen the document.
Comment 2 Jim Raykowski 2024-07-05 20:01:22 UTC
While looking at adding an order column I noticed the behavior of the Manage Changes dialog/panel context menu Sort By > Document Position doesn't seem to behave as expected. For me, gtk sorts by the Action column. x11 and qt do something other than expected.

Here is a link to a patch that provides sort by document position results that seem correct to me:
https://gerrit.libreoffice.org/c/core/+/170059
Comment 3 Jim Raykowski 2024-07-08 18:03:01 UTC
Created attachment 195174 [details]
Addition of a drop down box to select sort by method.

Here is demo of an alternative to the addition of a position column.
Comment 4 Heiko Tietze 2024-07-09 08:15:30 UTC
(In reply to Jim Raykowski from comment #3)
> Created attachment 195174 [details]
> Addition of a drop down box to select sort by method.
> 
> Here is demo of an alternative to the addition of a position column.

The additional controls look clumsy to me. How about adding a first column to the tree view, with the caption # for instance and no content, and just sort by click. The context menu is also a good option.
Comment 5 Commit Notification 2024-07-10 15:38:17 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d9856b2ca5f3e80c978bd34330648b6345765202

tdf#161811 related: Fix change manager dialog context popup menu

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Jim Raykowski 2024-07-10 15:52:20 UTC
Created attachment 195209 [details]
screen shot of sort by control at the top of the dialog/panel

Maybe slightly less clumsy than having the control at the bottom. I've no real love for it myself.

Codewise, I struggle with the sort by unfilled column idea.
Comment 7 Heiko Tietze 2024-07-11 08:20:24 UTC
We may argue with accessibility, which is not given with click on the column header. Please take care to synchronize the column header click interaction with the dropdown. Perhaps just disable it.
Comment 8 Jim Raykowski 2024-07-12 03:28:51 UTC
Link to a patch that adds a drop down control to the Writer Manage Changes dialog/sidebar panel that can be used to select how the changes list is sorted:
https://gerrit.libreoffice.org/c/core/+/170390

Header click and drop down select are synchronized.

@Heiko, Does "Perhaps just disable it." refer to perhaps disabling the ability to sort by header click?

Should Calc 'Manage Changes' dialog also have this drop down sort control?
Comment 9 Heiko Tietze 2024-07-12 05:59:58 UTC
(In reply to Jim Raykowski from comment #8)
> @Heiko, Does "Perhaps just disable it." refer to perhaps disabling the
> ability to sort by header click?
That was my idea. But you took care of the synchronization and everything works well. One can also sort the sidebar by position and the dialog by author, which adds some icing on the cake.

> Should Calc 'Manage Changes' dialog also have this drop down sort control?
Calc has a Position tab, no need to put effort into it.
Comment 10 Commit Notification 2024-07-14 03:32:32 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2c46d3c2ff6bbdcd387771f823aa5b3b812c80a8

tdf#161811 Changes in TC manager dialog should be in order of

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.