Pipeline inputs form: Update component for boolean type inputs

What does this MR do and why?

Related to #536233 (closed)

Update boolean control in pipeline inputs to use button toggle instead of dropdowns.

Screenshots or screen recordings

Before After
booleans_before booleans_after

How to set up and validate locally

  1. In the pipeline editor, set up a gitlab-ci.yml with a boolean input
spec:
  inputs:
    enable_cache:
      type: boolean
      description: "Enable caching of dependencies"
      default: true
    
    skip_tests:
      type: boolean
      description: "Skip running test suite"
      default: false
    
    node_version:
      type: string
      description: "Node.js version to use"
      options:
        - "16"
        - "18"
        - "20"
      default: "18"

---

build_job:
  script:
    - echo "$node_version $enable_cache $skip_tests"
  1. Navigate to /pipelines/new and validate the control

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Briley Sandlin

Merge request reports

Loading