Skip to content

Content: search only filters the loaded page and contradicts the pager #664

Closed

Description

@gkhngyk

Problem

The search box filters client-side over opportunities — which, since server-side pagination, is only the currently loaded page (max 100 rows). The server route supports no search parameter. Two user-facing consequences:

  1. On a brand with 340 opportunities, searching scans only the visible 100 — a user searching for a title that lives on page 2 sees "no results" and concludes the record is gone.
  2. While a search term is active the pager still renders from the unfiltered total — it can read "1–100 of 340" above a table showing 3 rows.

Evidence

Fix

Preferred: add a q parameter to the list endpoint (ilike on title/description), send the debounced search term from the client, and let the pager reflect the searched total. Minimal fallback: scope the UI honestly — hide the pager while a search term is active and change the placeholder to "Search this page…".

Acceptance criteria

  • Searching finds matches beyond the first page (preferred fix), or the UI explicitly says search is page-scoped (fallback).
  • The pager numbers never contradict the visible row count while searching.

Activity

  1. added
    bug
    good first issue
    on Aug 7, 2026
  2. BharadwajKanneveti commented on Aug 7, 2026

    @BharadwajKanneveti
    Contributor

    hi @gkhngyk i will work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions