Skip to content

Enable meta-click for new tab in work item children

Nick Leonard requested to merge 472258-wi-child-click-nl into master

What does this MR do and why?

Adds exact check to child link click so that cmd/ctrl click doesn't trigger the modal and can open a new tab. This affects work items and matches behavior of tasks opened from legacy issues.

Previously we checked for meta_key in work_item_links but not work_item_tree — this check happens on the link itself so it works regardless of parent widgets.

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
clickbe.gif click.gif

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable work_items_alpha work_items_epics work_items_epics_rollout
  2. From a group, create a work item epic (you should see a modal when clicking "New epic")
  3. Add child items to the work item epic
  4. Open a child item using click — the item should appear in a modal
  5. Open a child item using cmd+click — the item should not open a modal and should open in a new tab (assuming browser support as in Chrome)

Related to #472258 (closed)

Merge request reports

Loading