feat(ui): add formatBytes and formatPercent formatters#680
Conversation
Add shared byte-size and ratio formatters to the UI format library with unit tests so dashboard surfaces can display storage and coverage values consistently.
|
Code and tests look solid, formatBytes matches the Python version in 681 exactly. One thing holding me back: nothing in the tree imports formatBytes or formatPercent yet, so this is a helper with no caller. We try to avoid landing utility surface ahead of its first use. Can you either bring these in alongside the first consumer (a web storage card would be the natural fit, mirroring 681), or hold this until that lands? Happy to merge the moment there's something calling it. |
Add IndexStorageMini to the repo overview rail, expose index_storage_bytes from overview-summary, and use formatBytes/formatPercent for display so the formatters ship with their first consumer.
|
✅ Health: 7.7 (unchanged)
🩹 Review priority (files here with the most recent bug-fix history — defects cluster, so review these first)
🔥 Hotspots touched (4)
1 more
🔗 Hidden coupling (1 file)
💀 Dead code (1 finding)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-05 07:30 UTC |
|
Thanks for the review — pushed a follow-up that wires
Should be ready for another look. |
|
cc: @RaghavChamadiya |
Summary
Test plan