Commit 996a5cc
fix(agents-server-ui): show "<1%" for tiny non-zero breakdown segments [review #4596]
A segment with a small but non-zero share rendered a coloured swatch + bar
sliver labelled "0%", which reads as a contradiction. Label any non-zero
segment that rounds to 0% as "<1%" instead. (Per-segment rounding can still make
the four rows not sum to exactly 100% — acceptable for a composition popover;
exact apportionment isn't worth the complexity here.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cc7f8bf commit 996a5cc
1 file changed
Lines changed: 11 additions & 1 deletion
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| |||
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
71 | | - | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
0 commit comments