Files
Nico 1a2b691ddb Policies: Include/Exclude label targeting on edit policy page (#33441) (#47354)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #46583

Figma:
https://www.figma.com/design/0F1sw63SuYaKVWlcL7mnc6/-33441-Policies--Custom-targets-with-%22Include-any%22-and-%22Exclude-any%22?node-id=5319-2300&t=Fszpf83KhcZ7ViWh-0

## Testing

- [x] Added/updated automated tests

- [x] QA'd all new/changed functionality manually

Note: selecting `Exclude All` will fail since BE doesn't support it yet.
Will be tackled as part of
https://github.com/fleetdm/fleet/issues/46582.


https://github.com/user-attachments/assets/12316264-b5b0-4588-b714-8f0aea11c604




<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added support for excluding labels when targeting policy hosts,
enabling more granular control over which hosts receive specific policy
configurations.

* **Refactor**
* Streamlined label-targeting state management and UI components for
improved performance and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-06-11 10:18:05 -03:00
..