fleet
fleet copied to clipboard
Host details: "can't enroll in Apple MDM" banner is missing a space before the setting name
Fleet versions
- Discovered: main (d036cc8)
Web browser and operating system: Chrome running on macOS
💥 Actual behavior
On Host details, the yellow banner for an Apple host that can't enroll is missing a space before the setting name. It reads "turn off theAllow only Apple Business enrollments setting":
This host can't enroll in Apple MDM. Only current devices listed in Apple Business can enroll. To allow manual enrollment, turn off theAllow only Apple Business enrollments setting in Organization settings > Advanced options.
🛠️ Expected behavior
A space between "the" and the setting name: "turn off the Allow only Apple Business enrollments setting", like the "This host is no longer eligible for Apple MDM" banner on the same page.
🧑💻 Steps to reproduce
These steps:
- [ ] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [x] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Apple MDM on, with a macOS host that is not in Apple Business and has MDM status Off (for example, a manually enrolled host after Actions > Turn off MDM).
- In Settings > Organization settings > Advanced options, turn on Allow only Apple Business enrollments and save.
- Open the host's Host details page and read the banner at the top.
🕯️ More info (optional)
- Introduced by #58699 (follow-up to #57813), which is only on
main. frontend/pages/hosts/details/HostDetailsPage/components/HostDetailsBanners/HostDetailsBanners.tsx, line 111: the text line ends with "turn off the" and the next line starts with<strong>, so JSX drops the whitespace. The other banner in the same file has{" "}after "the".