Skip to content

Refactor template selector jQuery dropdown to GitLab UI

What does this MR do and why?

Derived off draft MR: !96337

Migrate deprecatedJQueryDropdown template_selector.js to Gitlab UI / Vue

Changelog: changed

Before After
image image

How to set up and validate locally

To test for the dropdown

  1. Create or edit a new blob and set the filename any of the following:
  • License
  • Dockerfile
  • .gitignore
  • .gitlab-ci-yml
  1. Doing so should display a template selector beside the filename input.

To test for the popover

  1. On a repository/project with no existing .gitlab-ci-yml file, open this slug /-/new/main?commit_message=Add+LICENSE&file_name=.gitlab-ci.yml&suggest_gitlab_ci_yml=true&mr_path=mr_path
  2. A popover should show up beside the dropdown.

MR acceptance checklist

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

Related to #284734 (closed)

Edited by Shane Maglangit

Merge request reports