File tree Expand file tree Collapse file tree 16 files changed +107
-40
lines changed
components/organisms/DefineLiquidsModal
pages/Designer/ProtocolSteps/StepForm/StepTools/MoveLiquidTools
shared-data/protocol/types/schemaV8 Expand file tree Collapse file tree 16 files changed +107
-40
lines changed Original file line number Diff line number Diff line change 31
31
"displayName" : " Water" ,
32
32
"description" : null ,
33
33
"displayColor" : " #b925ff" ,
34
- "liquidGroupId" : " 0"
34
+ "liquidGroupId" : " 0" ,
35
+ "liquidClass" : null
35
36
}
36
37
},
37
38
"ingredLocations" : {
2664
2665
}
2665
2666
}
2666
2667
},
2667
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
2668
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
2668
2669
"liquids" : {
2669
2670
"0" : {
2670
2671
"displayName" : " Water" ,
2671
2672
"description" : " " ,
2672
- "displayColor" : " #b925ff"
2673
+ "displayColor" : " #b925ff" ,
2674
+ "liquidClass" : null
2673
2675
}
2674
2676
},
2675
2677
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change 31
31
"displayName" : " Water" ,
32
32
"description" : null ,
33
33
"displayColor" : " #b925ff" ,
34
- "liquidGroupId" : " 0"
34
+ "liquidGroupId" : " 0" ,
35
+ "liquidClass" : null
35
36
}
36
37
},
37
38
"ingredLocations" : {
2688
2689
}
2689
2690
}
2690
2691
},
2691
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
2692
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
2692
2693
"liquids" : {
2693
2694
"0" : {
2694
2695
"displayName" : " Water" ,
2695
2696
"description" : " " ,
2696
- "displayColor" : " #b925ff"
2697
+ "displayColor" : " #b925ff" ,
2698
+ "liquidClass" : null
2697
2699
}
2698
2700
},
2699
2701
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change 37
37
"displayName" : " Water" ,
38
38
"description" : null ,
39
39
"displayColor" : " #b925ff" ,
40
- "liquidGroupId" : " 0"
40
+ "liquidGroupId" : " 0" ,
41
+ "liquidClass" : null
41
42
},
42
43
"1" : {
43
44
"displayName" : " Samples" ,
44
45
"description" : null ,
45
46
"displayColor" : " #ffd600" ,
46
- "liquidGroupId" : " 1"
47
+ "liquidGroupId" : " 1" ,
48
+ "liquidClass" : null
47
49
}
48
50
},
49
51
"ingredLocations" : {
4057
4059
}
4058
4060
}
4059
4061
},
4060
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
4062
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
4061
4063
"liquids" : {
4062
4064
"0" : {
4063
4065
"displayName" : " Water" ,
4064
4066
"description" : " " ,
4065
- "displayColor" : " #b925ff"
4067
+ "displayColor" : " #b925ff" ,
4068
+ "liquidClass" : null
4066
4069
},
4067
4070
"1" : {
4068
4071
"displayName" : " Samples" ,
4069
4072
"description" : " " ,
4070
- "displayColor" : " #ffd600"
4073
+ "displayColor" : " #ffd600" ,
4074
+ "liquidClass" : null
4071
4075
}
4072
4076
},
4073
4077
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change 31
31
"displayName" : " h20" ,
32
32
"description" : null ,
33
33
"displayColor" : " #b925ff" ,
34
- "liquidGroupId" : " 0"
34
+ "liquidGroupId" : " 0" ,
35
+ "liquidClass" : null
35
36
},
36
37
"1" : {
37
38
"displayName" : " sample" ,
38
39
"description" : null ,
39
40
"displayColor" : " #ffd600" ,
40
- "liquidGroupId" : " 1"
41
+ "liquidGroupId" : " 1" ,
42
+ "liquidClass" : null
41
43
}
42
44
},
43
45
"ingredLocations" : {
3583
3585
}
3584
3586
}
3585
3587
},
3586
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
3588
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
3587
3589
"liquids" : {
3588
3590
"0" : {
3589
3591
"displayName" : " h20" ,
3590
3592
"description" : " " ,
3591
- "displayColor" : " #b925ff"
3593
+ "displayColor" : " #b925ff" ,
3594
+ "liquidClass" : null
3592
3595
},
3593
3596
"1" : {
3594
3597
"displayName" : " sample" ,
3595
3598
"description" : " " ,
3596
- "displayColor" : " #ffd600"
3599
+ "displayColor" : " #ffd600" ,
3600
+ "liquidClass" : null
3597
3601
}
3598
3602
},
3599
3603
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change 34
34
"displayName" : " samples" ,
35
35
"description" : null ,
36
36
"displayColor" : " #b925ff" ,
37
- "liquidGroupId" : " 0"
37
+ "liquidGroupId" : " 0" ,
38
+ "liquidClass" : null
38
39
},
39
40
"1" : {
40
41
"displayName" : " dna" ,
41
42
"description" : null ,
42
43
"displayColor" : " #ffd600" ,
43
- "liquidGroupId" : " 1"
44
+ "liquidGroupId" : " 1" ,
45
+ "liquidClass" : null
44
46
}
45
47
},
46
48
"ingredLocations" : {
3570
3572
}
3571
3573
}
3572
3574
},
3573
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
3575
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
3574
3576
"liquids" : {
3575
3577
"0" : {
3576
3578
"displayName" : " samples" ,
3577
3579
"description" : " " ,
3578
- "displayColor" : " #b925ff"
3580
+ "displayColor" : " #b925ff" ,
3581
+ "liquidClass" : null
3579
3582
},
3580
3583
"1" : {
3581
3584
"displayName" : " dna" ,
3582
3585
"description" : " " ,
3583
- "displayColor" : " #ffd600"
3586
+ "displayColor" : " #ffd600" ,
3587
+ "liquidClass" : null
3584
3588
}
3585
3589
},
3586
3590
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change 3650
3650
}
3651
3651
}
3652
3652
},
3653
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
3653
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
3654
3654
"liquids" : {},
3655
3655
"commandSchemaId" : " opentronsCommandSchemaV10" ,
3656
3656
"commands" : [
Original file line number Diff line number Diff line change 2390
2390
}
2391
2391
}
2392
2392
},
2393
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
2393
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
2394
2394
"liquids" : {},
2395
2395
"commandSchemaId" : " opentronsCommandSchemaV10" ,
2396
2396
"commands" : [
Original file line number Diff line number Diff line change 31
31
"displayName" : " 123" ,
32
32
"description" : null ,
33
33
"displayColor" : " #b925ff" ,
34
- "liquidGroupId" : " 0"
34
+ "liquidGroupId" : " 0" ,
35
+ "liquidClass" : null
35
36
}
36
37
},
37
38
"ingredLocations" : {
2265
2266
}
2266
2267
}
2267
2268
},
2268
- "liquidSchemaId" : " opentronsLiquidSchemaV1 " ,
2269
+ "liquidSchemaId" : " opentronsLiquidSchemaV2 " ,
2269
2270
"liquids" : {
2270
2271
"0" : {
2271
2272
"displayName" : " 123" ,
2272
2273
"description" : " " ,
2273
- "displayColor" : " #b925ff"
2274
+ "displayColor" : " #b925ff" ,
2275
+ "liquidClass" : null
2274
2276
}
2275
2277
},
2276
2278
"commandSchemaId" : " opentronsCommandSchemaV10" ,
Original file line number Diff line number Diff line change @@ -419,7 +419,11 @@ export const reduxActionToAnalyticsEvent = (
419
419
? null
420
420
: location
421
421
)
422
- const flattenedLiquids = flattenNestedProperties ( liquids )
422
+ const liquidClasses = {
423
+ liquidClasses : Object . values ( liquids ) . map ( liquid =>
424
+ 'liquidClass' in liquid ? liquid . liquidClass : null
425
+ ) ,
426
+ }
423
427
424
428
const fixtureInfo = {
425
429
trashBin : trashCommands ,
@@ -439,7 +443,7 @@ export const reduxActionToAnalyticsEvent = (
439
443
...metadata ,
440
444
...loadCommandInfo ,
441
445
...robotType ,
442
- ...flattenedLiquids ,
446
+ ...liquidClasses ,
443
447
...numberOfSteps ,
444
448
...fixtureInfo ,
445
449
...labwareInfo ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface LiquidClassDropdownProps {
15
15
control : Control < Ingredient , any >
16
16
setValue : UseFormSetValue < Ingredient >
17
17
liquidClassOptions : Array < { name : string ; value : string } >
18
- liquidClass ?: string
18
+ liquidClass ?: string | null
19
19
}
20
20
21
21
export function LiquidClassDropdown ( {
You can’t perform that action at this time.
0 commit comments