Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display length of shortest path in local results UI #3687

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

p-
Copy link
Contributor

@p- p- commented Aug 12, 2024

Hey 👋

This PR implements the my feature request from #3659 for local path queries.
I'm totally open for changes of course (e.g. visualize it differently etc.)

The changes currently look like this:
display-shortest-path-local

(a badge showing the shortest path (4 or 12 here in this screenshot) was added and the length of the paths is shown on the respective entries in parentheses (e.g. (12 steps)). Additionally, a tooltip Shortest path is shown when hovering over the badge)

Note:

  • most of the added lines are for tests which I newly created. (the actual changes are quite small)
  • I've copied the contents for mockresults.ts from this story.

@p- p- requested a review from a team as a code owner August 12, 2024 13:29
Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for doing this. One minor change to the changelog entry and then 👍🏼.

extensions/ql-vscode/CHANGELOG.md Outdated Show resolved Hide resolved
@p- p- requested a review from aeisenberg August 12, 2024 15:27
@p-
Copy link
Contributor Author

p- commented Aug 12, 2024

@aeisenberg wow thanks!

Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

🚢

@aeisenberg aeisenberg merged commit 756200b into github:main Aug 12, 2024
15 checks passed
@norascheuch norascheuch mentioned this pull request Sep 26, 2024
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.

2 participants