Repository navigation
Conversation
…T#61) Clearing a numeric input no longer converts an empty string to int/double. Validate only enabled random ranges and block add, save, apply, and start commands while speed settings are invalid.
…ikolayIT#61) Replace speed text boxes with nullable decimal NumericUpDown controls. Explain kB/s random ranges and surface friendly validation messages. Test cleared values, reversed ranges, disabled ranges, notifications, and serialization.
|
Maintainer note: the initial I have not run .NET 10 locally (the SDK is unavailable in this execution environment), so I am not claiming that the new App ViewModel tests have passed. The PR includes seven regression tests and the existing I also kept the user-facing explanations in English for now; this is called out in the PR description because the application ships with other translations. Feedback on a preferred localization approach is welcome. Please review the implementation and, if appropriate, approve the workflow run. Thanks! |
Summary
Fixes #61 by replacing the speed settings text boxes with Avalonia
NumericUpDowncontrols bound to nullable decimal properties. This prevents empty numeric inputs from exposing internal.NETconversion errors, provides spinner buttons, and makes invalid ranges visible.Changes
min <= maxonly for enabled ranges.RatioMaster.App.Testsproject with regression tests for clearing fields, inverted ranges, disabled ranges, fractional random speeds, change notifications, and value serialization.Files worth reviewing
TorrentSettingsViewModel.cs: validation and decimal-to-core conversionTorrentSettingsView.axaml: numeric controls and inline feedbackRatioMaster.App.Tests: tests and solution registrationTesting
RatioMaster.slnx.This PR is initially a draft until CI and any required follow-up corrections have been reviewed.
Related issue: #61