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

Preview panel loses its state when tabs are cycled #1072

Open
volkanunsal opened this issue Jan 31, 2025 · 5 comments
Open

Preview panel loses its state when tabs are cycled #1072

volkanunsal opened this issue Jan 31, 2025 · 5 comments
Labels

Comments

@volkanunsal
Copy link
Contributor

A common use case for me is to open the preview panel to check the trace output of the script and switch over to the script to make modifications. When I switch back to the preview panel, the folding state of the output tree is getting lost, and leads to increased friction. Can the preview panel state be maintained?

I think it could also be a good idea to make the preview panel more user friendly.

Image
Copy link

The ability to maintain the state of the preview panel when switching between tabs is a critical feature that can greatly improve user experience. The fact that it currently loses its state leads to increased friction and requires users to recall their previous actions, which is not ideal. It would be beneficial if this issue could be addressed.
In terms of making the preview panel more user-friendly, there may be several potential solutions. One option could be to provide a button or toggle in the preview pane that allows users to save their current state and quickly return to it later. Another possibility is to automatically save the state when the preview tab is closed and restore it when the user returns.
I hope this feedback is helpful, and thank you for bringing this issue to my attention.

AI-generated content by issue-reviewer may be incorrect

@pelikhan
Copy link
Member

Unfortunately I don't control the built in preview so this is not possible yet. However I have been rewriting the trace preview as a react app and should be able to add proper routing, as well as serializing the collapse state.

@volkanunsal
Copy link
Contributor Author

Maybe I can lend a hand?

@pelikhan
Copy link
Member

That would be awesome! I"ll start a discussion.

@pelikhan
Copy link
Member

#1076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants