Skip to content

Disable file path input until project is selected

Alexander Turinske requested to merge 437946-update-selected-project-button into master

What does this MR do and why?

Disable file path input until project is selected

  • update no project selected text
  • add tooltip

EE: true

Changelog: changed

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.

Scenario Screenshot
Project not selected no_project_selected
Project selected project_selected

How to set up and validate locally

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

  1. Upload a GitLab Ultimate license
  2. Enable the feature flag echo "Feature.enable(:compliance_pipeline_in_policies)" | rails c.
  3. Create a group => Settings => General => Permissions and group features section
  4. Enable Run customized CI YAML file as security policy actions and save
  5. Navigate to a project in the group => Secure => Policies => New policy => Scan Execution Policy
  6. Add a new action => Run CI/CD code => Run Linked existing CI file
  7. Verify the file input is disabled
  8. Verify the prepend reads No project selected
  9. Verify that hovering over the prepend shows the tooltip with the no project selected info
  10. Select a project
  11. Verify the prepend updates to show the full path
  12. Verify that hovering over the prepend shows the tooltip with the project path

Related to #437946 (closed)

Edited by Alexander Turinske

Merge request reports