Repository navigation
Closed
Copy link
Description
Description
This task migrates the existing Content Drive toolbar filters off p-multiSelect display="chip" and onto the new pattern.
Filters in scope
- Base Type + Content Type → merge into a single filter with a master/detail panel (see attached design)
- Language — standalone migration (a partial language-field migration already exists on the follow-up branch as a starting point)
Other filters (workflow, status, author, tags, …) are out of scope; they'll come in their own tickets when those filters are introduced.
Caveat — merged Base Type + Content Type filter
Two-column popover. Left column: Base Types as a selectable list. Right column: Content Types filtered by the currently-highlighted Base Type. Design screenshot to be attached on this issue.
Chip label rules (Base Type always first):
| State | Example label |
|---|---|
| Base Type selected, no specific Content Types under it | Content (All) |
| Multiple base types, none narrowed | Content (All), Page (All) |
| Overflow | Content (All) and 4 more |
| Specific Content Types only | Banner, Blog Author |
| Mixed | Content (All), Blog Author |
Selection semantics:
- Picking a Base Type without selecting any specific Content Types means "everything of that base type" — the store receives a
baseTypefilter only, nocontentType. - Picking specific Content Types narrows that base type's contribution; the store receives both
baseTypeandcontentType.
Filter persistence + Clear all
- Search no longer wipes filters. Typing in the global search adds/updates the
titlefilter in place, preserving any active base/content-type/language chips. Clearing the search removes thetitlekey without disturbing the rest. - Folder navigation no longer touches filters.
setPathonly updatespathand resets pagination — chips and the search input stay as-is when the user clicks around the tree. - Clear all action. A new
clearFiltersstore action resets every filter (including search). The toolbar renders a<p-button [text]="true">labelledcontent-drive.filters.clear-all("Clear all") inline next to the last filter chip; it's visible only when at least one filter is active. The filter row usesitems-centerso chips and the button align.
Acceptance Criteria
- Each migrated filter uses
DotChipFilterComponent(chip),<p-popover>(overlay),<p-listbox>(list), andDotFilterListItemComponent(rows) - Each filter assigns
CHIP_FILTER_POPOVER_PTandCHIP_FILTER_LISTBOX_PTfrom@dotcms/portlets/content-drive/uifor styling - Existing behavior preserved: content-type lazy-load + virtual scroll + debounced server-side filter; popover-close resets the listbox filter input; debounced store updates
- Base Type + Content Type merged filter renders the master/detail layout from the design
- Chip label generation follows the rules above (covered by tests)
- Search and folder navigation continue to preserve unrelated filters (no regression of the
setGlobalSearch/setPathbehavior already on the branch) - "Clear all" button stays visible only when at least one filter is active and clears every filter via
store.clearFilters(no regression) - Tests updated/added for: chip label generation across the table cases, base-vs-specific selection logic, popover toggle via the chip, search reset on popover hide
- Visual matches the design spec: 14px label text, 16×16 checkbox, primary-700 selected text color, slate-50 hover background, py-3 row height, rounded-lg popover
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][TASK] Migrate Content Drive base/content type and language filters to chip + popover + listbox pattern[/-][+][TASK] Content Drive: Migrate existent filters to chip + popover + listbox pattern[/+]feat(content-drive): merge base + content type filters into one chip (d…
KevinDavilaDotCMS commentedon May 7, 2026
Passed QA
Tested
6017bcd2026-05-07.02-39-49.mov