fix(projects): validate task due-date input and standardize change-history dates (PMS-317) #170
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-317-task-date-validation-and-history-format"
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-317.
Problem
yyyy-mm-dd(2026-03-01), not the app's standardMar 1, 2026.Changes (
src/pages/projects.rs)validate_opt_date(raw, label): blank is allowed; a non-empty value must parse as%Y-%m-%d, else an inline error and no submit. Wired into both the create-task and edit-task save handlers for Due Date.fmt_change_value(used by both the project and task change-history feeds) reformats a%Y-%m-%dstring to%b %-d, %Y, matchingfmt_date. Non-date values are unchanged.Verification
just pre-commit(pinned rust 1.94 = CI) passes: fmt, clippy-D warnings,cargo check --target wasm32-unknown-unknown, all 91 lib tests.Acceptance criteria
Mar 1, 2026, not2026-03-01.🤖 Generated with Claude Code