Commit Graph
6 Commits
Author SHA1 Message Date
Nico ee2d17ad6c Hide Add Query button on Host Details for unsupported host platforms (#37912)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #37847 

# Checklist for submitter

Issue is resolved by the `&& isSupportedHostQueriesPlatform` condition.

## Testing

- [x] Added/updated automated tests
- [ ] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

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

Manually tested by passing a mocked host platform (`"ios"`) and verified
the **Add Query** button is not shown.

### Before

<img width="719" height="399" alt="Screenshot 2026-01-06 at 1 55 33 PM"
src="https://github.com/user-attachments/assets/12cf1bc7-62bb-4e8b-a005-b38debd5f564"
/>

### After

<img width="711" height="389" alt="Screenshot 2026-01-06 at 1 52 03 PM"
src="https://github.com/user-attachments/assets/c077b030-451e-4333-b4e9-bcd8d9734c96"
/>
2026-01-06 15:30:01 -03:00
RachelElysia aa60187aa1 Fleet UI: Can run a live query on an edited (but not saved) existing query (#16282) 2024-01-25 13:12:59 -05:00
Jacob ShandlingandJacob Shandling df2ada1809 UI - Add 'Discard data' option to Save Query modal (#14284)
## Addresses pt.1 of #13470

4 states + InfoBanner:

<img width="746" alt="Screenshot 2023-10-03 at 2 51 36 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/0cffd9a1-8a96-4723-a080-10d68d7c7c70">
<img width="746" alt="Screenshot 2023-10-03 at 2 51 55 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/12237208-f29a-4c90-86c8-8fb71d64fbf4">
<img width="746" alt="Screenshot 2023-10-03 at 2 52 20 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6bdeb8c6-250f-4edb-a630-aa978a98e428">
<img width="746" alt="Screenshot 2023-10-03 at 2 52 26 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/bae0e656-56f4-4f6a-9972-5ff0fa2f24bf">

<img width="735" alt="Screenshot 2023-10-03 at 5 15 44 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/b26ce3ed-7949-4823-a6a4-fa04e152a480">

## Checklist for submitter
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-04 15:19:26 -07:00
RachelElysia e8889a4d61 Fleet UI: Disable save button for invalid sql or name (#12994) 2023-08-09 16:24:46 -04:00
Luke Heath 468f90f897 Add new activity types for login and user modifications (#9101) 2022-12-22 14:24:13 -06:00
Gabriel Hernandez e7616dd422 refactor activity items and add query name to live_query activity type (#8740) 2022-11-17 14:25:40 +00:00