[go: up one dir, main page]

Skip to content

Auto-collapse resolved threads on merge requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Auto-collapse resolved threads on merge requests, and allow resolved threads to be manually expanded and re-collapsed.

Problem to solve

As mentioned in #21851, there is currently no way to see an overview of all unresolved or resolved discussion threads on merge requests. This means that when there are many threads within a single merge request, it is awkward to locate the one you are looking for - the only options available are

  1. to click the "jump to next unresolved thread" button, and
  2. to scroll manually.

#21851 proposes some ideas for improving the navigation by providing an overview; however that doesn't cater for users who want to just scroll manually (especially the less advanced ones who are not familiar with all UI features).

Proposal

When a discussion thread on a merge requests is resolved by clicking the "Resolve thread" button, that thread should be automatically collapsed, based on the understanding that once it is resolved there is nothing more to be done with it, so it should no longer clutter the UI.

Currently there is a "Collapse replies" toggle on threads which have replies, so it would probably make sense to replace that with a "Collapse thread" toggle which collapses not only replies but all comments including the original one.

It should be noted that GitHub already has this auto-collapse feature, as well as a "Show resolved" / "Hide resolved" toggle.

There could also be a global "Collapse all resolved threads" toggle alongside the existing "Collapse all threads" icon at the top.

Intended users

Anyone who uses thread resolution on merge requests.

Feature Usage Metrics

Usage could be tracked by counting the number of clicks on the "Resolve thread" and "Collapse thread" / "Expand thread" toggles.

Edited by 🤖 GitLab Bot 🤖