From 2ca78c3d4e0e8aae6a43b0e0458072d06b490807 Mon Sep 17 00:00:00 2001 From: koji Date: Tue, 23 Apr 2024 14:07:20 -0400 Subject: [PATCH] add text about simulator to prompt guide component --- .../src/assets/localization/en/protocol_generator.json | 1 + .../src/molecules/PromptGuide/__tests__/PromptGuide.test.tsx | 3 +++ opentrons-ai-client/src/molecules/PromptGuide/index.tsx | 3 +++ 3 files changed, 7 insertions(+) diff --git a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json index 379757f3f23..04509609800 100644 --- a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json +++ b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json @@ -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": "Tip racks and labware: Use names from the Opentrons Labware Library.", "try_example_prompts": "Stuck? Try these example prompts to get started.", "type_your_prompt": "Type your prompt...", diff --git a/opentrons-ai-client/src/molecules/PromptGuide/__tests__/PromptGuide.test.tsx b/opentrons-ai-client/src/molecules/PromptGuide/__tests__/PromptGuide.test.tsx index babe9f271f8..48ecca239f8 100644 --- a/opentrons-ai-client/src/molecules/PromptGuide/__tests__/PromptGuide.test.tsx +++ b/opentrons-ai-client/src/molecules/PromptGuide/__tests__/PromptGuide.test.tsx @@ -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() diff --git a/opentrons-ai-client/src/molecules/PromptGuide/index.tsx b/opentrons-ai-client/src/molecules/PromptGuide/index.tsx index 3cb4c69cc51..a0d6925c9bf 100644 --- a/opentrons-ai-client/src/molecules/PromptGuide/index.tsx +++ b/opentrons-ai-client/src/molecules/PromptGuide/index.tsx @@ -86,6 +86,9 @@ export function PromptGuide(): JSX.Element { span: , }} /> + + {t('simulator_description')} + ) }