Commit graph

3 commits

Author SHA1 Message Date
Jacob Shandling
095bf63580
UI – Queries page updates pt.2 (#12820)
## Addresses #12636 – follow-up work to PRs #12713 & #12784 

- Fix alignment of the Platforms dropdown
<img width="1256" alt="Screenshot 2023-07-17 at 7 37 56 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/5f162a99-6840-474f-9679-3115782329cf">

- Hide redundant table headers for inherited queries table
<img width="1255" alt="Screenshot 2023-07-17 at 7 39 35 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/8ef91588-4e5a-4203-a2fc-ae24ab0493db">

- Update SaveQueryModal name field's error state copy (note - [awaiting
product
decision](https://github.com/fleetdm/fleet/issues/12646#issuecomment-1639159107)
on further updates to the UI here - likely for separate ticket):

- Avoid redundant processing by moving it outside of useQuery's `select`
option.

- Leverage query key design to cache global queries for inherited table

- [x] Manual QA

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-18 10:49:51 -07:00
Jacob Shandling
cc009d2d9f update IPlatformString to SelectedPlatformString in SaveQueryModal 2023-07-17 14:22:34 -07:00
Jacob Shandling
1d6870f0a7
UI: Update the save query modal with scheduling-related fields (#12741)
## Addresses #12646
### See issue for list of completed work
![Screenshot 2023-07-12 at 5 41 05
PM](https://github.com/fleetdm/fleet/assets/61553566/b4ece0c9-5df1-4320-9dce-1cd8c2758c6c)


### Also see PR #12713 **notes for review** on that PR for help manually
testing this work in lieu of the completed API.

- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-17 14:09:59 -07:00