fleet/frontend/interfaces
Scott Gress 096a747739
Ability to add labels to queries (front end) (#26867)
For #26649 

# Checklist for submitter

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.

## 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/26589, utilizing the
`labels_include_any` field. The expectation is that when creating or
updating a query, `labels_include_any` is an array of label names, and
when fetching a single query, `labels_include_any` is an array of
objects with a `name` and an `id` key.

As part of this work the `TargetLabelSelector` component is updated to
allow it to show a message in place of the dropdown when there are no
custom options (e.g. "include any", "include all", "exclude any") to
choose from.
2025-03-12 11:54:29 -07:00
..
activity.ts UI activites for android mdm (#26647) 2025-02-27 14:07:34 +00:00
campaign.ts update UI to react 18 (#17471) 2024-03-13 19:09:16 +00:00
certificates.ts Use server-side sort for host certificates (#26898) 2025-03-07 12:28:07 -06:00
config.ts add UI for turning android mdm on/off (#26517) 2025-02-21 17:23:38 +00:00
config_option.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
datatable_config.ts update UI to react 18 (#17471) 2024-03-13 19:09:16 +00:00
decorators.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
dropdownOption.ts FE: Update User menu to use react select 5 (#24281) 2024-12-20 10:39:06 -05:00
empty_table.ts Icons improvements (making frontend consistent with Figma component library) (#14185) 2023-10-31 16:06:38 +00:00
enroll_secret.ts Add/Edit/Delete enroll secret UI (#2645) 2021-11-15 16:16:06 -05:00
errors.ts Add metadata field to end user authentication UI (#24579) 2024-12-10 14:13:15 -06:00
form_field.ts Define new Query interfaces for queries with scheduling features (#12676) 2023-07-12 13:22:56 -07:00
host.ts UI - Only include custom sourced emails that are present (#24411) 2024-12-05 15:38:35 -08:00
host_summary.ts (Released bugs) Fleet UI label bugs: Dynamic platform labels, chromeos dashboard filters for missing chromeos hosts (#16680) 2024-02-09 11:02:23 -05:00
host_users.ts Host Details Page: Users table (#1152) 2021-06-22 12:26:57 -07:00
installer.ts Add UI for Fleet Sandbox to download prepackaged installers (#6721) 2022-07-19 14:28:06 -05:00
integration.ts add UI for certificate authority list (#26955) 2025-03-11 14:31:02 +00:00
invite.ts Fleet UI: 2FA (#24442) 2024-12-05 15:54:43 -05:00
label.ts Ability to add labels to queries (front end) (#26867) 2025-03-12 11:54:29 -07:00
license.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
list_options.ts Use server-side sort for host certificates (#26898) 2025-03-07 12:28:07 -06:00
macadmins.ts Add MDM Card to Windows and All Dashboards and change mdm data source on host details page (#8960) 2022-12-16 15:12:11 -06:00
mdm.ts Linux disk encryption: frontend changes, backend missing private key errors, remove disk encryption endpoints dependence on MDM being enabled (#23714) 2024-11-20 11:58:47 -08:00
notification.ts Fleet UI: Fix policy software automation fail to report as failing (#26044) 2025-02-28 08:45:33 -05:00
operating_system.ts more interface updates (#16644) 2024-02-15 10:35:05 -07:00
osquery_table.ts Frontend of iOS/iPadOS as platforms/labels (#20157) 2024-07-09 09:18:00 -04:00
pack.ts Frontend: Organize response interfaces into appropriate interface directories (#8742) 2022-11-18 11:25:39 -05:00
package_type.ts FMA: missing pieces (#22593) 2024-10-03 14:49:27 -03:00
platform.ts Add host certificates refetch to UI (#26630) 2025-02-27 11:33:49 +00:00
policy.ts 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
query.ts 21855 – Paginate and filter Queries on the server, update platform filtering from compatible to targeted platforms (#24446) 2024-12-11 10:50:28 -08:00
query_report.ts Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
query_stats.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
registration_form_data.js Remove username from UI (#1168) 2021-06-24 13:42:29 -07:00
registration_form_data.ts Fix missing field in setup confirmation (#2005) 2021-09-10 18:53:28 -05:00
schedulable_query.ts Ability to add labels to queries (front end) (#26867) 2025-03-12 11:54:29 -07:00
scheduled_query.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
script.ts Update dashboard, manage hosts, and host details UI for Android MDM feature (#26577) 2025-02-26 12:03:56 -06:00
software.ts Fleet UI: Auto-install VPP apps (#26455) 2025-02-24 16:01:55 -05:00
ssoSettings.ts Fleet UI: No role = no access, refactor jsx class components to typescript functional components (#12953) 2023-08-02 11:29:49 -04:00
status_labels.ts Include MIA hosts under total count for Offline hosts (#5854) 2022-05-23 14:11:02 -05:00
target.ts Frontend refactor: To typescript, remove unused testing stubs, functi… (#20306) 2024-07-24 12:08:38 -04:00
team.ts Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
team_subnav.ts UI – Team-level host expiry setting (#16276) 2024-01-25 18:19:49 +00:00
user.ts UI - use new db user settings to persist user's host table column preferences (#25185) 2025-01-09 10:53:43 -08:00
version.ts Auth Redux Removal (#4924) 2022-04-07 09:08:00 -07:00
vulnerability.ts Fleet UI: Improve CVE search responses (#21286) 2024-08-14 11:41:56 -04:00
webhook.ts UI – Activity feed webhook automation modal (#19285) 2024-05-28 13:18:02 -07:00