Skip to content

Use Linked File feature when navigating to a Changes file from the MR Overview

What does this MR do and why?

For #505475 (closed)

Merge request Changes has a feature that will prioritize loading and displaying a specific file first if it's directly linked.

This change to the Overview tab uses that feature so that clicking the link to a file from a discussion quickly shows that file.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screencast_from_2025-02-12_11-31-14 Screencast_from_2025-02-12_11-27-48

How to set up and validate locally

  1. Leave a comment on a Diff file from the Changes tab
  2. Go to the Overview tab
  3. Click the file name of the context diff surrounding your comment
  4. The "Linked File" feature should be active in the Changes tab
    • Modified icons in the tree image
    • The file should be highlighted, and displayed first
Edited by Thomas Randolph

Merge request reports

Loading