Commit e0566a9
Shorten ECharts and MUI X labels in stats library list (#8666)
## Problem
On the `/stats` page, the **libraries** section renders each library's
name in a fixed-width 80px column. Two names — `Apache ECharts` and `MUI
X Charts` — wrap to two lines, so those rows are taller than the rest
and the histogram bars misalign.
## Fix
Add a stats-only short-name override so every library label stays on a
single line:
- `echarts` → **ECharts**
- `muix` → **MUI X**
The override (`statsLibLabel`) is applied in both the
quality-distribution and lines-of-code histograms. The canonical full
names from the API (`Apache ECharts`, `MUI X Charts`) are intentionally
kept everywhere else — the Libraries page, SEO meta descriptions, and
plot-of-the-day — so this is purely a display tweak for the dense stats
list.
## Verification
- `yarn type-check` ✅
- `yarn lint` ✅ (no new warnings)
- `yarn test src/pages/StatsPage.test.tsx` ✅ (10/10)
https://claude.ai/code/session_018EdFoKNnMYTnUXBhXWpM9Z
---
_Generated by [Claude
Code](https://claude.ai/code/session_018EdFoKNnMYTnUXBhXWpM9Z)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent ab7b1e6 commit e0566a9
2 files changed
Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
38 | 63 | | |
39 | 64 | | |
40 | 65 | | |
| |||
207 | 232 | | |
208 | 233 | | |
209 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
210 | 255 | | |
211 | 256 | | |
212 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
102 | 115 | | |
103 | 116 | | |
104 | 117 | | |
| |||
361 | 374 | | |
362 | 375 | | |
363 | 376 | | |
364 | | - | |
| 377 | + | |
365 | 378 | | |
366 | 379 | | |
367 | 380 | | |
| |||
442 | 455 | | |
443 | 456 | | |
444 | 457 | | |
445 | | - | |
| 458 | + | |
446 | 459 | | |
447 | 460 | | |
448 | 461 | | |
| |||
0 commit comments