Update placeholder for license exceptions
What does this MR do and why?
This change improves the user interface for a security policy editor by making text more contextually appropriate. Previously, there was only one generic placeholder text that told users to "specify packages where this license requires approval." Now the system can display different placeholder text depending on whether you're working with an "allow list" (packages that need approval) or a "deny list" (packages that don't need approval).
The code adds a new property called isDeniedList that tracks which type of list is being used, and then shows the appropriate placeholder text - either asking users to specify packages that require approval or packages that don't require approval. This makes the interface clearer and more helpful by providing context-specific guidance to users based on what they're actually trying to configure.
References
Screenshots or screen recordings
| Allow list | Deny list |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Go to Secure -> Policies
- New approval policy
- Select license scan in rules
- Allow list/Deny list -> select license and exceptions -> check a placeholder of a text area
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.
Related to #560189 (closed)

