Repository navigation
Truncate long configuration profile names in the profile list (4.94.0) - #55606
Merged
jbelbo merged 1 commit intoOct 14, 2026
Merged
Conversation
**Related issue:** #51814 Follow-up to #54494, found in QA of #51814. A long configuration profile name ran past the profile list's card at desktop widths, and hovering the row pushed its action buttons outside the card. ## What - **Truncation at every width**: the list only constrained the row at 1024px and below, so above that the name overflowed. Even there it never got an ellipsis: the tooltip wrapper around the name is a flex box (it centers the scope and hidden icons), so the name couldn't shrink below its text width and was clipped mid-letter. The name now ends in an ellipsis inside the row at any width, and the action buttons stay inside it on hover. - **Full name in the tooltip**: when the name is truncated, the existing tooltip shows it first as "Name: ...", above `PayloadDisplayName` and the UUID, matching their format. Names that fit keep the current tooltip. A name without spaces wraps inside the tooltip instead of overflowing it. ## Steps to reproduce 1. Add a configuration profile with a name of 200 characters or more (the field allows 255). 2. Open Controls > OS settings > Configuration profiles in a window wider than 1024px. 3. On `main`, the name runs past the card, and hovering the row puts the action buttons outside it. With this PR, the name ends in an ellipsis inside the row, and hovering it shows the full name in the tooltip. ## How I tested - `yarn test frontend/pages/ManageControlsPage/OSSettings/cards/ConfigurationProfiles/components/ProfileListItem`: 6 tests pass, including a new one for a truncated name. The truncation hook is mocked, since jsdom has no layout. - eslint, prettier and `tsc --noEmit` pass. - Manually in Chrome at about 1270px and 1450px wide, against a local server: a 253-character name and a 146-character name with no spaces both truncate inside the card, the action buttons stay inside the row on hover, and both tooltips show the full name wrapped. Short names, and a .mobileconfig's `PayloadDisplayName` tooltip, are unchanged. - Not tested: widths of 1024px and below, where the same row rules already applied before this change. # Checklist for submitter - [ ] 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. Not added: part of #51814, which isn't released yet and is covered by `changes/51814-profile-description`. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters. ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually For unreleased bug fixes in a release candidate, one of: - [x] Confirmed that the fix is not expected to adversely impact load test results Styles and tooltip content only, no new requests. ## Frontend - [x] Attached a screenshot or screen recording of each user-visible change. For changes to existing UI, show the before and after. <img width="3020" height="1738" alt="image" src="https://github.com/user-attachments/assets/00cd33c0-41fb-47fd-a123-5c9529831308" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Configuration profile tooltips now show the full profile name when it’s truncated, while avoiding a redundant name label when the full name is already visible. - Long profile names now wrap more reliably, and profile title content truncates consistently at different screen widths. <!-- end of auto-generated comment: release notes by coderabbit.ai --> (cherry picked from commit 29037dc)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## rc-minor-fleet-v4.94.0 #55606 +/- ##
=========================================================
Coverage ? 77.25%
=========================================================
Files ? 4302
Lines ? 266713
Branches ? 15882
=========================================================
Hits ? 206038
Misses ? 60486
Partials ? 189
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
getvictor
approved these changes
Oct 14, 2026
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #55604 (
29037dc96e) into the 4.94.0 RC: long configuration profile names now truncate in the profile list at every width, with the full name in the tooltip. Found in QA of #51814, which ships in 4.94.Related issue: #51814
mainafter Truncate long configuration profile names in the profile list #55604.Checklist for submitter
Changes file added for user-visible changes in
changes/,orbit/changes/oree/fleetd-chrome/changes.See Changes files for more information.
Not added: part of Add/edit configuration profile page w/ upload #51814, covered by
changes/51814-profile-description.Input data is properly validated,
SELECT *is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters.Testing
Added/updated automated tests
QA'd all new/changed functionality manually
On
main(see Truncate long configuration profile names in the profile list #55604). On this branch: theProfileListItemtests (6) pass, and eslint, prettier andtsc --noEmitare clean.For unreleased bug fixes in a release candidate, one of:
Styles and tooltip content only, no new requests.
Frontend
See Truncate long configuration profile names in the profile list #55604.