Skip to content

Conversation

@asgerf
Copy link
Contributor

@asgerf asgerf commented Oct 21, 2025

Adds a list of the query runs being compared, and their relative order. The UI for opening the comparison doesn't make it clear which is run will appear on the left or on the right.


Screenshot 2025-10-21 at 16 44 20

@asgerf asgerf changed the title Compare performance:Show names of query runs being compared Compare performance: Show names of query runs being compared Oct 21, 2025
@asgerf asgerf marked this pull request as ready for review October 21, 2025 14:45
@asgerf asgerf requested a review from a team as a code owner October 21, 2025 14:45
Copilot AI review requested due to automatic review settings October 21, 2025 14:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the performance comparison UI by displaying the names of query runs being compared and clarifying their relative positions (left vs right). The implementation refactors the data flow to pass complete query info objects instead of just log paths, enabling the extraction of query names for display.

  • Refactored showResults to accept CompletedLocalQueryInfo objects instead of file paths
  • Added query run names to the comparison UI with a list showing which runs are being compared
  • Updated the message interface to include both name and data for each query run

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
extensions/ql-vscode/src/extension.ts Simplified to pass complete query info objects to the view instead of extracting log paths
extensions/ql-vscode/src/compare-performance/compare-performance-view.ts Refactored to handle query info objects, extract names using label provider, and include names in messages
extensions/ql-vscode/src/common/interface-types.ts Updated message interface to wrap performance data with query names
extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx Updated to access nested data structure and display query run names in the UI

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@d10c d10c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@asgerf asgerf merged commit 9ec94b0 into main Oct 22, 2025
18 checks passed
@asgerf asgerf deleted the asgerf/comparison-names branch October 22, 2025 19:46
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.

3 participants