Persist selected categories
Categories
(Calendar :: Calendar Frontend, task)
Tracking
(Not tracked)
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:
- Zeplin main create/edit category area
- Interaction guide: Create > Categories
- Bug 2062007: Category row and chip markup
- Bug 2084433: Load categories and connect category selection
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 | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
•
|
||
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:
- Zeplin main create/edit category area
- Interaction guide: Create > Categories
- Bug 2062007: Category row and chip markup
- Bug 2084433: Load categories and connect category selection
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 | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•24 days ago
|
||
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.
| Assignee | ||
Updated•14 days ago
|
Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e494c34bf547
Persist selected calendar event categories. r=klamping
| Assignee | ||
Updated•7 days ago
|
Description
•