Skip to content

feat(frontend): query history per engine with inline recall (closes #642) - #651

Merged
danielnuld merged 1 commit into
mainfrom
feat/642-engine-history
Oct 12, 2026
Merged

danielnuld merged 1 commit into
mainfrom
feat/642-engine-history

Conversation

@danielnuld

Copy link
Copy Markdown
Owner

Closes #642.

  • Each history entry records the driver it ran on (engine). Entries recorded before this still parse, and show under "All engines".
  • History panel: an engine filter that starts on the focused connection's engine, and the engine is shown next to the connection name.
  • Editor bar: a ▾ button beside History lists the latest 10 distinct queries for the tab's engine, from any connection of it. Each shows on one line with how long ago it ran (Intl.RelativeTimeFormat) and the full text on hover. Picking one inserts it at the caret, like a snippet, so nothing being written is lost. It reuses the context menu, which gains an optional hint and title.

Tests: history.test.ts (engine search, historyEngines, recentForEngine, oneLine, timeAgo, legacy parse) and HistoryPanel.test.tsx (engine filter). The full suite (166 files) and typecheck pass. Not yet tried in the running app.

Each history entry now records the driver it ran on. The history panel
filters by engine, starting on the focused connection's, and a new button
beside History in the editor bar lists the latest distinct queries for the
tab's engine (one line, how long ago, full text on hover); picking one
inserts it at the caret. Entries recorded before this keep working under
"All engines".

closes #642
@danielnuld
danielnuld force-pushed the feat/642-engine-history branch from 993c5b2 to a36a3f5 Compare October 12, 2026 22:57
@danielnuld
danielnuld merged commit ff556d2 into main Oct 12, 2026
13 checks passed
@danielnuld
danielnuld deleted the feat/642-engine-history branch October 12, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(frontend): per-engine query history with inline recall (Compass-style)

1 participant