Skip to content

Truncate long configuration profile names in the profile list - #55604

Merged
jbelbo merged 1 commit into
mainfrom
jbelbo/51814-profile-name-truncation
Oct 14, 2026
Merged

jbelbo merged 1 commit into
mainfrom
jbelbo/51814-profile-name-truncation

Conversation

@jbelbo

@jbelbo jbelbo commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

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 for more information.
    Not added: part of Add/edit configuration profile page w/ upload #51814, which isn't released yet and is 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

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

  • Attached a screenshot or screen recording of each user-visible change. For changes to existing UI, show the before and after.
image

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.

@jbelbo

jbelbo commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

/agentic_review

@jbelbo

jbelbo commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.33%. Comparing base (e9a3558) to head (fd8b66a).

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #55604    +/-   ##
========================================
  Coverage   77.33%   77.33%            
========================================
  Files        4305     4305            
  Lines      268064   268068     +4     
  Branches    15727    15902   +175     
========================================
+ Hits       207319   207323     +4     
+ Misses      60557    60556     -1     
- Partials      188      189     +1     
Flag Coverage Δ
frontend 71.75% <100.00%> (+<0.01%) ⬆️

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The localized layout and tooltip changes have regression coverage and no identified blocking issues.

0 open findings

What changed in this PR

Fixes long configuration profile names overflowing the list, following the add/edit page work in #54494.

Changes:

  • Applies name truncation at all widths while keeping row actions inside the card.
  • Shows truncated names in full in tooltips, including names without spaces.
  • Adds tests for conditional tooltip content.
File Description
frontend/​pages/​ManageControlsPage/​OSSettings/​cards/​ConfigurationProfiles/​components/​ProfileListItem/​ProfileListItem.tsx Detects truncation and conditionally shows the full name.
frontend/​pages/​ManageControlsPage/​OSSettings/​cards/​ConfigurationProfiles/​components/​ProfileListItem/​ProfileListItem.tests.tsx Covers tooltips for truncated and fitting names.
frontend/​pages/​ManageControlsPage/​OSSettings/​cards/​ConfigurationProfiles/​components/​ProfileListItem/​_styles.scss Constrains rows at every width and wraps tooltip names.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can switch off images and animations for a plain-text comment

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: fleetdm/fleet/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 99f2bbca-ba98-4f01-8f9d-ffa072a64959
📥 Commits

Reviewing files that changed from the base of the PR and between e9a3558 and fd8b66a.

📒 Files selected for processing: 3
  • frontend/pages/ManageControlsPage/OSSettings/cards/ConfigurationProfiles/components/ProfileListItem/ProfileListItem.tests.tsx
  • frontend/pages/ManageControlsPage/OSSettings/cards/ConfigurationProfiles/components/ProfileListItem/ProfileListItem.tsx
  • frontend/pages/ManageControlsPage/OSSettings/cards/ConfigurationProfiles/components/ProfileListItem/_styles.scss

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

ProfileListItem now detects whether a profile name is truncated and includes the full name in the tooltip only when it is. Styles apply truncation constraints at all widths and allow the full name to wrap. Tests cover fitting and truncated names.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to fd8b6

Long profile names are constrained within their rows while the action buttons remain in place, including at narrow widths. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the primary change: truncating long configuration profile names in the profile list.
Description check Passed The description explains the issue, intended behavior, implementation scope, testing, manual QA, limitations, related issue, and frontend screenshot. It also records why the changes file was not added…
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jbelbo
jbelbo marked this pull request as ready for review October 14, 2026 22:09
@jbelbo
jbelbo requested a review from a team as a code owner October 14, 2026 22:09
@jbelbo
jbelbo merged commit 29037dc into main Oct 14, 2026
31 of 32 checks passed
@jbelbo
jbelbo deleted the jbelbo/51814-profile-name-truncation branch October 14, 2026 22:20
jbelbo added a commit that referenced this pull request Oct 14, 2026
#55606)

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

- The commit applies without conflicts, and the three files it touches
match `main` after #55604.
- Frontend only: styles and tooltip content, no API or schema changes.

# 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, 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
On `main` (see #55604). On this branch: the `ProfileListItem` tests (6)
pass, and eslint, prettier and `tsc --noEmit` are clean.

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.
  See #55604.

This branch was previously deployed

1 inactive deployment
Docker Hub — fd8b66a3 Deployed Oct 14, 2026 by jbelbo via publish #109090
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.

3 participants