Skip to content

Commit df5dc38

Browse files
b-coopery3rsh
andauthored
refactor(app): add guidance copy to rename robot slideout (#11137)
Co-authored-by: Josh McVey <[email protected]>
1 parent a32ae7c commit df5dc38

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/src/assets/localization/en/device_settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"rename_robot_button": "Rename robot",
117117
"rename_robot_input_limitation_label": "35 characters max",
118118
"rename_robot_input_limitation_detail": "Please enter 35 characters max using valid inputs: letters and numbers",
119+
"rename_robot_prefer_usb_connection": "To ensure reliable renaming of your robot, please connect to it via USB.",
119120
"robot_name_already_exists": "Robot name already exists",
120121
"factory_reset_slideout_title": "Factory Reset",
121122
"factory_reset_slideout_description": "Select the robot data to clear.",

app/src/organisms/Devices/RobotSettings/AdvancedTab/AdvancedTabSlideouts/RenameRobotSlideout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Slideout } from '../../../../../atoms/Slideout'
2222
import { StyledText } from '../../../../../atoms/text'
2323
import { PrimaryButton } from '../../../../../atoms/buttons'
2424
import { InputField } from '../../../../../atoms/InputField'
25+
import { Banner } from '../../../../../atoms/Banner'
2526

2627
import type { UpdatedRobotName } from '@opentrons/api-client'
2728
import type { State, Dispatch } from '../../../../../redux/types'
@@ -140,6 +141,9 @@ export function RenameRobotSlideout({
140141
}
141142
>
142143
<Flex flexDirection={DIRECTION_COLUMN}>
144+
<Banner type="informing" marginBottom={SPACING.spacing4}>
145+
{t('rename_robot_prefer_usb_connection')}
146+
</Banner>
143147
<StyledText as="p" marginBottom={SPACING.spacing4}>
144148
{t('rename_robot_input_limitation_detail')}
145149
</StyledText>

0 commit comments

Comments
 (0)