Closed Bug 2062008 Opened 3 months ago Closed 14 days ago

Persist selected categories

Categories

(Calendar :: Calendar Frontend, task)

task
Points:
2

Tracking

(Not tracked)

RESOLVED FIXED
162 Branch

People

(Reporter: arschmitz, Assigned: arschmitz)

References

(Blocks 2 open bugs)

Details

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

Attachments

(1 external file)

Summary:
Save the selected categories from the current draft through the existing create and edit Save controllers. Bug 2084433 loads category data and connects the selection controls.

Links:

Acceptance criteria:

  • The existing create and edit Save controllers read the latest category draft for the current event and apply the selection to the event only when saving.
  • A pending Save belongs to the current create or edit session. Late or duplicate Save work must not save categories into another event.
  • Cancel or close without successful Save leaves the saved event's categories unchanged.
  • If Save fails, retain the category draft for retry.
  • Bug 2062007 owns markup and styles. Bug 2084433 owns category lookup, edit-source mapping, draft initialization, controls, chips, overflow, labels, and local popup and layout behavior.

Required implementation details:

  • Convert the plain category draft into event properties only at the existing Calendar transaction boundary—the code that creates or changes the saved event.
  • Keep Redux category data plain: names or IDs and needed color information. Do not store live events, calendar objects, preference objects, page elements, or conversion callbacks in Redux.
  • Do not duplicate the source-to-draft mapping or baseline initialization moved to Bug 2084433.

Minimum test coverage:

  • Check category saving for both create and edit.
  • Check plain data in Redux and the category draft.
  • Check that late or duplicate Save work cannot change another event.
  • Check that failed Save retains the draft for retry.
  • Check that Cancel and close leave the saved event unchanged.
  • Run automated accessibility checks for displayed Save states where supported.

Out of scope:

  • Category loading, source mapping, draft initialization, controls, chips, overflow, labels, and preference writes.
  • A new category service or category-specific Redux slice.
  • Changing a saved event outside the existing Save transaction.
Type: enhancement → task

TB-Tools story description:

Summary:
Save the selected categories from the current draft through the existing create and edit Save controllers. Bug 2084433 loads category data and connects the selection controls.

Links:

Acceptance criteria:

  • The existing create and edit Save controllers read the latest category draft for the current event and apply the selection to the event only when saving.
  • A pending Save belongs to the current create or edit session. Late or duplicate Save work must not save categories into another event.
  • Cancel or close without successful Save leaves the saved event's categories unchanged.
  • If Save fails, retain the category draft for retry.
  • Bug 2062007 owns markup and styles. Bug 2084433 owns category lookup, edit-source mapping, draft initialization, controls, chips, overflow, labels, and local popup and layout behavior.

Required implementation details:

  • Convert the plain category draft into event properties only at the existing Calendar transaction boundary—the code that creates or changes the saved event.
  • Keep Redux category data plain: names or IDs and needed color information. Do not store live events, calendar objects, preference objects, page elements, or conversion callbacks in Redux.
  • Do not duplicate the source-to-draft mapping or baseline initialization moved to Bug 2084433.

Minimum test coverage:

  • Check category saving for both create and edit.
  • Check plain data in Redux and the category draft.
  • Check that late or duplicate Save work cannot change another event.
  • Check that failed Save retains the draft for retry.
  • Check that Cancel and close leave the saved event unchanged.
  • Run automated accessibility checks for displayed Save states where supported.

Out of scope:

  • Category loading, source mapping, draft initialization, controls, chips, overflow, labels, and preference writes.
  • A new category service or category-specific Redux slice.
  • Changing a saved event outside the existing Save transaction.
Assignee: nobody → arschmitz
Points: --- → 2
Depends on: 2084433
No longer depends on: 2062007
Status: NEW → ASSIGNED

Save applies the current category selection to the event copy. Failed Save retains the draft for retry. Cancel, close, duplicate requests, and late results preserve the correct event and session.

Target Milestone: --- → 162 Branch

Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e494c34bf547
Persist selected calendar event categories. r=klamping

Status: ASSIGNED → RESOLVED
Closed: 14 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: