fix(time,projects,sla): clearer hours placeholder + bound task due-date range (PMS-346) #172
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-317-followup-placeholder-and-date-bounds"
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?
Implements PMS-346 (follow-up to PMS-317), from user feedback.
Changes
2, 2.5, or 1:30with helpDecimal hours or H:MM., instead of leading with a fraction.<input type="date">, which only emits a valid date or empty, so the PMS-317 parse check never fired and an out-of-range year (e.g.0007) still passed. Addedmin=2000-01-01/max=2100-12-31to both task Due Date inputs (create + edit) so the picker rejects out-of-range dates natively, and extendedvalidate_opt_dateto reject a parsed date outside that range as a backstop.Known limitation (per the chosen approach)
A partially-typed date in a native picker is reported as empty by the browser, so it saves as "no due date" rather than erroring; due date stays optional. Catching that would require dropping the native picker for a strict text field.
Verification
just pre-commit(pinned rust 1.94 = CI) passes: fmt, clippy-D warnings,cargo check --target wasm32-unknown-unknown, all 91 lib tests.🤖 Generated with Claude Code