Skip to content

Commit

Permalink
feat(protocol-designer): add thermocycler form profile cycle function…
Browse files Browse the repository at this point in the history
…ality (#16418)

Adds the ability to program thermocycler profile cycle steps and wires
up to thermocycler step form.

TODO: add tests

Closes AUTH-810
  • Loading branch information
ncdiehl11 authored Oct 4, 2024
1 parent 1a73679 commit 12ebf27
Show file tree
Hide file tree
Showing 6 changed files with 626 additions and 30 deletions.
3 changes: 2 additions & 1 deletion protocol-designer/src/assets/localization/en/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@
"add_cycle_step": "Add a cycle step",
"add_step": "Add step",
"add_step_button": "+ Step",
"cycle": "cycle",
"cycle_step": "cycle step",
"cycles": "Cycles {{repetitions}}",
"cycles": "Cycles {{repetitions}}x",
"delete": "delete",
"edit": "Edit Thermocycler profile steps",
"lid_closed": "Closed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ export function StepFormToolbox(props: StepFormToolboxProps): JSX.Element {
getTimelineWarningsForSelectedStep
)
const timeline = useSelector(getRobotStateTimeline)
const [toolboxStep, setToolboxStep] = useState<number>(0)
const [toolboxStep, setToolboxStep] = useState<number>(
// progress to step 2 if thermocycler form is populated
formData.thermocyclerFormType === 'thermocyclerProfile' ||
formData.thermocyclerFormType === 'thermocyclerState'
? 1
: 0
)
const icon = stepIconsByType[formData.stepType]

const ToolsComponent: typeof STEP_FORM_MAP[keyof typeof STEP_FORM_MAP] = get(
Expand Down
Loading

0 comments on commit 12ebf27

Please sign in to comment.