Open Bug 2062006 Opened 3 months ago Updated 7 days ago

Persist reminders through calendar alarm APIs

Categories

(Calendar :: Calendar Frontend, task)

task

Tracking

(Not tracked)

People

(Reporter: arschmitz, Unassigned)

References

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

Details

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

Summary:

Map edit-mode calendar alarms into the reminder draft and serialize the final draft through the existing Save controllers.

Links:

Acceptance criteria:

  • The source-to-draft mapper converts edit-mode calendar alarms into the current session’s plain reminder draft rows. Raw calIAlarm, calIDuration, calIEvent, and calendar objects remain outside Redux.
  • The reminder draft and baseline contain only stable row IDs, numeric offsets, units, before/after relation, and start/end anchor values.
  • A route/session replacement rejects obsolete alarm-mapping output and prevents it from initializing a newer session’s reminders.
  • Initial edit-alarm mapping and row rendering complete before the dialog readiness gate permits PositionedDialog.show(), so initial reminder content cannot grow the dialog after positioning.
  • The existing create and edit Save controllers read the latest serializable reminder draft and create calIAlarm objects only at the calendar transaction boundary.
  • Save normalizes reminder rows by their persisted alarm semantics and removes duplicates from the saved event while preserving the other transaction, notification, recurrence, and undo/redo behavior.
  • A pending Save is associated with the current session. Duplicate or stale Save work cannot serialize reminders into another event.
  • Cancel or close without successful Save leaves existing alarms unchanged. On failure, retain the current reminder draft for retry.
  • Bug 2062004 owns calendar-default display, and Bug 2062005 owns reminder controls and field-local validation.
  • Add focused tests for edit-alarm mapping, plain serializable source/draft state, stale-session rejection, readiness before show, create/edit Save conversion, duplicate cleanup, failure/cancel/no-change behavior, and axe coverage where supported.

Out of scope:

  • Reminder default resolution, reminder controls and visual layout, preference writes, generic alarm abstractions, raw alarm objects in Redux, and direct calendar mutation outside the existing Save transaction.
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.