Skip to content

[P1/bug] No filter by connection, date range, or success/failure — only full-text SQL search #326

Closed

Description

@EVWorth

Context

DESIGN_REQUIREMENTS FR-9.1.2 requires filter by connection, date range, success/failure. The implementation only does full-text substring match on entry.sql.

Problem

A user with 500 history entries from 3 different databases can't narrow to "today's PROD failures" — they have to scroll and click. The HistoryEntry already carries all the fields needed (connectionName, executedAt, status), so the data is there; the UI just doesn't expose it.

Files

  • src/components/history/QueryHistory.tsx:28-35

Expected

Three filter controls: connection dropdown, date range picker, status toggle. The filtered useMemo already exists, just extend its predicate.

Proposed fix

Scope S — add a filter row above the entry list with three controls: a connection dropdown (multi-select from distinct entry.connectionName values), a date range picker (Today / Last 7 days / Last 30 days / All), and a status toggle (All / Success / Failure).

Acceptance

A user with 500 entries can filter to "last 7 days, Production DB, success only" and see ≤ 50 entries; the filter state is local UI state (not persisted — refresh resets).

Needs human verify

yes

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/history
    on Jul 31, 2026
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

    area/historyauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions