Enable meta-click for new tab in work item children
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 |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable
work_items_alpha
work_items_epics
work_items_epics_rollout
- From a group, create a work item epic (you should see a modal when clicking "New epic")
- Add child items to the work item epic
- Open a child item using
click
— the item should appear in a modal - 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)