Skip to content

[P1/doc-drift] FR-9.1.4 'execute immediately' option missing from history panel #325

Closed

Description

@EVWorth

Context

DESIGN_REQUIREMENTS FR-9.1.4 (docs/design/DESIGN_REQUIREMENTS.md:545") acceptance: "Click a history entry to load it into the editor; option to execute immediately". The implementation (src/components/history/QueryHistory.tsx:32-40`) only handles the click→load path. The "execute immediately" half is missing.

Problem

Repeat workflows ("rerun the last migration", "rerun the weekly aggregation") require Edit → Ctrl+Enter or right-click → run, neither of which exists. The history panel supports only one action: load into editor.

Files

  • src/components/history/QueryHistory.tsx:32-40
  • docs/design/DESIGN_REQUIREMENTS.md:545

Expected

Right-click context menu or hover button offering "Insert into editor" (current behavior) and "Run now" (insert + execute).

Proposed fix

Scope S — add a right-click context menu on history entries with "Insert into editor" and "Run now" options. The "Run now" path needs to know the original connectionName and database from the HistoryEntry and route to the correct connection.

Acceptance

Right-click a history entry → "Run now" option appears → SQL is loaded into the active tab AND the tab is focused; user hits Ctrl+Enter to execute.

Needs human verify

yes

Doc drift

DESIGN_REQUIREMENTS FR-9.1.4

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    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/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions