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

feat(protocol-designer): prevent user from adding plate reader without gripper #17152

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Dec 19, 2024

Overview

Here, I prevent saving adding a plate reader in DeckSetupTools if a gripper has not already been added. In a followup, we will enforce a timeline error at for plate reader stepforms that modify the lid state of the reader.

TODO: update snackbar copy/confirm that behavior with Design

Closes AUTH-1195

Test Plan and Hands on Testing

  • open or create a flex protocol and ensure a gripper is not configured
  • navigate to edit > protocol starting deck
  • select a right column slot and select absorbance reader
  • select "done" and verify that the toolbox does not save, and a snackbar renders informing you to setup gripper first
Screen.Recording.2024-12-19.at.1.41.01.PM.mov

Changelog

  • update logic for handleConfirm in DeckSetupTools to check for presence of a gripper when saving absorbance reader
  • fix tests

Review requests

  • see test plan

Risk assessment

low

…t gripper

Here, I prevent saving adding a plate reader in DeckSetupTools if a gripper has not already been added. In a followup, we will enforce a timeline error at for plate reader stepforms that modify the lid state of the reader.

Closes AUTH-1095
@ncdiehl11 ncdiehl11 self-assigned this Dec 19, 2024
@ncdiehl11 ncdiehl11 requested review from koji and jerader December 19, 2024 18:41
@ncdiehl11 ncdiehl11 marked this pull request as ready for review December 19, 2024 18:42
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner December 19, 2024 18:42
@ncdiehl11 ncdiehl11 removed the request for review from a team December 19, 2024 18:42
@ncdiehl11 ncdiehl11 requested a review from jerader December 19, 2024 19:02
Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm!

@ncdiehl11 ncdiehl11 merged commit 81a90e4 into edge Dec 19, 2024
14 checks passed
@ncdiehl11 ncdiehl11 deleted the pd_fix-platereader-can-add branch December 19, 2024 19:21
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