Skip to content

Commit 3f10d09

Browse files
authored
feat(app): anonymize release notes (#15068)
fall back to default "We recommend upgrading to the latest version" release notes. closes PLAT-266
1 parent f44872b commit 3f10d09

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"gripper_successfully_calibrated": "Gripper successfully calibrated",
2626
"gripper_successfully_detached": "Gripper successfully detached",
2727
"gripper": "Gripper",
28+
"help_us_improve_send_error_report": "Help us improve your experience by sending an error report to support",
2829
"ip_description_second": "Work with your network administrator to assign a static IP address to the robot.",
2930
"learn_uninstalling": "Learn more about uninstalling the app",
3031
"loosen_screws_and_detach": "Loosen screws and detach gripper",
@@ -66,6 +67,7 @@
6667
"update_robot_software_description": "Bypass the auto-update process and update the robot software manually.",
6768
"update_robot_software_link": "Launch software update page",
6869
"versions_sync": "Learn more about keeping the app and robot software in sync",
70+
"view_latest_release_notes_at": "Please contact support for release notes.",
6971
"want_to_help_out": "Want to help out?",
7072
"welcome_title": "Welcome!",
7173
"why_use_lpc": "Labware Position Check is intended to correct for minor variances. Don't use Labware Position Check to compensate for large positional adjustments. Needing to set large labware offsets could indicate a problem with robot calibration."

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"gripper_successfully_calibrated": "Flex Gripper successfully calibrated",
2626
"gripper_successfully_detached": "Flex Gripper successfully detached",
2727
"gripper": "Flex Gripper",
28+
"help_us_improve_send_error_report": "Help us improve your experience by sending an error report to {{support_email}}",
2829
"ip_description_second": "Opentrons recommends working with your network administrator to assign a static IP address to the robot.",
2930
"learn_uninstalling": "Learn more about uninstalling the Opentrons App",
3031
"loosen_screws_and_detach": "Loosen screws and detach Flex Gripper",
@@ -66,6 +67,7 @@
6667
"update_robot_software_description": "Bypass the Opentrons App auto-update process and update the robot software manually.",
6768
"update_robot_software_link": "Launch Opentrons software update page",
6869
"versions_sync": "Learn more about keeping the Opentrons App and robot software in sync",
70+
"view_latest_release_notes_at": "View latest release notes at {{url}}",
6971
"want_to_help_out": "Want to help out Opentrons?",
7072
"welcome_title": "Welcome to your Opentrons Flex!",
7173
"why_use_lpc": "Labware Position Check is intended to correct for minor variances. Opentrons does not recommend using Labware Position Check to compensate for large positional adjustments. Needing to set large labware offsets could indicate a problem with robot calibration."

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@
304304
"use_older_aspirate_description": "Aspirate with the less accurate volumetric calibrations that were used before version 3.7.0. Use this if you need consistency with pre-v3.7.0 results. This only affects GEN1 P10S, P10M, P50M, and P300S pipettes.",
305305
"validating_software": "Validating software...",
306306
"view_details": "View details",
307-
"view_latest_release_notes_at": "View latest release notes at {{url}}",
308307
"view_network_details": "View network details",
309308
"view_update": "View update",
310309
"welcome_description": "Quickly run protocols and check on your robot's status right on your lab bench.",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"get_started": "Get started",
3737
"github": "GitHub",
3838
"go_back": "Go back",
39-
"help_us_improve_send_error_report": "Help us improve your experience by sending an error report to {{support_email}}",
4039
"instruments": "instruments",
4140
"loading": "Loading...",
4241
"next": "Next",

app/src/molecules/ReleaseNotes/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react'
22
import Markdown from 'react-markdown'
33

44
import { StyledText } from '@opentrons/components'
5+
import { useIsOEMMode } from '../../resources/robot-settings/hooks'
56

67
import styles from './styles.module.css'
78

@@ -14,9 +15,11 @@ const DEFAULT_RELEASE_NOTES = 'We recommend upgrading to the latest version.'
1415
export function ReleaseNotes(props: ReleaseNotesProps): JSX.Element {
1516
const { source } = props
1617

18+
const isOEMMode = useIsOEMMode()
19+
1720
return (
1821
<div className={styles.release_notes}>
19-
{source != null ? (
22+
{source != null && !isOEMMode ? (
2023
<Markdown
2124
components={{
2225
div: undefined,

app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface FatalErrorModalProps {
3333
}
3434
export function FatalErrorModal(props: FatalErrorModalProps): JSX.Element {
3535
const { errorMessage, shouldUseMetalProbe, onClose } = props
36-
const { t } = useTranslation(['labware_position_check', 'shared'])
36+
const { t } = useTranslation(['labware_position_check', 'shared', 'branded'])
3737
return createPortal(
3838
<LegacyModalShell
3939
width="47rem"
@@ -70,7 +70,7 @@ export function FatalErrorModal(props: FatalErrorModalProps): JSX.Element {
7070
</StyledText>
7171
) : null}
7272
<StyledText as="p" textAlign={TEXT_ALIGN_CENTER}>
73-
{t('shared:help_us_improve_send_error_report', {
73+
{t('branded:help_us_improve_send_error_report', {
7474
support_email: SUPPORT_EMAIL,
7575
})}
7676
</StyledText>

app/src/organisms/RobotSettingsDashboard/RobotSystemVersion.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function RobotSystemVersion({
4040
'shared',
4141
'device_details',
4242
'app_settings',
43+
'branded',
4344
])
4445
const [showModal, setShowModal] = React.useState<boolean>(isUpdateAvailable)
4546

@@ -76,7 +77,7 @@ export function RobotSystemVersion({
7677
>
7778
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing24}>
7879
<StyledText as="p">
79-
{t('view_latest_release_notes_at', { url: GITHUB_URL })}
80+
{t('branded:view_latest_release_notes_at', { url: GITHUB_URL })}
8081
</StyledText>
8182
<Flex
8283
backgroundColor={COLORS.grey35}

0 commit comments

Comments
 (0)