feat(calendar): validate appointment RRULE and cap text field lengths #219
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-219-appointment-rrule-validation-maxlength"
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?
The New Appointment modal stored the Recurrence value verbatim, so a malformed string like "GARBAGE NOT A RULE" was persisted as recurrence_rule and would later fail (or silently misbehave) when the server expands the series, with no feedback to the user. Add validate_rrule, a client-side RFC 5545 parser that checks structure (a ';'-separated list of KEY=VALUE parts), requires a valid FREQ, rejects unknown parts, validates the common numeric/keyword values, and forbids COUNT and UNTIL together. The save handler now rejects an invalid rule at the field before submit; the server stays the source of truth.
Title, Location, and Description had no maxlength. Add client maxlength caps (Title/Location 255, Description 2000) as a UX nicety; the server remains authoritative. Threading Description through required adding a maxlength prop to the shared Textarea component, mirroring Input.
#MAPPS-219