Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #991 +/- ##
==========================================
+ Coverage 30.72% 33.48% +2.75%
==========================================
Files 525 526 +1
Lines 23627 21415 -2212
Branches 1408 1524 +116
==========================================
- Hits 7259 7170 -89
+ Misses 16241 14127 -2114
+ Partials 127 118 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andreachild
reviewed
Jun 10, 2025
packages/graph-explorer/src/modules/SearchSidebar/QuerySearchTabContent.tsx
Show resolved
Hide resolved
andreachild
reviewed
Jun 10, 2025
packages/graph-explorer/src/modules/SearchSidebar/QuerySearchTabContent.tsx
Show resolved
Hide resolved
andreachild
approved these changes
Jun 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Restores the query results if the user switches sidebar panels or closes the sidebar.
This uses
useMutationStatehook from TanStack Query to access all past iterations of the mutation that have been executed. The last one in the array is the latest one, so we show the results of that mutation.The result container logic had to be reworked since the way status is represented in the mutation is a little bit different.
This also adds an empty state for before a query is run and when cancelled.
Validation
Related Issues
Check List
license.
pnpm checksto ensure code compiles and meets standards.pnpm testto check if all tests are passing.Changelog.md.