• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 30260798705
83%

Build:
DEFAULT BRANCH: master
Ran 27 Jul 2026 11:12AM UTC
Jobs 3
Files 1046
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2026 11:08AM UTC coverage: 83.148% (+0.03%) from 83.119%
30260798705

push

github

web-flow
refactor(web): improve storage device names truncation (#3746)

## Summary

- Replace the `truncate?: boolean` argument with a `{ truncate,
maxLength, omission, tolerance }` options object, so call sites read
clearly and can control the length, the marker, and how far a name may
exceed the limit before it is shortened at all.
- Let `TruncatedDeviceName` receive `maxLength` as a prop, so each table
sets it next to its own column width instead of the component hardcoding
one.


## What changed

- **Options object.** `baseName`, `deviceBaseName` and `deviceLabel`
take an optional `BaseNameOptions`:
  - `truncate` opts into shortening (replaces the old boolean).
- `maxLength` is the length to truncate to; it defaults to the shared
sentence-text length, so callers that want the previous behavior just
pass `{ truncate: true }` and never repeat the constant.
- `omission` is the middle marker (default `"…"`), now configurable; the
truncation math accounts for its length so the result always stays
within `maxLength`.
- `tolerance` is how far a name may exceed `maxLength` and still be
shown in full. It defaults to `omission.length + 2`, so truncation only
kicks in when it saves clearly more width than the marker itself
occupies (no swapping a few real characters for a similar-length
marker).
- **`TruncatedDeviceName` takes `maxLength`.** The component no longer
hardcodes a width; each storage table passes the value beside its column
style, keeping the number and the width it fits within in one place.
- **Dropped a stale FIXME** pointing at PatternFly's `Truncate`, found
unsuitable for the fixed-width table case in #3745.

4909 of 6845 branches covered (71.72%)

Branch coverage included in aggregate %.

26 of 29 new or added lines in 12 files covered. (89.66%)

20 existing lines in 3 files now uncovered.

25583 of 29827 relevant lines covered (85.77%)

123.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
30.97
0.0% web/src/components/storage/VolumeGroupEditor.tsx
1
10.77
0.0% web/src/components/storage/MdRaidHeader.tsx

Coverage Regressions

Lines Coverage ∆ File
17
85.88
2.76% web/web/src/components/storage/utils.ts
2
93.55
0.0% web/web/src/components/storage/partition-form/PartitionFields.tsx
1
90.0
0.0% web/web/src/components/storage/TruncatedDeviceName.tsx
Subprojects
ID Flag name Job ID Ran Files Coverage
3 web 30260798705.3 27 Jul 2026 11:12AM UTC 727
80.04
GitHub Action Run
1 rust 19474749743.1 18 Nov 2025 05:18PM UTC 185
22.45
GitHub Action Run
3 service 30083641564.3 24 Jul 2026 09:45AM UTC 319
92.41
GitHub Action Run
Source Files on build 30260798705
  • Tree
  • List 1046
  • Changed 17
  • Source Changed 14
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30260798705
  • 6788afb7 on github
  • Prev Build on master (#30260747251)
  • Next Build on master (#30261829568)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc