firmware/bootloaderInstructions: Refactor.

- Use steps for the connection procedure
- Use categories (To do: consider making numbering consecutive)
- Show hub bootloader device name explicitly
- List official app to use for recovery (make V2/V3 explicit)
- Copy edit

Also fix the layout (class) of the installation panel to make it consistent with the style of the recovery panel.
This commit is contained in:
Laurens Valk
2022-12-15 14:59:36 -06:00
committed by David Lechner
parent 560da418e0
commit 8aa82eee46
8 changed files with 114 additions and 58 deletions
@@ -400,15 +400,11 @@ const BootloaderModePanel: React.VoidFunctionComponent<BootloaderModePanelProps>
const i18n = useI18n();
return (
<div className={dialogBody}>
<BootloaderInstructions hubType={hubType} />
<p>
{i18n.translate('bootloaderPanel.instruction2', {
flashFirmware: (
<strong>{i18n.translate('flashFirmwareButton.label')}</strong>
),
})}
</p>
<div className={classNames(Classes.DIALOG_BODY, Classes.RUNNING_TEXT)}>
<BootloaderInstructions
hubType={hubType}
flashButtonText={i18n.translate('flashFirmwareButton.label')}
/>
</div>
);
};
@@ -53,8 +53,7 @@
}
},
"bootloaderPanel": {
"title": "Enter update mode",
"instruction2": "Then click the {flashFirmware} button below to connect to the hub and flash the firmware."
"title": "Install"
},
"backButton": {
"label": "Back"
@@ -63,6 +62,6 @@
"label": "Next"
},
"flashFirmwareButton": {
"label": "Connect and flash"
"label": "Install"
}
}