Skip to content

[TASK] Content Drive: Migrate existent filters to chip + popover + listbox pattern #35490

Description

@zJaaal

Description

This task migrates the existing Content Drive toolbar filters off p-multiSelect display="chip" and onto the new pattern.

Image

Filters in scope

  1. Base Type + Content Type → merge into a single filter with a master/detail panel (see attached design)
  2. 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 baseType filter only, no contentType.
  • Picking specific Content Types narrows that base type's contribution; the store receives both baseType and contentType.

Filter persistence + Clear all

  • Search no longer wipes filters. Typing in the global search adds/updates the title filter in place, preserving any active base/content-type/language chips. Clearing the search removes the title key without disturbing the rest.
  • Folder navigation no longer touches filters. setPath only updates path and resets pagination — chips and the search input stay as-is when the user clicks around the tree.
  • Clear all action. A new clearFilters store action resets every filter (including search). The toolbar renders a <p-button [text]="true"> labelled content-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 uses items-center so chips and the button align.

Acceptance Criteria

  • Each migrated filter uses DotChipFilterComponent (chip), <p-popover> (overlay), <p-listbox> (list), and DotFilterListItemComponent (rows)
  • Each filter assigns CHIP_FILTER_POPOVER_PT and CHIP_FILTER_LISTBOX_PT from @dotcms/portlets/content-drive/ui for 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 / setPath behavior 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

Activity

  1. moved this from New to In Progress in dotCMS - Product Planningon Apr 28, 2026
  2. self-assigned this
    on Apr 28, 2026
  3. added theissue type on Apr 28, 2026
  4. changed the title [-][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[/+] on Apr 28, 2026
  5. moved this from In Progress to QA in dotCMS - Product Planningon May 6, 2026
  6. removed their assignment
    on May 6, 2026
  7. KevinDavilaDotCMS commented on May 7, 2026

    @KevinDavilaDotCMS
    Contributor

    Passed QA

    Tested 6017bcd

    2026-05-07.02-39-49.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions