Description
Several improvements to the Category field in the new Edit Contentlet, across the category selector dialog and the field component.
Category selector dialog (the "Select categories" modal):
- Apply button styled as primary.
- Cancel button styled as tertiary (currently both look primary).
- Keep/standardize the existing Clear all action in the selected-categories panel.
Category field component (the field with chips + Select):
- The Select button styled as primary.
- Add a Clear all button/option to the field component so users can clear all selected categories without opening the selector.
- Investigate moving the X (remove) button to the left of each chip label instead of the right — apply if feasible; if a component constraint prevents it, document why.
- Left-align the chips when they wrap to more than one row (currently they appear center-aligned — see screenshot).
🖼️ Screenshots (attach to the issue): category selector dialog, categories field component, and the wrong (centered) alignment when chips span multiple rows.
Acceptance Criteria
Selector dialog
Field component
Chip layout
X (remove) position — investigation
Suggested Tests
Frontend styling/layout/state change (no backend/endpoint change), so coverage is Unit-first with a single E2E smoke. Integration/Postman are not applicable.
Unit (Jest/Spectator) — primary coverage
E2E (Playwright) — one focused smoke only
Integration / Postman
Note: the X-to-left item is exploratory. If the investigation concludes it isn't feasible, the related unit assertion should verify the documented fallback (X on the right) rather than fail.
Priority
Medium
Additional Context
Part of the new Edit Contentlet work (dotCMS: New Edit Contentlet), Category field. The clear-all is requested in both places: a new one on the field component and the existing one in the selector dialog (standardized). The X-to-left change is exploratory ("check if possible") rather than a hard requirement. The multi-row alignment fix targets the centered-rows bug shown in the attached screenshot.
Description
Several improvements to the Category field in the new Edit Contentlet, across the category selector dialog and the field component.
Category selector dialog (the "Select categories" modal):
Category field component (the field with chips + Select):
Acceptance Criteria
Selector dialog
Field component
Chip layout
X (remove) position — investigation
Suggested Tests
Frontend styling/layout/state change (no backend/endpoint change), so coverage is Unit-first with a single E2E smoke. Integration/Postman are not applicable.
Unit (Jest/Spectator) — primary coverage
justify-content: flex-start) — assert the layout class/style, not pixel positionsE2E (Playwright) — one focused smoke only
Integration / Postman
Priority
Medium
Additional Context
Part of the new Edit Contentlet work (
dotCMS: New Edit Contentlet), Category field. The clear-all is requested in both places: a new one on the field component and the existing one in the selector dialog (standardized). The X-to-left change is exploratory ("check if possible") rather than a hard requirement. The multi-row alignment fix targets the centered-rows bug shown in the attached screenshot.