Repository navigation
Truncate long configuration profile names in the profile list - #55604
Conversation
|
/agentic_review |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
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:
|
There was a problem hiding this comment.
🟢 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.
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can switch off images and animations for a plain-text comment |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughProfileListItem 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
|
#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.
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
PayloadDisplayNameand 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
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.tsc --noEmitpass.PayloadDisplayNametooltip, are unchanged.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, 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:
Styles and tooltip content only, no new requests.
Frontend
Summary by CodeRabbit