mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
for #23312 # 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. This PR updates the verbiage on the Policies page when no policies are present for the selected team (or All Teams). It also does a little bit of code cleanup. Existing test was updated and a new test added. I've also added VSCode test runners to easily run Jest tests from the IDE. The [original request](https://github.com/fleetdm/fleet/issues/23073) mentioned removing the button from the page if All Teams is selected, but I don't think we should do that -- you can add All Teams policies with it. ## Screenshots Empty state for "All teams" (admin): <img width="658" alt="image" src="https://github.com/user-attachments/assets/3db674ef-b83e-4a4f-9ba9-adaf0ff17d3d" /> Empty state for a team (admin): <img width="699" alt="image" src="https://github.com/user-attachments/assets/49b966ff-f335-43c6-b1ed-b6f11b167c68" /> Empty state for "All teams" (non-admin): <img width="663" alt="image" src="https://github.com/user-attachments/assets/b9685b40-3b42-43f0-a0ff-09602b9d532a" /> Empty state for a team (non-admin): <img width="643" alt="image" src="https://github.com/user-attachments/assets/034566d2-7c1b-42c8-8655-99447193d099" /> |
||
|---|---|---|
| .. | ||
| extensions.json | ||
| launch.json | ||
| settings.json | ||
| tasks.json | ||
| typescriptreact.code-snippets | ||