fleet/frontend/services/entities
Nico e5849ee720
Show Manage Automations disabled button with tooltip on Queries page (#39302)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #39303 (child of #25080).

- Added `inherited_query_count` to `ListQueriesResponse` (thought of
adding a brand new endpoint just for counting, but felt like extending
the current one was good enough). In the parent task, [it was
suggested](https://github.com/fleetdm/fleet/issues/25080#issuecomment-3326071574)
to `"Depend on team list entity endpoint's count field / team entity
count endpoint for whether or not to disable the manage automations
button"`, which Rachael approved, so I went for this approach.
- The `ManageQueryAutomationsModal` now fetches its own data with
`merge_inherited = false` (meaning it only fetches non-inherited queries
only). Previously, queries were passed down as props to it, which would
not show the queries available to automate if the first page of queries
were all inherited and the second page contained queries for that team
(the user would have to navigate to the second page for the button to be
enabled).


^ The fact that the modal fetches its own data is similar behavior to
what is currently done in `Policies`. For queries, I noticed that we
would need to add pagination within the `Manage Automations` modal, but
that can be a follow-up.

<img width="2480" height="1309" alt="Screenshot 2026-02-04 at 11 48
42 AM"
src="https://github.com/user-attachments/assets/ebac79a5-a793-4708-9313-d9a697dfd7de"
/>


# 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/guides/committing-changes.md#changes-files)
for more information.

## Testing

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



https://github.com/user-attachments/assets/119f03b9-dde1-4bb9-9fee-6204b1a58879
2026-02-09 15:16:28 -03:00
..
activities.ts feat activity audit fancy search activities (#35825) 2025-12-01 16:48:43 +00:00
autofill.ts Fix policy autofill using incorrect media-type for query (#30112) 2025-06-18 13:12:58 -04:00
certificates.ts Update "add certs" naming (#37658) 2025-12-23 13:23:16 -08:00
command.ts add UI pagination to host mdm commands feed (#37453) 2025-12-19 08:52:30 -05:00
common.ts UI: Windows setup experience > install software (#32934) 2025-09-16 10:12:25 -07:00
conditional_access.ts Fix Okta IdP signing cert. (#37078) 2025-12-11 09:04:49 -06:00
config.ts add startup assistant to the UI (#17731) 2024-03-26 14:46:33 +00:00
config_profiles.ts Feat UI host filter by custom profiles (#29038) 2025-05-15 12:37:45 +01:00
device_user.ts Conditional Access Bypass Device UI and backend change (#38939) 2026-01-29 18:10:07 -05:00
disk_encryption.ts Add "Require BitLocker PIN" checkbox to disk encryption page (#31132) 2025-07-23 14:36:28 -05:00
enroll_secret.ts Update UI to handle "No team" filters (#10706) 2023-03-31 12:40:14 -05:00
global_policies.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
global_scheduled_queries.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
host_count.ts UI: Filter hosts by batch execution status (#29612) 2025-06-09 10:53:17 -07:00
host_query_report.ts UI – Host query report page (#15511) 2023-12-08 16:54:24 -08:00
host_summary.ts Fleet UI: Missing host and low disk space filters on dashboard and manage host page (#7728) 2022-10-14 15:21:30 -05:00
hosts.ts Manually update & delete host IdP mappings (#35325) 2025-11-13 09:05:40 -08:00
idp.ts add new idp section on integrations page and show the users idp connection with fleet (#27566) 2025-03-28 11:23:07 +00:00
installers.ts adjust installers endpoint to avoid AJAX downloads (#7226) 2022-08-16 12:54:41 -03:00
invites.ts UI – Updates to confirm invite flow (#25583) 2025-01-24 10:55:39 -08:00
labels.ts API + auth + UI changes for team labels (#37208) 2025-12-29 21:28:45 -06:00
macadmins.ts Fleet UI: macOS dashboard MDM solutions (#7014) 2022-08-15 17:47:07 -05:00
mdm.ts use combined endpoint for android (#37562) 2025-12-19 15:55:53 -04:00
mdm_android.ts hook up SSE for UI android sse (#26656) 2025-02-27 18:45:41 +00:00
mdm_apple.ts Fleet UI: Add, view, install Google Play Apps (#35177) 2025-11-14 13:24:41 -05:00
mdm_apple_bm.ts feat: enable multiple ABM and VPP tokens (#21693) 2024-08-29 18:51:46 -04:00
operating_systems.ts Fix non-Linux not displaying all OS version. (#35220) 2025-11-05 17:02:55 -06:00
osquery_options.ts Update UI to handle "No team" filters (#10706) 2023-03-31 12:40:14 -05:00
packs.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
queries.ts Show Manage Automations disabled button with tooltip on Queries page (#39302) 2026-02-09 15:16:28 -03:00
query_report.ts Added optional team_id parameter to query report endpoint (#24811) 2024-12-17 13:26:35 -06:00
scheduled_queries.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
scripts.ts UI: Batch script run detail page (#32333) 2025-08-29 09:37:05 -06:00
secrets.tsx UI for managing custom variables (#31875) 2025-08-15 08:24:55 -05:00
sessions.ts Fleet UI: 2FA (#24442) 2024-12-05 15:54:43 -05:00
software.ts Bump installer max size, make configurable (#38122) 2026-01-19 13:36:01 -06:00
spec.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
status.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
status_labels.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
targets.ts Fleet UI: Fix new query bugs introduced (#14309) 2023-10-06 10:03:19 -07:00
team_policies.ts Refactor paginated list to use UseQuery (#33669) 2025-10-28 11:27:05 -05:00
team_scheduled_queries.ts Update UI to handle "No team" filters (#10706) 2023-03-31 12:40:14 -05:00
teams.ts Added frontend support for No team automations (#32507) 2025-09-02 18:02:54 -05:00
users.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 Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
vulnerabilities.ts Fleet UI: Exact match vulnerabilities search when wrapped in quotes (#21375) 2024-08-27 09:14:38 -04:00