feat(ui): standardize date selection behind one DateField component (MAPPS-204) #183
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-204-standardize-date-inputs"
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 MAPPS-204. Approach confirmed with the owner: native calendar picker + validation (one shared component, consistent bounds; required fields error if empty, optional save as no-date).
Change
DateFieldcomponent (src/components/form.rs): native<input type="date">with consistentmin/maxbounds (2000-2100) so out-of-range dates are rejected by the picker, plusrequired/error/helppassthrough. Behavior documented on the props.DateFieldacross time, projects, contracts, assets, billing, audit log, and reports. The report range filters were raw<input>elements; they now match every other date field.Acceptance criteria
DateField).DateFieldProps).Verification
just pre-commit(pinned rust 1.94 = CI) passes: fmt, clippy-D warnings,cargo check --target wasm32-unknown-unknown, 100 lib tests. The reports range-filter styling changes slightly (now the standard labeled field) - worth an eyeball on that screen.🤖 Generated with Claude Code