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): delete unused code #16869

Draft
wants to merge 6 commits into
base: edge
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions protocol-designer/src/ProtocolEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { DndProvider } from 'react-dnd'
import { HashRouter } from 'react-router-dom'
import { HTML5Backend } from 'react-dnd-html5-backend'
import { DIRECTION_COLUMN, Flex, OVERFLOW_AUTO } from '@opentrons/components'
import { PortalRoot as TopPortalRoot } from './components/portals/TopPortal'

import { ProtocolRoutes } from './ProtocolRoutes'
import { useScreenSizeCheck } from './resources/useScreenSizeCheck'
import { DisabledScreen } from './organisms/DisabledScreen'
import { PortalRoot, DisabledScreen } from './organisms'

function ProtocolEditorComponent(): JSX.Element {
const isValidSize = useScreenSizeCheck()
Expand All @@ -14,7 +14,7 @@ function ProtocolEditorComponent(): JSX.Element {
id="protocol-editor"
style={{ width: '100%', height: '100vh', overflow: OVERFLOW_AUTO }}
>
<TopPortalRoot />
<PortalRoot />
<Flex flexDirection={DIRECTION_COLUMN}>
{!isValidSize && <DisabledScreen />}
<HashRouter>
Expand Down
49 changes: 0 additions & 49 deletions protocol-designer/src/assets/localization/en/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,6 @@
},
"hint": {
"dont_show_again": "Don't show me again",
"add_liquids_and_labware": {
"title": "Your labware has no liquids in it",
"summary": "In {{deck_setup_step}}, hover on labware to add liquids.",
"step1": "Add liquids",
"step2": "Watch liquids move as you build your protocol"
},
"deck_setup_explanation": {
"title": "Setting up your protocol",
"body1": "If you look to your left you will see the Protocol Timeline, and that the \"Starting Deck State\" step is listed first.",
"body2": "Before you can build a protocol that tells the robot how to move liquid around, you'll need to tell the Protocol Designer where all of your labware is on the deck, and which liquids start in which wells. As you add steps to your protocol the Protocol Designer will move liquid from the starting positions you defined in the Starting Deck State to new positions.",
"body3": "Hover on empty slots in the deck to add labware. Hover on labware to add liquid to the wells."
},
"custom_labware_with_modules": {
"title": "Cannot verify compatibility of custom labware",
"body": "The Protocol Designer cannot confirm whether or not custom labware is compatible with any module. Proceed if you are confident your custom labware will fit."
},
"module_without_labware": {
"title": "Missing labware",
"body": "Your module has no labware on it. We recommend you add labware before proceeding."
},
"multiple_modules_without_labware": {
"title": "Missing labware",
"body": "One or more module has no labware on it. We recommend you add labware before proceeding"
},
"export_v8_1_protocol_7_3": {
"title": "Robot and app update may be required",
"body1": "This protocol can only run on app and robot server version",
"body2": "7.3.0 or higher",
"body3": ". Please ensure your robot is updated to the correct version."
},
"unused_hardware": {
"title": "Protocol has unused hardware"
},
Expand All @@ -76,25 +46,6 @@
"li1": "If the Thermocycler lid is closed it may take a very long time to reach a cooler temperature.",
"li2": "If the room temperature in your lab is higher than the temperature you have defined, the lid will never reach it. This will stall your protocol indefinitely."
},
"protocol_can_enter_batch_edit": {
"title": "Editing multiple steps",
"body1": "Now that your protocol has multiple steps, you can try using Protocol Designer’s batch edit features.",

"body2": "To select multiple steps:",
"li1a": "Hold ",
"strong_li1": "SHIFT + Click ",
"li1b": "to select a range of steps",

"li2a": "Use ",
"strong_li2": "CTRL + Click (PC) or ⌘ + Click (Mac) ",
"li2b": "to select a single additional step.",

"body3a": "To delete or duplicate multiple steps:",
"body3b": "Use the control bar at the top of the Protocol Timeline.",

"body4a": "To batch edit Transfer or Mix advanced settings:",
"body4b": "Only include Transfer or Mix steps in your selection."
},
"waste_chute_warning": {
"title": "Disposing labware",
"body1": "Moving labware to the Waste Chute permanently discards it. You can't use this labware in later steps. During a protocol run, the labware will be dropped in the chute and become irretrievable."
Expand Down
213 changes: 0 additions & 213 deletions protocol-designer/src/components/BatchEditForm/BatchEditMix.tsx

This file was deleted.

Loading
Loading