Skip to content

Content: zero-result filters hide the filter bar, leaving no way to clear them #660

Closed

Description

@gkhngyk

Problem

The Content list decides between empty state and content with opportunities.length === 0 — but opportunities is the server-filtered page. Select a filter combination that matches nothing (e.g. Status = dismissed on a brand with no dismissed rows) and the whole content branch — including the Card that holds the filter selects — unmounts. The filter value lives in React state, so the user is stuck: no controls on screen to undo their own filter without reloading the page. Worse, the empty state shown is the "No content opportunities yet" + Generate card, which is simply wrong — data exists, the filter just matched nothing.

Evidence

Fix

Distinguish "brand has no opportunities at all" (all filters at all, zero rows) from "filters matched nothing". In the second case keep the header and filter bar rendered and show a no-matches message with a Clear filters button.

Acceptance criteria

  • With active filters and zero matches, the filter bar stays visible and a clear-filters affordance is offered.
  • The "No content opportunities yet" + Generate card only appears when the brand truly has no opportunities.
  • Unfiltered behavior is unchanged.

Activity

  1. added
    bug
    good first issue
    content
    and removed
    good first issue
    on Aug 7, 2026
  2. self-assigned this
    on Aug 17, 2026
  3. added a commit that references this issue on Aug 18, 2026
    6dbd8a6
  4. added a commit that references this issue on Aug 19, 2026
    9cccf24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcontent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions