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

fix(protocol-designer, components): discarding vs delete step form button text #14872

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Apr 11, 2024

closes AUTH-319

Overview

@koji noticed this bug initially where if you delete a step via the close modal for a form, it was different from deleting a step from the delete button in the form. Upon investigating, the actions were actually correct so I modified the button text to be more clear. When closing from the close modal, you are basically discarding of an unsaved step. So you aren't deleting anything, you are just closing/discarding of it.

Additionally, the started deck state and final deck state now is highlighted again when it is active (along with the active color in the liquids tab and app in the settings tab), to match legacy behavior that was broken starting in PD 6.0.0 (see that it is not broken here: https://sandbox.designer.opentrons.com/[email protected]/)

Test Plan

Create a flex or ot-2 protocol. Go to deck map and see that the starting deck state is blue. Add a step and before saving it, delete it via the the "delete step" button and see that it navigates you to the starting deck state. Now create a new step and delete it via the "cancel" button and see that it just discards of the step and does not navigate you to the starting deck state.

Changelog

  • fix the classname shenanigans issue with the text not being highlighted blue
  • update button text

Review requests

see test plan

Risk assessment

low

@jerader jerader requested review from a team as code owners April 11, 2024 17:14
@jerader jerader requested review from ncdiehl11 and koji and removed request for a team April 11, 2024 17:14
@jerader jerader changed the title fix(protocol-designer): discarding vs delete step form button text fix(protocol-designer, components): discarding vs delete step form button text Apr 11, 2024
@@ -98,6 +101,15 @@ export function TitledList(props: TitledListProps): JSX.Element {
iconProps && iconProps.className
)

let textColor = 'auto'
Copy link
Contributor

Choose a reason for hiding this comment

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

need to set auto instead of '' or undefined?

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

left a comment.
the sandbox worked as expected.

@jerader jerader merged commit 044b37f into edge Apr 12, 2024
46 checks passed
@jerader jerader deleted the pd_fix-button-text branch April 12, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants