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(protocol-designer,-step-generation): update plate reader types and introduce step form #17263

Merged
merged 5 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add constants for initialization mode and fix types
ncdiehl11 committed Jan 14, 2025
commit b10f4df164078832ac57e4c2aeca57338d882d2f
2 changes: 2 additions & 0 deletions protocol-designer/src/constants.ts
Original file line number Diff line number Diff line change
@@ -175,6 +175,8 @@ export const STAGING_AREA_CUTOUTS_ORDERED: CutoutId[] = [
'cutoutD3',
'cutoutA3',
]
export const ABSORBANCE_READER_INITIALIZE_MODE_SINGLE = 'single'
export const ABSORBANCE_READER_INITIALIZE_MODE_MULTI = 'multi'
export const ABSORBANCE_READER_INITIALIZE: 'initialize' = 'initialize'
export const ABSORBANCE_READER_READ: 'read' = 'read'
export const ABSORBANCE_READER_LID: 'lid' = 'lid'
17 changes: 11 additions & 6 deletions protocol-designer/src/form-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type {
ABSORBANCE_READER_INITIALIZE,
ABSORBANCE_READER_INITIALIZE_MODE_MULTI,
ABSORBANCE_READER_INITIALIZE_MODE_SINGLE,
ABSORBANCE_READER_LID,
ABSORBANCE_READER_READ,
PAUSE_UNTIL_RESUME,
@@ -382,12 +384,15 @@ export interface HydratedAbsorbanceReaderFormData {
| typeof ABSORBANCE_READER_INITIALIZE
| typeof ABSORBANCE_READER_READ
| typeof ABSORBANCE_READER_LID
filePath: null
lidOpen: null
mode: null
moduleId: null
referenceWavelength: null
wavelengths: null
filePath: string | null
lidOpen: boolean | null
mode:
| typeof ABSORBANCE_READER_INITIALIZE_MODE_MULTI
| typeof ABSORBANCE_READER_INITIALIZE_MODE_SINGLE
| null
moduleId: string
referenceWavelength: number | null
wavelengths: number[] | null
}
// TODO: Ian 2019-01-17 Moving away from this and towards nesting all form fields
// inside `fields` key, but deprecating transfer/consolidate/distribute is a pre-req
Loading