Repository navigation
fix(styles): text-truncation utility helper - #8652
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe Bootstrap stylesheet now imports the text-truncation helper after the type stylesheet. The helper defines Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to The shared frontend stylesheet now provides the truncation helper for existing views. Source and build configuration support the change, with no concrete merge-blocking issue identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
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. Comment |
Docker builds report
|
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #21102 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #21102 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #21102 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #21102 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ private-cloud · depot-ubuntu-latest-16 — run #21101 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #21101 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #21101 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #21101 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
.text-truncate is defined in bootstrap/scss/helpers/_text-truncation.scss, and we import type, containers, grid and the rest but never helpers. So the class has never existed, and every call site using it silently does nothing. Three components already use it, each with the surrounding markup written correctly for it: AudienceSegmentList twice and CsvUpload once. They start truncating with an ellipsis instead of overflowing, which is what their markup was always asking for. Refs #8649 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
f1641be to
bb60d3d
Compare
Zaimwa9
left a comment
There was a problem hiding this comment.
Approving but let's avoid this kind of comment
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
.text-truncatehas never existed in our build. Bootstrap defines it inhelpers/_text-truncation.scssand we never importhelpers, so the class is dead everywhere it's used.Three components already use it:
AudienceSegmentList(x2) andCsvUpload. Their markup was always correct, the class just wasn't there.Not a no-op: long text in those three places currently overflows, and will now clip with an ellipsis.
Found while reviewing #8649, which needs this class. Merge this first.
How did you test this code?
.text-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}is in the built CSS, and absent onmain.