Skip to content

feat(prompts): search filter for the Query Fan-out By Prompt view #413

Closed

Description

@gkhngyk

Problem

On /dashboard/prompts?tab=fanout, the By Prompt view lists every prompt that produced fan-out sub-queries, but there is no way to search it. For a brand with dozens of tracked prompts, finding a specific prompt means scrolling and expanding rows manually.

Proposal

Add a search input to the By Prompt view that filters the prompt groups by prompt text (case-insensitive substring match) as you type.

  • The data is already in memory: the byPrompt memo in web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx (~line 113) builds the PromptGroup[] — filtering is a simple derived useMemo over group.prompt.text, no network call or debounce needed.
  • Place the input above the By Prompt table (standard Input component with a search placeholder).
  • Show a small empty state when nothing matches (e.g. "No prompts match your search").
  • Clearing the input restores the full list; expanded/collapsed row state should behave sanely (keeping it per-prompt-id means it survives filtering for free).

Optional (nice to have, not required): the same input could also filter the Frequency view by sub-query text when that view is active.

Acceptance criteria

  • Typing in the search box filters the By Prompt groups by prompt text, case-insensitively
  • Empty state shown when no prompt matches
  • Clearing the search restores the full list
  • No change to data fetching (pure client-side filter)

Activity

  1. added
    enhancement
    good first issue
    on Jul 12, 2026
  2. Srija-65 commented on Jul 12, 2026

    @Srija-65
    Contributor

    Hi! I'd like to work on this issue if it's available. Please assign it to me. Thanks!

  3. gkhngyk commented on Jul 12, 2026

    @gkhngyk
    ContributorAuthor

    Done via #415 (merged) — the PR didn't carry a closing keyword, so closing manually.

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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions