FE: Update policy drawer with scan execution strategy
FE: Update policy drawer with scan execution strategy
Background
This issue implements frontend changes needed for the policy drawer (readonly view) component to support the new flexible scan execution policy trigger conditions as defined in Epic #11919. This is specifically for the policy list view where policies are displayed in a readonly format.
Problem to solve
Currently, the policy drawer in the policy list view doesn't properly display the new scan execution policy trigger conditions. When users configure policies with the new branch targeting options, the drawer needs to accurately represent these settings in a readonly format.
Proposal
Update the policy drawer (readonly view) to:
-
Display the new branch type options when configured:
branches targeting the default branchbranches targeting any protected branch
-
Present the condition information in a clear, readable format that helps users understand the configured policy without needing to edit it
Implementation details
- Update the policy drawer component to recognize and display the new branch type options
- Ensure proper formatting and labeling of the new condition types
- This change only affects the readonly view in the policy list, not the policy editor
Acceptance criteria
-
Policy drawer correctly displays policies configured with the new branch targeting options -
Information is presented clearly and consistently with other policy information -
Changes are behind the same feature flag as the main implementation