-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): disable module commands when protocol paused (#5209)
The module command cards displayed in the protocol run page have historically allowed users to send module commands (like setting temperature) when the protocol was active but paused. That used to work essentially as a side effect: modules didn't respect pausing, so you could tell them to do things while the protocol was paused. Now that modules respect pausing, sending module commands when the protocol is paused results in the modules not doing anything. The science and UX intent of controlling modules from the protocol run page is to implement pre-protocol preparation (like preheat) or post-protocol behavior (like keeping some incubation going), not to control the modules when paused - and in fact, when more advanced module control behaviors land in protocol designer or in the python api, controlling modules when the protocol is paused could break protocol execution. This PR changes the module command cards to only work when the protocol is not paused or running. When the module cards are disabled, the action button is now displayed but inaccessible, with an explanatory tooltip on hover. Co-authored-by: Mike Cousins <[email protected]>
- Loading branch information
Showing
16 changed files
with
227 additions
and
284 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.