-
Notifications
You must be signed in to change notification settings - Fork 17
Only show message to stop instance when instance has been selected #2962
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
I think adding a test here is overkill, but on the off chance we want to add one, this one is ready to go. |
david-crespo
left a comment
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 looks good. It's kind of a shame that we tell the user that an instance needs to be stopped, but we don't give any way of actually doing that. As the proposed test shows, you have to close the modal and nav to instances to stop it. Ben has always talked about having more inline actions for these cases.
If you want to add a test, that test is too much — I'd lean toward adding 5 lines to an existing test, picking one instance that is already stopped and one that isn't.
oxidecomputer/console@ab76183...e8b79c3 * [e8b79c3a](oxidecomputer/console@e8b79c3a) oxidecomputer/console#2987 * [ae965cff](oxidecomputer/console@ae965cff) oxidecomputer/console#2986 * [87656470](oxidecomputer/console@87656470) oxidecomputer/console#2981 * [886a26ab](oxidecomputer/console@886a26ab) oxidecomputer/console#2978 * [7f9dda20](oxidecomputer/console@7f9dda20) oxidecomputer/console#2975 * [063d0439](oxidecomputer/console@063d0439) oxidecomputer/console#2973 * [439c7dd3](oxidecomputer/console@439c7dd3) oxidecomputer/console#2971 * [601cdfa8](oxidecomputer/console@601cdfa8) oxidecomputer/console#2967 * [1f2019c8](oxidecomputer/console@1f2019c8) oxidecomputer/console#2966 * [170bf351](oxidecomputer/console@170bf351) oxidecomputer/console#2965 * [716fbbac](oxidecomputer/console@716fbbac) oxidecomputer/console#2962 * [e464bde6](oxidecomputer/console@e464bde6) oxidecomputer/console#2964
oxidecomputer/console@ab76183...e8b79c3 * [e8b79c3a](oxidecomputer/console@e8b79c3a) oxidecomputer/console#2987 * [ae965cff](oxidecomputer/console@ae965cff) oxidecomputer/console#2986 * [87656470](oxidecomputer/console@87656470) oxidecomputer/console#2981 * [886a26ab](oxidecomputer/console@886a26ab) oxidecomputer/console#2978 * [7f9dda20](oxidecomputer/console@7f9dda20) oxidecomputer/console#2975 * [063d0439](oxidecomputer/console@063d0439) oxidecomputer/console#2973 * [439c7dd3](oxidecomputer/console@439c7dd3) oxidecomputer/console#2971 * [601cdfa8](oxidecomputer/console@601cdfa8) oxidecomputer/console#2967 * [1f2019c8](oxidecomputer/console@1f2019c8) oxidecomputer/console#2966 * [170bf351](oxidecomputer/console@170bf351) oxidecomputer/console#2965 * [716fbbac](oxidecomputer/console@716fbbac) oxidecomputer/console#2962 * [e464bde6](oxidecomputer/console@e464bde6) oxidecomputer/console#2964
A small logic update to check for the presence of a selected instance before showing the "plz stop instance" message box. Also updates the copy from "An instance" to "This instance"
Closes #2943
No selected instance:

A not-stopped instance has been selected:

O ho! A stopped instance has been selected:
