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(opentrons-ai-client): add prompt button #14970

Merged
merged 16 commits into from
Apr 23, 2024
Prev Previous commit
add text about simulator to prompt guide component
  • Loading branch information
koji committed Apr 23, 2024
commit 2ca78c3d4e0e8aae6a43b0e0458072d06b490807
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"share_your_thoughts": "Share your thoughts here",
"side_panel_body": "Write a prompt in natural language to generate a Reagent Transfer or a PCR protocol for the OT-2 or Opentrons Flex using the Opentrons Python Protocol API.",
"side_panel_header": "Use natural language to generate protocols with OpentronsAI powered by OpenAI",
"simulator_description": "Once OpentronsAI has written your protocol, type \"simulate\" in the prompt box to try it out.",
"tipracks_and_labware": "<span>Tip racks and labware: Use names from the <a>Opentrons Labware Library</a>.</spa>",
"try_example_prompts": "Stuck? Try these example prompts to get started.",
"type_your_prompt": "Type your prompt...",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ describe('PromptGuide', () => {
'What if you don’t provide all of those pieces of information?'
)
screen.getByText('OpentronsAI asks you to provide it!')
screen.getByText(
'Once OpentronsAI has written your protocol, type "simulate" in the prompt box to try it out.'
)
})
it('should have the right url', () => {
render()
Expand Down
3 changes: 3 additions & 0 deletions opentrons-ai-client/src/molecules/PromptGuide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export function PromptGuide(): JSX.Element {
span: <StyledText css={BODY_TEXT_STYLE} />,
}}
/>
<StyledText css={BODY_TEXT_STYLE}>
{t('simulator_description')}
</StyledText>
</Flex>
)
}
Expand Down
Loading