Add category row and chip markup
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:
Add the structure and styles for the category row. This story does not load categories or connect the controls to event data.
Links:
- Zeplin main create/edit category area
- Interaction guide: Create > Categories
- Statement of work: In Scope
- Planning: Category scope and overflow
- Bug 2084433: Load categories and connect category selection
Acceptance criteria:
- Use the shared row from Bug 2061586.
- Add the markup for Add category, the category list, selected chips, and each chip's remove button.
- Add the markup for +x more and the area that shows the remaining categories.
- Keep each chip on one line. Cut off long text at the end of that line.
- Provide styles for category labels and colors.
- Keep overflow inside the dialog. It must not make the dialog grow or change position.
- Give controls translated labels, accessible names, and visible keyboard focus.
Required implementation details:
- Use fixed sample data in tests to show empty, filled, long-label, and overflow states.
- Do not add category lookup, Redux subscriptions, draft changes, or Save behavior.
- Leave real category colors, the visible chip count, and control actions to Bug 2084433.
Minimum test coverage:
- Check the markup and labels.
- Check single-line chips, long labels, and scrolling.
- Check supported themes, display densities, and forced colors.
- Run automated accessibility checks where supported.
Out of scope:
- Loading categories, adding or removing selections, calculating +x more, and saving.
- Broader category or event-color work beyond the designed row and chips.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
TB-Tools story description:
Summary:
Implement main-dialog category selection and selected-category chips using serializable draft state.
Links:
- Zeplin main create/edit category area: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a0f2f285393a283202254bc
- Interaction guide: Create > Categories: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.why4m6lqup0#heading=h.deguqnpnz4ep
- SOW: In Scope: https://docs.google.com/document/d/1ZVLX8VjxaYsSBuywLyFsXf27Q-Pf55g8QxT8G9z0eZ4/edit?tab=t.0#heading=h.bz8l40hwl6cr
Questions and concerns:
-
The SOW includes “Add to personal category” but lists broader event category/color work as a future improvement. Confirm whether this story is limited to the Zeplin row-and-chips MVP.
-
Planning: Questions - Q15 Category MVP Scope And Overflow Disclosure
Acceptance criteria:
- The main dialog provides an accessible Add category control and selected-category chips/tags.
- The current session’s selected categories render through stable
storeObserverselections of a plain category draft. Do not use getters that pull state from the store. - The category draft holds only plain stable IDs or labels and design-relevant color/label metadata. It contains no preference object,
calIEvent, calendar object, DOM node, or popup state. - Selecting or removing a category dispatches a narrow category-section patch and changes draft state only. Chip removal is keyboard accessible.
- Category-choice lookup, popup-open state, active option, type-ahead text, and layout measurement remain local control state. They do not enter Redux.
- A memoized selector derives the full selected-category view model from store state; responsive chip capacity and
+x morelayout remain DOM/controller-local. - The main view shows two or three chips as space allows, then displays
+x more. Tooltip/full-list behavior for+x moreremains explicitly TBD until product/design confirms it. - Category color and label treatment follows the design. Visible chip overflow must not grow or re-position the dialog; initial hydrated chips are accounted for before show readiness completes.
- A route/session replacement clears obsolete local category interaction and prevents stale selection or removal events from patching the newer draft.
- Bug 2062008 owns edit-source category mapping and Save-time event-property conversion.
- Add focused tests for Add category entry, selected-chip display, keyboard removal, serializable draft-only patches, two/three-chip capacity,
+x moreTBD behavior, color/label presentation, stale-session protection, readiness/overflow behavior, and axe coverage where supported.
Out of scope:
- Event-property mapping, category persistence, preference writes, generic category-service infrastructure, a final
+x moretooltip/full-list decision, and direct calendar mutation.
| Assignee | ||
Comment 2•1 month ago
|
||
TB-Tools story description:
Summary:
Implement main-dialog category selection and selected-category chips using serializable draft state.
Links:
- Zeplin main create/edit category area: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a0f2f285393a283202254bc
- Interaction guide: Create > Categories: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.why4m6lqup0#heading=h.deguqnpnz4ep
- SOW: In Scope: https://docs.google.com/document/d/1ZVLX8VjxaYsSBuywLyFsXf27Q-Pf55g8QxT8G9z0eZ4/edit?tab=t.0#heading=h.bz8l40hwl6cr
Questions and concerns:
-
The SOW includes “Add to personal category” but lists broader event category/color work as a future improvement. Confirm whether this story is limited to the Zeplin row-and-chips MVP. (additional work is out of scope)
-
Planning: Questions - Q15 Category MVP Scope And Overflow Disclosure
Acceptance criteria:
- The main dialog provides an accessible Add category control and selected-category chips/tags.
- The current session’s selected categories render through stable
storeObserverselections of a plain category draft. Do not use getters that pull state from the store. - The category draft holds only plain stable IDs or labels and design-relevant color/label metadata. It contains no preference object,
calIEvent, calendar object, DOM node, or popup state. - Selecting or removing a category dispatches a narrow category-section patch and changes draft state only. Chip removal is keyboard accessible.
- Category-choice lookup, popup-open state, active option, type-ahead text, and layout measurement remain local control state. They do not enter Redux.
- A memoized selector derives the full selected-category view model from store state; responsive chip capacity and
+x morelayout remain DOM/controller-local. - The main view shows two or three chips as space allows, then displays
+x more. Tooltip/full-list behavior for+x moreremains explicitly TBD until product/design confirms it. - Category color and label treatment follows the design. Visible chip overflow must not grow or re-position the dialog; initial hydrated chips are accounted for before show readiness completes.
- A route/session replacement clears obsolete local category interaction and prevents stale selection or removal events from patching the newer draft.
- Bug 2062008 owns edit-source category mapping and Save-time event-property conversion.
- Add focused tests for Add category entry, selected-chip display, keyboard removal, serializable draft-only patches, two/three-chip capacity,
+x moreTBD behavior, color/label presentation, stale-session protection, readiness/overflow behavior, and axe coverage where supported.
Out of scope:
- Event-property mapping, category persistence, preference writes, generic category-service infrastructure, a final
+x moretooltip/full-list decision, and direct calendar mutation.
| Assignee | ||
Comment 3•1 month ago
|
||
TB-Tools story description:
Summary:
Implement main-dialog category selection and selected-category chips using serializable draft state.
Links:
- Zeplin main create/edit category area: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a0f2f285393a283202254bc
- Interaction guide: Create > Categories: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.why4m6lqup0#heading=h.deguqnpnz4ep
- SOW: In Scope: https://docs.google.com/document/d/1ZVLX8VjxaYsSBuywLyFsXf27Q-Pf55g8QxT8G9z0eZ4/edit?tab=t.0#heading=h.bz8l40hwl6cr
Questions and concerns:
-
The SOW includes “Add to personal category” but lists broader event category/color work as a future improvement. Confirm whether this story is limited to the Zeplin row-and-chips MVP. (additional work is out of scope)
-
Planning: Questions - Q15 Category MVP Scope And Overflow Disclosure
Acceptance criteria:
- The main dialog provides an accessible Add category control and selected-category chips/tags.
- The current session’s selected categories render through stable
storeObserverselections of a plain category draft. Do not use getters that pull state from the store. - The category draft holds only plain stable IDs or labels and design-relevant color/label metadata. It contains no preference object,
calIEvent, calendar object, DOM node, or popup state. - Selecting or removing a category dispatches a narrow category-section patch and changes draft state only. Chip removal is keyboard accessible.
- Category-choice lookup, popup-open state, active option, type-ahead text, and layout measurement remain local control state. They do not enter Redux.
- A memoized selector derives the full selected-category view model from store state; responsive chip capacity and
+x morelayout remain DOM/controller-local. - The main view shows two or three chips as space allows, then displays
+x more. Tooltip/full-list behavior for+x morewill scroll within the dialog. - A single chip can not be multiple lines and truncates any overflowed text at the end of the line.
- Category color and label treatment follows the design. Visible chip overflow must not grow or re-position the dialog; initial hydrated chips are accounted for before show readiness completes.
- A route/session replacement clears obsolete local category interaction and prevents stale selection or removal events from patching the newer draft.
- Bug 2062008 owns edit-source category mapping and Save-time event-property conversion.
- Add focused tests for Add category entry, selected-chip display, keyboard removal, serializable draft-only patches, two/three-chip capacity,
+x moreTBD behavior, color/label presentation, stale-session protection, readiness/overflow behavior, and axe coverage where supported.
Out of scope:
- Event-property mapping, category persistence, preference writes, generic category-service infrastructure, a final
+x moretooltip/full-list decision, and direct calendar mutation.
| Assignee | ||
Comment 4•1 month ago
•
|
||
TB-Tools story description:
Summary:
Add the structure and styles for the category row. This story does not load categories or connect the controls to event data.
Links:
- Zeplin main create/edit category area
- Interaction guide: Create > Categories
- Statement of work: In Scope
- Planning: Category scope and overflow
- Bug 2084433: Load categories and connect category selection
Acceptance criteria:
- Use the shared row from Bug 2061586.
- Add the markup for Add category, the category list, selected chips, and each chip's remove button.
- Add the markup for +x more and the area that shows the remaining categories.
- Keep each chip on one line. Cut off long text at the end of that line.
- Provide styles for category labels and colors.
- Keep overflow inside the dialog. It must not make the dialog grow or change position.
- Give controls translated labels, accessible names, and visible keyboard focus.
Required implementation details:
- Use fixed sample data in tests to show empty, filled, long-label, and overflow states.
- Do not add category lookup, Redux subscriptions, draft changes, or Save behavior.
- Leave real category colors, the visible chip count, and control actions to Bug 2084433.
Minimum test coverage:
- Check the markup and labels.
- Check single-line chips, long labels, and scrolling.
- Check supported themes, display densities, and forced colors.
- Run automated accessibility checks where supported.
Out of scope:
- Loading categories, adding or removing selections, calculating +x more, and saving.
- Broader category or event-color work beyond the designed row and chips.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 5•25 days ago
|
||
Add the shared category row, translated controls, reusable chip markup, and bounded scrolling styles. Include keyboard, accessibility, theme, and layout coverage.
| Assignee | ||
Updated•15 days ago
|
Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/bc7afa8155db
Add category row and chip markup. r=tobyp
| Assignee | ||
Updated•7 days ago
|
Description
•