Copy reference in breadcrumb

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

Background

Following up from 💬 Feedback: Issuable sidebar updates (#406603 - closed):

  • Copy reference is currently located in dropdown
  • Clicking the MR/issue number in the breadcrumb doesn't currently do anything (other than reload the page)

Proposal

This applies to merge requests, issues, epics, and incidents:

  • Copy reference on breadcrumb click
  • Remove option from dropdown

Option A --> Convert breadcrumb to a copy button

Pros

  • No additional UI elements needed
  • Converts something that wasn't very useful into something that serves a purpose

Cons

  • Not particularly discoverable
  • Clicking different parts of breadcrumb would do different things (ie link to a different page vs copying reference)

Option B --> Add copy icon button

Credit to @ldet:

Screenshot_2023-07-26_at_2.32.20_PM

Pros

  • Discoverable
  • Separate from actual breadcrumb link (which presumably would still reload the page as usual)

Cons

  • Still have a somewhat useless link that reloads the page, always available
  • Adds an additional UI element; might not be the direction we were planning on for the breadcrumb bar

Option C --> Convert current breadcrumb to dropdown

Default On click
Group_1 Group_3

Pros

  • Adds all items from dropdown to always-available breadcrumb bar
  • Scales well- could be used for different actions depending on the page

Cons

  • Not sure of current breadcrumb plan; is this possible?
  • Potentially not discoverable
Edited by 🤖 GitLab Bot 🤖