Closed Bug 2061997 Opened 3 months ago Closed 6 days ago

Load and serialize rich descriptions

Categories

(Calendar :: Calendar Frontend, task)

task

Tracking

(Not tracked)

RESOLVED FIXED
163 Branch

People

(Reporter: arschmitz, Assigned: arschmitz)

References

(Blocks 2 open bugs)

Details

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

Attachments

(2 external files)

Summary:

Map persisted event descriptions into the rich-description draft and serialize the final draft through the existing Save and read-dialog boundaries.

Links:

Acceptance criteria:

  • Loading converts supported formatted content into the plain serializable editor-document representation selected by Bug 2061996, removing unsupported HTML while preserving formatting.
  • A route/session replacement rejects obsolete updates.
  • The existing Save controllers convert the final plain editor-document draft into formatted HTML when formatting is present, and also generate the plain-text fallback by removing formatting and unsupported HTML.
  • HTML/plain conversion and calIEvent property mutation occur only at the existing transaction boundary.
  • Add focused tests for formatted-property priority, unsupported-HTML removal, supported-format preservation, plain serializable source/draft mapping, stale-session rejection, stored HTML and plain fallback, Save-time transaction mapping, readiness before show, correct read-dialog display, and axe coverage where supported.

Out of scope:

  • Choosing editor technology, toolbar/editor controls, generic sanitization infrastructure outside the selected description format, read-dialog inline editing, a shared cross-dialog draft, and direct event mutation outside Save.
Type: enhancement → task

Load stored HTML into the Description draft. Fall back to literal plain text.

Assignee: nobody → arschmitz
Status: NEW → ASSIGNED

Apply the sanitized document to the draft. Keep the latest stored description when the draft leaves it
unchanged.

Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=vineet → Bug 2061997 - Save rich Calendar descriptions. r=aleca
Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=aleca → Bug 2061997 - Save rich Calendar descriptions. r=vineet
Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=vineet → Bug 2061997 - Save rich Calendar descriptions. r=aleca
Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=aleca → Bug 2061997 - Save rich Calendar descriptions. r=vineet
Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=vineet → Bug 2061997 - Save rich Calendar descriptions. r=aleca
Attachment #9684642 - Attachment description: Bug 2061997 - Save rich Calendar descriptions. r=aleca → Bug 2061997 - Save rich Calendar descriptions. r=vineet
Target Milestone: --- → 163 Branch

Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/2b8904d2e142
Load rich Calendar descriptions. r=aleca
https://hg.mozilla.org/comm-central/rev/37d678d44db1
Save rich Calendar descriptions. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: