fleet/frontend/context
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
..
app.tsx add anroid enterprise deleted banner (#26685) 2025-03-10 13:16:43 +00:00
notification.tsx Fleet UI: Fix policy software automation fail to report as failing (#26044) 2025-02-28 08:45:33 -05:00
policy.tsx Add ability to target labels on policies (#27599) 2025-04-02 16:31:03 -05:00
query.tsx Fleet UI: VPP auto install software on failed policies, filter software compatible to policy's target platform, etc (#25202) 2025-01-13 16:45:16 -08:00
routing.tsx Auth Redux Removal (#4924) 2022-04-07 09:08:00 -07:00
table.tsx UI - Enable "No team" for Policies (#21885) 2024-09-16 12:40:52 -04:00