Skip to content

Truncate long configuration profile names in the profile list (4.94.0) - #55606

Merged
jbelbo merged 1 commit into
rc-minor-fleet-v4.94.0from
jbelbo/51814-profile-name-truncation-4.94.0
Oct 14, 2026
Merged

jbelbo merged 1 commit into
rc-minor-fleet-v4.94.0from
jbelbo/51814-profile-name-truncation-4.94.0

Conversation

@jbelbo

@jbelbo jbelbo commented Oct 14, 2026

Copy link
Copy Markdown
Member

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

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/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

For unreleased bug fixes in a release candidate, one of:

  • Confirmed that the fix is not expected to adversely impact load test results
    Styles and tooltip content only, no new requests.

Frontend

**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)
@jbelbo
jbelbo marked this pull request as ready for review October 14, 2026 22:22
@jbelbo
jbelbo requested a review from a team as a code owner October 14, 2026 22:22
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.94.0@589fedd). Learn more about missing BASE report.

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           
Flag Coverage Δ
frontend 71.72% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jbelbo
jbelbo merged commit 29ffbd6 into rc-minor-fleet-v4.94.0 Oct 14, 2026
21 of 22 checks passed
@jbelbo
jbelbo deleted the jbelbo/51814-profile-name-truncation-4.94.0 branch October 14, 2026 22:56

This branch was previously deployed

1 inactive deployment
Docker Hub — 5246ca15 Deployed Oct 14, 2026 by jbelbo via publish #109093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants