fleet/frontend/components/forms/fields
Scott Gress e013ce742a
Show "Manage Automations" dropdown when no policies are present (#26298)
For #23243 

# Checklist for submitter

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [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.

## Details

This PR changes the behavior of the Manage Automations dropdown on the
Manage Policies page. Any user that has permission to manage policies
will now always see the dropdown. If there are no policies added for the
selected team (or no policies at all, in the case of "All teams" or
users on the free tier), the dropdown is disabled with a tooltip.

## Screenshots

**Free tier:**
<img width="753" alt="image"
src="https://github.com/user-attachments/assets/37a3b97a-74b3-4495-ace4-bfece30b3822"
/>

---

**Premium tier, All Teams:**
<img width="736" alt="image"
src="https://github.com/user-attachments/assets/bedd9a5f-e2aa-49da-8943-61bc69af9744"
/>

---

**Premium tier, team selected:**
<img width="744" alt="image"
src="https://github.com/user-attachments/assets/e1c2397b-1d19-46f2-b78d-e7a923f91c8f"
/>
2025-02-25 11:10:33 -06:00
..
AutoSizeInputField UI - GitOps Mode: Core abstractions, first batch of applications (#26401) 2025-02-20 08:41:07 -08:00
Checkbox Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
Dropdown Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
DropdownWrapper Show "Manage Automations" dropdown when no policies are present (#26298) 2025-02-25 11:10:33 -06:00
InputField Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
InputFieldHiddenContent Fleet UI: Disabled styling fixes (#19614) 2024-06-11 11:11:40 -04:00
InputFieldWithIcon Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
Radio Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
SearchField Fleet UI: Allow select target search for labels and teams (#24798) 2024-12-23 16:20:51 -05:00
SelectTargetsDropdown update storybook to 8.4.7 (#25451) 2025-01-20 16:17:33 +00:00
Slider UI - GitOps Mode: Core abstractions, first batch of applications (#26401) 2025-02-20 08:41:07 -08:00