Skip to content

feat(editor): clear results when clearing a query, add Clear Results menu#1426

Merged
datlechin merged 1 commit into
mainfrom
fix/1256-clear-query-results
May 27, 2026
Merged

feat(editor): clear results when clearing a query, add Clear Results menu#1426
datlechin merged 1 commit into
mainfrom
fix/1256-clear-query-results

Conversation

@datlechin
Copy link
Copy Markdown
Member

Closes #1256.

The trash "Clear Query" button cleared the editor text but left the previous query's results in the panel, with no way to remove them.

Changes

  • The trash button now clears the query and its results together.
  • A new "Clear Results" item on the results right-click menu clears results while keeping the query, shown for query tabs that have results.
  • Both route through a shared clearActiveQueryResults() that reuses the existing result-reset path. No confirmation, since re-running the query repopulates the panel.

Tests

ClearQueryResultsTests covers the clear path, query-text preservation, and the query-tab gating.

@datlechin datlechin merged commit f1d2a16 into main May 27, 2026
2 checks passed
@datlechin datlechin deleted the fix/1256-clear-query-results branch May 27, 2026 05:20
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: Delete the data in the Results panel when deleting a query

1 participant