Draft: Hide prefill-variables in New Pipeline UI when variables are disabled

What does this MR do and why?

Implementation for #520072 (closed)

The reason we use a renderless component here is because we will reuse this logic. ex manual variables

Frontend: Abstract variables form in New pipeli... (#520831 - closed) must merge first.

Screenshots or screen recordings

can view variables cannot view variables
variables_enabled variables_disabled

How to set up and validate locally

  1. Navigate to Build > Pipelines > New pipeline button in the top right
  2. In a separate tab, navigate to Settings > CI/CD > Variables to view the "Minimum role to use pipeline variables" setting
  3. Update the setting to "No one allowed". The new pipeline page should hide the variables form
  4. Update the settings to "Developer". The new pipeline page should show the variables form
Edited by Briley Sandlin

Merge request reports

Loading