fix(sla): validate target hours, rejecting negatives and junk (MAPPS-239) #238
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-239-sla-target-hours-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SLA target-hours inputs are free text (H:MM + fractional, PMS-340); parse_hours mapped both empty and unparseable to None, so negatives saved and junk was silently dropped under a success toast. Add validate_hours: empty -> None, non-empty must parse and be non-negative else the save is rejected with an error toast.
Verified in-container (just pre-commit): fmt + clippy + wasm check + unit tests green.
Fixes MAPPS-239.