Disable file path input until project is selected
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 | |
Project selected |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Enable the feature flag
echo "Feature.enable(:compliance_pipeline_in_policies)" | rails c
. - Create a group => Settings => General => Permissions and group features section
- Enable Run customized CI YAML file as security policy actions and save
- Navigate to a project in the group => Secure => Policies => New policy => Scan Execution Policy
- Add a new action => Run CI/CD code => Run
Linked existing CI file
- Verify the file input is disabled
- Verify the prepend reads
No project selected
- Verify that hovering over the prepend shows the tooltip with the no project selected info
- Select a project
- Verify the prepend updates to show the full path
- Verify that hovering over the prepend shows the tooltip with the project path
Related to #437946 (closed)
Edited by Alexander Turinske