-
Notifications
You must be signed in to change notification settings - Fork 178
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 Create New Protocol - Application Section (#…
…16578) # Overview This PR adds the first part of the Create New Protocol flow for the Opentrons AI Client It also refactors the renderWithProviders test util to use Jotai provider ![image](https://github.com/user-attachments/assets/6b478303-be53-4790-9d21-90952024096d) ## Test Plan and Hands on Testing - On the landing page click Create a new protocol button, you will be redirected to the new page - You can select a Scientific application and describe it. You can also select other and a new input will be displayed. - The Prompt Preview component is updated with the data entered. - ## Changelog - Add Create New Protocol page - Add first section Application functionality - Header is now sticky - Updated renderWithProviders to use Jotai provider ## Review requests - Verify new page. ## Risk assessment - low
- Loading branch information
1 parent
6ae579c
commit cebe51a
Showing
25 changed files
with
896 additions
and
169 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
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export const getHasOptedIn = (state: any): boolean | null => | ||
import type { Mixpanel } from '../resources/types' | ||
|
||
export const getHasOptedIn = (state: Mixpanel): boolean | null => | ||
state.analytics.hasOptedIn |
17 changes: 17 additions & 0 deletions
17
opentrons-ai-client/src/assets/localization/en/create_protocol.json
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,17 @@ | ||
{ | ||
"application_title": "Application", | ||
"application_scientific_dropdown_title": "What's your scientific application?", | ||
"application_scientific_dropdown_placeholder": "Select an option", | ||
"basic_aliquoting": "Basic aliquoting", | ||
"pcr": "PCR", | ||
"other": "Other", | ||
"application_other_title": "Other application", | ||
"application_other_caption": "Example: “cherrypicking” or “serial dilution”", | ||
"application_describe_title": "Describe what you are trying to do", | ||
"application_describe_caption": "Example: “The protocol performs automated liquid handling for Pierce BCA Protein Assay Kit to determine protein concentrations in various sample types, such as cell lysates and eluates of purification process.", | ||
"section_confirm_button": "Confirm", | ||
"instruments_title": "Instruments", | ||
"modules_title": "Modules", | ||
"labware_liquids_title": "Labware & Liquids", | ||
"steps_title": "Steps" | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import shared from './shared.json' | ||
import protocol_generator from './protocol_generator.json' | ||
import create_protocol from './create_protocol.json' | ||
|
||
export const en = { | ||
shared, | ||
protocol_generator, | ||
create_protocol, | ||
} |
Oops, something went wrong.