-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Opentrons AI Client - Steps section (#16748)
# Overview This PR adds the Steps section to the create protocol flow. ![image](https://github.com/user-attachments/assets/57c91ae7-de64-44b7-88fe-37668d326672) ## Test Plan and Hands on Testing - On the landing page click Create a new protocol button, you will be redirected to the new page - fill up the required information in the Application, Instruments, Modules and Labwares & Liquids sections and click Confirm - You now can add individual Steps or paste from document - The Prompt Preview component is updated with the data entered. ## Changelog - Add Steps section ## Review requests - Verify new section. ## Risk assessment - low
- Loading branch information
1 parent
5b0c7f4
commit 2e25a45
Showing
20 changed files
with
1,049 additions
and
34 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
39 changes: 39 additions & 0 deletions
39
opentrons-ai-client/src/atoms/ControlledTextAreaField/index.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Controller } from 'react-hook-form' | ||
import { TextAreaField } from '../TextAreaField' | ||
|
||
interface ControlledTextAreaFieldProps { | ||
id?: string | ||
name: string | ||
rules?: any | ||
title?: string | ||
caption?: string | ||
height?: string | ||
} | ||
|
||
export function ControlledTextAreaField({ | ||
id, | ||
name, | ||
rules, | ||
title, | ||
caption, | ||
height, | ||
}: ControlledTextAreaFieldProps): JSX.Element { | ||
return ( | ||
<Controller | ||
name={name} | ||
rules={rules} | ||
render={({ field }) => ( | ||
<TextAreaField | ||
title={title} | ||
caption={caption} | ||
id={id} | ||
name={name} | ||
onChange={field.onChange} | ||
value={field.value} | ||
onBlur={field.onBlur} | ||
height={height} | ||
/> | ||
)} | ||
/> | ||
) | ||
} |
Oops, something went wrong.