feat(calendar): start-time + duration appointment form with all-day span (MAPPS-252) #275
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-252-appointment-start-duration"
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?
Adopts a start-time + duration editing model in the appointment create/edit form (
AppointmentFormModal, MAPPS-252): End is derived from Start plus a chosen duration instead of a second freedatetime-local, so a new appointment defaults to a 60-minute span and shifting Start moves End by the same delta with the duration preserved. A Duration selector offers 15/30/45/60/90/120-minute presets (showing a read-only derived End in the browser's local zone) plus a Custom path that restores an explicit End picker and back-computes the duration. A new All-day toggle swaps the timed single-date editor for a multi-day Start-date/End-date span that sends whole-local-day start/end, and the chosenall_dayis now sent on both create and update (replacing the hard-coded false). Client-only (no wire-model or server change); keeps the existing end < start guard; adds unit tests for the end computation, duration preservation, custom back-computation, and malformed input.#MAPPS-252