Skip to content

Improve result history entry labels to be more informative#92

Merged
mattwar merged 2 commits into
mainfrom
user/mattwar/HistoryLabels
Apr 28, 2026
Merged

Improve result history entry labels to be more informative#92
mattwar merged 2 commits into
mainfrom
user/mattwar/HistoryLabels

Conversation

@mattwar

@mattwar mattwar commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 28, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR improves the labels shown for query result history entries by deriving a human-friendly label from leading query comments when available, while retaining access to the server-minified query text for tooltips and hashing.

Changes:

  • Add computeHistoryDisplayLabel() and related helpers to derive informative history labels from leading comments with sensible fallbacks.
  • Store and surface an optional minifiedPreview for tooltips, and reuse server-minified query text for hashing.
  • Add unit tests covering label derivation behaviors (decorative banners, whitespace, CRLF, truncation, fallbacks).

Reviewed changes

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

File Description
src/Client/features/historyManager.ts Adds label computation logic, new minifiedPreview field, and refactors minified-query hashing/minified retrieval.
src/Client/features/historyPanel.ts Updates tooltip to prefer minifiedPreview over the (now more “title-like”) queryPreview.
src/Client/tests/unit/historyManager.test.ts Adds unit tests for computeHistoryDisplayLabel() behavior and edge cases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Client/features/historyManager.ts Outdated
Comment thread src/Client/features/historyManager.ts Outdated
Comment thread src/Client/tests/unit/historyManager.test.ts Outdated
Co-authored-by: Copilot <copilot@github.com>
@mattwar mattwar merged commit 6d1db8a into main Apr 28, 2026
5 checks passed
@mattwar mattwar deleted the user/mattwar/HistoryLabels branch April 28, 2026 20:35
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