fleet/frontend/components/TableContainer/DataTable/PlatformCell
jacobshandling fea4dd791a
UI - Update targeted platforms display logic in the queries table (#25037)
### Unreleased bug where queries targeting all platforms display as
targeting no platforms in the Queries table.

The below query is set to target _all_ platforms.

**Bug:**
<img width="1248" alt="Screenshot 2024-12-29 at 8 24 50 PM"
src="https://github.com/user-attachments/assets/90c9a498-f7d8-4d86-88f1-061c985fb4fa"
/>

**Fix:**
Targeting all platforms, frequency set, displays platform icons:
<img width="1248" alt="Screenshot 2024-12-29 at 8 25 25 PM"
src="https://github.com/user-attachments/assets/d03c1bba-e5ea-461a-b506-1840cf4ffa8e"
/>

Targeting all paltforms but no frequency set (i.e., no schedule), no
targeted platforms displayed:
<img width="1248" alt="Screenshot 2024-12-29 at 8 25 38 PM"
src="https://github.com/user-attachments/assets/9b08a8c3-b682-4eb0-aeb4-59a6e0144e14"
/>

- [x] Manual QA for all new/changed functionality
- [x] Updated tests

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-12-30 13:06:59 -08:00
..
_styles.scss Fleet UI: Update icons (#8520) 2022-11-18 12:21:13 -05:00
index.ts Surface query-platform compatibility in FleetUI (#2640) 2021-10-25 13:00:32 -05:00
PlatformCell.stories.tsx Revert "Merge front-end changes into 7765 Master Dev branch (#12905)" 2023-07-27 13:32:24 -07:00
PlatformCell.tests.tsx UI - Update targeted platforms display logic in the queries table (#25037) 2024-12-30 13:06:59 -08:00
PlatformCell.tsx UI - Update targeted platforms display logic in the queries table (#25037) 2024-12-30 13:06:59 -08:00