chore: extract HumanSize to shared helper (QUAL-003)#455
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThis PR centralizes human-readable byte formatting by enhancing FormatHelper.FormatSize (B→TB, edge cases), removing CleanupCategory.HumanSize, and migrating all model/viewmodel display properties and tests to use FormatHelper.FormatSize. ChangesSize formatting consolidation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
8912806 to
7db4aa9
Compare
* chore: extract HumanSize to shared helper (QUAL-003) * fix: restore F1 format in FormatHelper.FormatSize to match original output * fix: update remaining test assertions to match F1 format output --------- Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
Summary
CleanupCategory.HumanSize()and consolidated all size formatting intoFormatHelper.FormatSize()FormatHelper.FormatSizeto support TB and handle zero/negative valuesTest plan
Summary by CodeRabbit
New Features
Bug Fixes
Tests