Open Bug 2062005 Opened 3 months ago Updated 7 days ago

Implement reminder draft controls

Categories

(Calendar :: Calendar Frontend, task)

task

Tracking

(Not tracked)

People

(Reporter: arschmitz, Unassigned)

References

(Depends on 1 open bug, Blocks 3 open bugs)

Details

(Whiteboard: [calendar-ui-create-edit])

Summary:

Implement add, edit, and remove controls for serializable reminder draft rows.

Links:

Acceptance criteria:

  • The Reminders row renders its current-session serializable reminder draft through stable storeObserver selections. Do not use getters that pull state from the store.
  • Each reminder draft row is plain data with a stable draft ID, numeric offset, unit, before/after relation, and start/end anchor. It contains no calIAlarm, calIDuration, calendar object, calIEvent, or DOM value.
  • The Add reminder control appends one reminder row with a 10-minute default.
  • Each row provides accessible number, unit, before/after, start/end, and remove controls.
  • A control change computes and dispatches one narrow reminders-section patch using the stable row ID. Field-local parsing, native validity, composition, open dropdown, and focus state remain outside Redux.
  • Removing a reminder updates only the draft and restores logical keyboard focus to the next appropriate control.
  • A route/session replacement invalidates pending local row interaction so stale add, edit, or remove events cannot patch the newer session.
  • Adding rows and opening controls follow the established body overflow behavior; the reminders area scrolls rather than growing or re-positioning the dialog, and it does not call PositionedDialog.
  • Bug 2062004 owns default-provider behavior. Bug 2062006 owns edit-alarm loading, calIAlarm conversion, duplicate cleanup, and Save-time persistence.
  • Add focused tests for the 10-minute add default, each row control, serializable draft patches, remove and focus behavior, field-local invalid input, stale-session protection, scroll containment, and axe coverage where supported.

Out of scope:

  • Calendar-default lookup, edit-alarm loading, alarm-object serialization, duplicate cleanup, Save-time persistence, preference writes, and direct calendar mutation.
Blocks: 2062006
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.