fix: DI bypass in 3 views, binding bugs, converter misuse - #380
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: 📥 CommitsReviewing files that changed from the base of the PR and between 803dccc6b7f7787ae6d036cea99205384a91e099 and ca9be61. 📒 Files selected for processing (8)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (3)
📜 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)
📝 WalkthroughWalkthroughRefactors views to use design-time d:DataContext instead of runtime instantiation, standardizes foreground/border brushes to app theme resources, converts ColorHex bindings through HexBrush in Dashboard, swaps one visibility converter to FlexVis, and adds changelog plus a MainWindowViewModel comment update. ChangesUI DI, Theme Resources, and Converter Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
0c496f5 to
803dccc
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
- Remove <UserControl.DataContext> from AppBlockerView, AppAlertsView, ShortcutCleanerView — these created isolated VM instances bypassing DI - DashboardView: use HexToBrushConverter for ColorHex Foreground bindings (health ring, recommendations, disk verdicts, overall verdict) - WindowsFeaturesView: change BoolToVis to FlexVis for Inverse parameter - Replace legacy SystemControlForeground* brushes with app-standard TextPrimary/TextSecondary/Border1 in AppBlocker and AppAlerts views - Fix stale comment in MainWindowViewModel (VMs ARE DI-resolved) - Add audit JSON files to .gitignore
803dccc to
ca9be61
Compare
- Remove <UserControl.DataContext> from AppBlockerView, AppAlertsView, ShortcutCleanerView — these created isolated VM instances bypassing DI - DashboardView: use HexToBrushConverter for ColorHex Foreground bindings (health ring, recommendations, disk verdicts, overall verdict) - WindowsFeaturesView: change BoolToVis to FlexVis for Inverse parameter - Replace legacy SystemControlForeground* brushes with app-standard TextPrimary/TextSecondary/Border1 in AppBlocker and AppAlerts views - Fix stale comment in MainWindowViewModel (VMs ARE DI-resolved) - Add audit JSON files to .gitignore Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
Summary
Fixes 5 HIGH-severity findings from the full codebase audit:
DI Bypass (H-01, H-02, H-03)
Binding Bugs (H-05)
Converter Misuse (H-06)
Styling Consistency (XAML-04, XAML-05)
Housekeeping
Build
Summary by CodeRabbit
Bug Fixes
Style
Documentation