fleet/frontend/components/PlatformSelector
Scott Gress d6eaa0913a
Add ability to target labels on policies (#27599)
For #27276 

# Details

This PR adds the ability to select labels when saving or editing a query
in the UI, so that the query will only target hosts with those labels.
It follows the API design from
https://github.com/fleetdm/fleet/pull/27196, utilizing the
labels_include_any and labels_exclude_any fields. The expectation is
that when creating or updating a query, labels_include_any and
labels_exclude_any are arrays of label names, and when fetching a single
query, they are arrays of objects with a name and an id key.

Other updates in this PR:

* Removed colons from various headings on the Save Policy Modal and Edit
Policy form
* Updated the "Delete label" text
* Removed "Policy runs on all hosts with these platforms." subheading
underneath the platform selector
* TargetLabelSelector component now has `suppressTitle` flag to turn off
the "Target" title.
2025-04-02 16:31:03 -05:00
..
_styles.scss Fleet UI: Add copy for policy tied to install software (#25242) 2025-01-08 11:05:38 -05:00
index.ts Add ability to detect compatibility and update which hosts are checked for a policy (#4703) 2022-03-21 11:51:00 -05:00
PlatformSelector.stories.tsx Fleet UI: Add ChromeOS to user flows related to policies (#12095) 2023-06-06 09:44:55 -04:00
PlatformSelector.tsx Add ability to target labels on policies (#27599) 2025-04-02 16:31:03 -05:00