Skip to content

Resolve "Commit detail has unclickable button with notes count"

What does this MR do and why?

Remove the comment count button on the commit view.

The button was disabled so didn't work when clicking. Navigating to the comments area does not require a button click since the comments are right under the file.

We removed the count for notes in the repository graph view #382720 (closed) and there is no user value in displaying this count.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
CleanShot_2024-01-04_at_14.15.47 CleanShot_2024-01-04_at_14.24.54

How to set up and validate locally

  1. Go to Code > Commits
  2. Select a commit and click on it to view it
  3. Add a comment to the commit
  4. Refresh the page
  5. There should not be a disabled button with the comment count on it

Related to #20359 (closed)

Edited by Michael Le

Merge request reports