Skip to content

Add id to MR state widget

Jessie Young requested to merge jy-add-id-to-mr-state-div into master

What does this MR do and why?

In the words of Brandy...

Have you ever [wanted an id on a div]

So much it makes you cry

Have you ever needed [an id on a div]

So bad you can't sleep at night

Well...I have 😄

When I have an MR on GitLab.com, it often has several dozen comments, notes etc. This means that finding the div to check who has approved the MR or to set auto-merge takes a lot of scrolling. It is a better UX to be able to add #widget-state to the end of the URL and link to this section.

Maybe a future iteration could be adding a keyboard shortcut that goes to this div via the id.

Screenshots or screen recordings

Before

Screen_Recording_2023-06-22_at_8.34.14_AM

After

Screen_Recording_2023-06-22_at_8.34.57_AM

How to set up and validate locally

  1. Visit any MR
  2. Add #state to the end of the URL
  3. You are taken to the merge request state widget

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jessie Young

Merge request reports

Loading