[go: up one dir, main page]

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

Improve run instances UX: avoid removing data and add a clear popup. #99649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ckaiser
Copy link
Contributor
@ckaiser ckaiser commented Nov 24, 2024

Improves the experience of using the "Run Instances" dialog by not aggressively resizing the internal structures, I was bitten by this multiple times when testing things that require multiple instances with different parameters: If I have the dialog set up with 4 instances with different parameters but I want to run two instances temporarily for a different test, lowering the number deletes all the data in the rows that are gone, so when I go back to the old number I'd have to set it up again.

To make it a bit easier to remove things if, for example, the user creates a ton of different params and wants to go back, I've added a right click menu with the option to clear a single line in the tree or to clear everything, I think that should cover the more common use cases.

Here's a video of it in action:

behavior_demo.mp4

@ckaiser ckaiser requested a review from a team as a code owner November 24, 2024 19:22
@Calinou Calinou added this to the 4.x milestone Nov 24, 2024
Copy link
Member
@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected.

However, when you restart the editor, all instances are back to the highest number of instances you've ever defined.

This means that for example, if you create 2 instances (having 3 in total), fill their arguments, reduce the instance count to 1, save and restart the editor, you'll see all 3 instances again once you restart the editor. This applies even after using right-click > Clear All.

@ckaiser
Copy link
Contributor Author
ckaiser commented Nov 25, 2024

Had to add a new project metadata entry to keep the value, because before we were just relying on the size of the list's size for the instance count field, but since now we're keeping all the data it's not really possible to do this without storing the number somewhere.

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

Successfully merging this pull request may close these issues.

2 participants