Skip to content

Implement Query History Drawer Section #73

@abdotop

Description

@abdotop

The Query tab and QueryEditor already exist in the codebase (see web/pages/DeploymentPage.tsx). A drawer component is present and currently used as a sidebar, but the Query History section is not yet implemented.

Objectives:

  • Implement a Query History section inside the existing drawer (sidebar) in the Query tab.
  • The drawer should display a list of previously executed SQL queries, each showing:
    • The full or truncated SQL query
    • Timestamp of execution
    • Number of columns/rows returned (if available)
    • Quick actions: Run (re-execute in QueryEditor), Insert (insert into editor without running), Delete (remove from history),

Acceptance Criteria:

  • The drawer displays a functional query history with Run/Insert/Delete actions.
  • Query selection fills the editor, closes the drawer, and (optionally) executes the query.
  • Entries are persisted per user.

Relevant files:

  • web/pages/DeploymentPage.tsx
  • web/components/QueryHistory.tsx
  • web/lib/queryHistory.ts

This feature will help users efficiently manage and reuse their SQL queries in the application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentPull requests that are related to the Content team

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions