Stanislav Lashmanov activity https://gitlab.com/slashmanov 2026-03-18T00:26:27Z tag:gitlab.com,2026-03-18:5215245421 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-line-range-drag-selection at GitLab.org / GitLab 2026-03-18T00:26:27Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (1fbfb0ac) at 18 Mar 00:26

Add line range drag selection for merge request Rapid Diffs

tag:gitlab.com,2026-03-18:5215210997 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-line-range-drag-selection at GitLab.org / GitLab 2026-03-18T00:07:12Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (42ec3417) at 18 Mar 00:07

Add line range drag selection for merge request Rapid Diffs

... and 196 more commits

tag:gitlab.com,2026-03-17:5215129731 Stanislav Lashmanov commented on merge request !226177 at GitLab.org / GitLab 2026-03-17T23:24:08Z slashmanov Stanislav Lashmanov

@jerasmus hi! Could you please review this last step for enabling CRUD in merge request Rapid Diffs?

tag:gitlab.com,2026-03-17:5215102143 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-components-use-store-actions at GitLab.org / GitLab 2026-03-17T23:07:48Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (0059b8a4) at 17 Mar 23:07

Update Rapid Diffs components to use store API actions

... and 62 more commits

tag:gitlab.com,2026-03-17:5214992037 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-resolve-threads at GitLab.org / GitLab 2026-03-17T22:20:14Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (c1f2f4a9) at 17 Mar 22:20

Collapse file threads

tag:gitlab.com,2026-03-17:5214940937 Stanislav Lashmanov commented on merge request !227774 at GitLab.org / GitLab 2026-03-17T22:01:11Z slashmanov Stanislav Lashmanov

@mle could you please have a look?

tag:gitlab.com,2026-03-17:5214934611 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-hidden-comments-no-preview at GitLab.org / GitLab 2026-03-17T21:59:01Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (4afa6563) at 17 Mar 21:59

Update gitlab.pot with new i18n strings

... and 1 more commit

tag:gitlab.com,2026-03-17:5214927331 Stanislav Lashmanov commented on issue #593921 at GitLab.org / GitLab 2026-03-17T21:57:42Z slashmanov Stanislav Lashmanov

@mle thoughts on this? I was thinking of showing a short message saying ' comments hidden, show file changes in order to see them.'. Here's the MR. WDYT?

tag:gitlab.com,2026-03-17:5214888468 Stanislav Lashmanov opened merge request !227774: Rapid Diffs: show hidden thread count on collapsed no-preview diff files at GitLab.org / GitLab 2026-03-17T21:49:37Z slashmanov Stanislav Lashmanov

What and why

Closes #593921

When a diff file is shown as no_preview (binary, too large, or otherwise not expandable inline), any line-level threads on that file are invisible — there are no diff rows to anchor them to. After a page reload the user has no indication that comments exist.

This adds an info alert directly inside the collapsed diff file whenever it has hidden line threads, showing the count: "N thread(s) hidden. Show file changes in order to see them." The alert updates reactively as discussions load and is cleaned up when the adapter is torn down.

The change covers both merge request and commit diff pages.

Reproduction steps (commit page)

  1. Find or create a commit that touches a binary or otherwise non-previewable file.
  2. Expand the diff, leave a line comment, then reload the page.
  3. Before: the no_preview diff shows no indication of the comment.
  4. After: an info alert appears inside the collapsed file: "1 thread hidden. Show file changes in order to see it."

Showcase

tag:gitlab.com,2026-03-17:5214885420 Stanislav Lashmanov pushed new project branch slashmanov/rapid-diffs-hidden-comments-no-preview at GitLab.org / GitLab 2026-03-17T21:48:42Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (710c16f9) at 17 Mar 21:48

tag:gitlab.com,2026-03-17:5214848022 Stanislav Lashmanov commented on merge request !226953 at GitLab.org / GitLab 2026-03-17T21:37:29Z slashmanov Stanislav Lashmanov

I did not forget about this and it's actually quite a complex issue. We need to address this in Rapid Diffs for sure, but there's another issue with this. Even if we add a comment for an expanded diff we need to either:

  1. Expand it on the server when the comment is present only in the expanded view
  2. Contain all the skipped comments to be visible within a collapsed diff

I've created issues for both of these problems:

  1. Support comments on previously collapsed diffs (#593919)
  2. Show hidden comments for collapsed diffs (#593921)
tag:gitlab.com,2026-03-17:5214812787 Stanislav Lashmanov opened issue #593921: Show hidden comments for collapsed diffs at GitLab.org / GitLab 2026-03-17T21:27:47Z slashmanov Stanislav Lashmanov tag:gitlab.com,2026-03-17:5214799119 Stanislav Lashmanov opened issue #593919: Support comments on previously collapsed diffs at GitLab.org / GitLab 2026-03-17T21:24:28Z slashmanov Stanislav Lashmanov tag:gitlab.com,2026-03-17:5214771648 Stanislav Lashmanov commented on merge request !226730 at GitLab.org / GitLab 2026-03-17T21:16:10Z slashmanov Stanislav Lashmanov

@thomasrandolph hi! Could you please review this one when you get a chance?

tag:gitlab.com,2026-03-17:5214708306 Stanislav Lashmanov pushed to project branch slashmanov/rapid-diffs-resolve-threads at GitLab.org / GitLab 2026-03-17T20:53:46Z slashmanov Stanislav Lashmanov

Stanislav Lashmanov (53723b0c) at 17 Mar 20:53

Collapse file threads

... and 678 more commits

tag:gitlab.com,2026-03-17:5214674698 Stanislav Lashmanov commented on merge request !8539 at GitLab.org / Gitaly 2026-03-17T20:42:57Z slashmanov Stanislav Lashmanov

We could always start with that and see if we can improve it in the future?

We're aligned then. I'll wait for a merge of this MR and Gitaly version bump, then we can enable the new codepath behind a feature flag.

tag:gitlab.com,2026-03-17:5214647000 Stanislav Lashmanov commented on merge request !8539 at GitLab.org / Gitaly 2026-03-17T20:33:48Z slashmanov Stanislav Lashmanov

@slashmanov Isn't it possible that a file has only whitespace changes and so it's only visible in one context of the changes? What happens in that case?

@phikai this happens (and will continue to happen):

image

2/2 here is line counters with the whitespace changes shown, otherwise it would be 0/0.

tag:gitlab.com,2026-03-17:5214636303 Stanislav Lashmanov commented on merge request !8539 at GitLab.org / Gitaly 2026-03-17T20:30:38Z slashmanov Stanislav Lashmanov

Is that the right understanding? I still don't think that's ideal since presumably you could have a different file count vs. the number of visible files?

@phikai that's the correct understanding. However the number of files shown is not going to change. This only affects line counters.

tag:gitlab.com,2026-03-17:5214563411 Stanislav Lashmanov commented on issue #569600 at GitLab.org / GitLab 2026-03-17T20:06:31Z slashmanov Stanislav Lashmanov

I can't reproduce it right now. I'll reopen if I can reproduce it again reliably.