fleet/changes/37146-create-builtin-label-error-msg
Nico 18e79d11ac
Fix: Show error reason when trying to edit a label that conflicts with a built-in label name (#39259)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #37146

Follow-up of https://github.com/fleetdm/fleet/pull/38828 which only
handled label creation. This PR adds the same behavior for edits.

# 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/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] QA'd all new/changed functionality manually

<img width="1070" height="647" alt="Screenshot 2026-02-03 at 4 45 45 PM"
src="https://github.com/user-attachments/assets/c4762929-df86-45f4-ae3d-d529db00890e"
/>


<img width="1071" height="648" alt="Screenshot 2026-02-03 at 4 39 28 PM"
src="https://github.com/user-attachments/assets/a5661043-3f6a-440c-abe1-7f9beec1469b"
/>
2026-02-03 17:24:28 -03:00

1 line
No EOL
99 B
Text

- Show error reason when trying to create or edit a label that conflicts with a built-in label name