-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update policies page empty state (#25726)
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](#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" />
- Loading branch information
Showing
4 changed files
with
108 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Clarified text on the Policies page when no policies exist for the selected team (or All Teams) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters