-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix retention for data summary collapses triggered by splitter button and resizing #6520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I tested locally and have a couple comments.
if (collapsed) { | ||
context.instance.collapseSummary(); | ||
} else { | ||
context.instance.expandSummary(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works after the first attempt. From a fresh Positron start, collapsing it, switching away & back, and returning does not hold state. See video below:
Screen.Recording.2025-02-27.at.10.55.07.AM.mov
I will explore more this afternoon. Do you see this behavior as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird... No, it works for me on the first attempt. Does this problem still arise after you restart the Positron development version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still not right for me, but @softwarenerd was able to confirm that it works as expected... so likely something in my working copy.
...kbench/browser/positronDataExplorer/components/dataExplorerPanel/components/dataExplorer.tsx
Outdated
Show resolved
Hide resolved
Feel free to edit my code! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good!
if (collapsed) { | ||
context.instance.collapseSummary(); | ||
} else { | ||
context.instance.expandSummary(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still not right for me, but @softwarenerd was able to confirm that it works as expected... so likely something in my working copy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be working for me. Thanks for the PR!
@softwarenerd @samclark2015 I do not need to worry about the failed tests or merging, right? Anything else that needs to be done on my part? |
Correct, we will merge in today. Thanks again for this! |
Merged in #6550 (duplicate of this PR to allow tests to run). |
Release Notes
New Features
Bug Fixes
After this fix, it is also safe to close #5572 .
demonstration1.mp4
QA Notes