You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1/bug] No filter by connection, date range, or success/failure — only full-text SQL search #326
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).
Activity
feat(history): filter, sort and export the history