Skip to content

[P1/ux] History has no filters, sort, or export #589

Closed

Description

@EVWorth

Context

QueryHistory.tsx filters with a single substring match over entry.sql.

Problem

Everything else recorded on an entry is unusable for finding it. There is no filter by connection, database, status, origin or date range, no sort, and no way to get the data out. "What did I run against staging yesterday that failed" and "what were my slowest queries" are both ordinary questions the panel cannot answer, and both are standard in DBeaver’s Query Manager and DataGrip.

Expected

  • Filter by connection, database, success/failure, origin, and date range
  • Sort by time or duration, so a slowest-first view exists
  • Export the current filtered view as CSV or SQL

The search box keeps working as it does; filters narrow what it searches.

Notes

Extends #326, which asks for connection/date/status filters only. Sort and export are the rest of the industry baseline. Best done after history moves to SQLite, where filtering is a WHERE clause instead of an array scan.

Acceptance

Filtering to one connection with status=error and a date range returns only those entries; sorting by duration puts the slowest first; export writes the filtered set.

Activity

  1. added
    severity/p1
    kind/ux
    area/history
    on Sep 9, 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/historykind/uxseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions