Skip to content

Commit d78450d

Browse files
committed
Merge branch 'cedwies/restructure-manage-device-tab' into HEAD
2 parents ca715cf + 1ecb331 commit d78450d

File tree

4 files changed

+43
-31
lines changed

4 files changed

+43
-31
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Android: make the UI work with responsive font sizes and adhere to OS font size settings
1515
- Add "Change device password" functionality (in Settings)
1616
- Add icons for CTA and action buttons in account page
17+
- Restructure "Manage device" tab in settings
1718

1819
## v4.49.0
1920
- Bundle BitBox02 Nova firmware version v9.24.0

frontends/web/src/locales/en/app.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,9 @@
716716
},
717717
"title": "Backups"
718718
},
719+
"bluetoothFirmware": {
720+
"title": "Bluetooth firmware"
721+
},
719722
"deviceInformation": {
720723
"attestation": {
721724
"description": "The BitBoxApp checks if your device is authentic."
@@ -731,6 +734,9 @@
731734
},
732735
"title": "Device information"
733736
},
737+
"deviceSettings": {
738+
"title": "Device settings"
739+
},
734740
"expert": {
735741
"bip85": {
736742
"description": "Generate child keys from your BitBox wallet.",
@@ -767,11 +773,11 @@
767773
}
768774
},
769775
"firmware": {
770-
"firmwareVersion": "Firmware Version",
776+
"firmwareVersion": "Firmware version",
771777
"newVersion": {
772778
"label": "Available version"
773779
},
774-
"title": "Firmware",
780+
"title": "Device firmware",
775781
"upToDate": "Your device is up to date",
776782
"upgradeAvailable": "New upgrade available",
777783
"version": {

frontends/web/src/routes/settings/bb02-settings.tsx

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ const Content = ({ deviceID }: TProps) => {
123123
<ShowRecoveryWordsSetting deviceID={deviceID} />
124124
</div>
125125

126-
{/*"Device information" section*/}
126+
{/*"Device settings" section*/}
127127
<div className={styles.section}>
128-
<SubTitle className={styles.withMobilePadding}>{t('deviceSettings.deviceInformation.title')}</SubTitle>
128+
<SubTitle className={styles.withMobilePadding}>{t('deviceSettings.deviceSettings.title')}</SubTitle>
129129
{deviceInfo ? (
130130
<DeviceNameSetting
131131
deviceName={deviceInfo.name}
@@ -134,7 +134,25 @@ const Content = ({ deviceID }: TProps) => {
134134
) :
135135
<StyledSkeleton />
136136
}
137-
<AttestationCheckSetting deviceID={deviceID} />
137+
{ deviceInfo && deviceInfo.bluetooth && !runningInIOS()
138+
? <BluetoothToggleEnabledSetting deviceID={deviceID} />
139+
: null
140+
}
141+
{
142+
versionInfo ? (
143+
<ChangeDevicePasswordSetting
144+
deviceID={deviceID}
145+
canChangePassword={versionInfo.canChangePassword}
146+
/>
147+
) : (
148+
<StyledSkeleton />
149+
)
150+
}
151+
</div>
152+
153+
{/*"Device information" section*/}
154+
<div className={styles.section}>
155+
<SubTitle className={styles.withMobilePadding}>{t('deviceSettings.deviceInformation.title')}</SubTitle>
138156
{
139157
versionInfo ? (
140158
<FirmwareSetting
@@ -145,30 +163,27 @@ const Content = ({ deviceID }: TProps) => {
145163
<StyledSkeleton />
146164
}
147165
{
148-
deviceInfo && deviceInfo.securechipModel !== '' ?
149-
<SecureChipSetting secureChipModel={deviceInfo.securechipModel} />
150-
:
151-
<StyledSkeleton />
166+
deviceInfo && deviceInfo.bluetooth ? (
167+
<BluetoothFirmwareSetting
168+
firmwareVersion={deviceInfo.bluetooth.firmwareVersion}
169+
/>
170+
) : null
152171
}
172+
<AttestationCheckSetting deviceID={deviceID} />
153173
{
154174
rootFingerprintResult && rootFingerprintResult.success ?
155175
<RootFingerprintSetting rootFingerprint={rootFingerprintResult.rootFingerprint} />
156176
:
157177
<StyledSkeleton />
158178
}
179+
{
180+
deviceInfo && deviceInfo.securechipModel !== '' ?
181+
<SecureChipSetting secureChipModel={deviceInfo.securechipModel} />
182+
:
183+
<StyledSkeleton />
184+
}
159185
</div>
160186

161-
{/*"Bluetooth" section*/}
162-
{ deviceInfo && deviceInfo.bluetooth ? (
163-
<div className={styles.section}>
164-
<SubTitle className={styles.withMobilePadding}>Bluetooth</SubTitle>
165-
{ !runningInIOS() ? <BluetoothToggleEnabledSetting deviceID={deviceID} /> : null }
166-
<BluetoothFirmwareSetting
167-
firmwareVersion={deviceInfo.bluetooth.firmwareVersion}
168-
/>
169-
</div>
170-
) : null }
171-
172187
{/*"Expert settings" section*/}
173188
<div className={styles.section}>
174189
<SubTitle className={styles.withMobilePadding}>{t('settings.expert.title')}</SubTitle>
@@ -194,16 +209,6 @@ const Content = ({ deviceID }: TProps) => {
194209
}
195210
<GoToStartupSettings deviceID={deviceID} />
196211
<FactoryResetSetting deviceID={deviceID} />
197-
{
198-
versionInfo ? (
199-
<ChangeDevicePasswordSetting
200-
deviceID={deviceID}
201-
canChangePassword={versionInfo.canChangePassword}
202-
/>
203-
) : (
204-
<StyledSkeleton />
205-
)
206-
}
207212
</div>
208213
</>
209214
);

frontends/web/src/routes/settings/components/device-settings/bluetooth-firmware-setting.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const BluetoothFirmwareSetting = ({ firmwareVersion }: TProps) => {
3434
return (
3535
<>
3636
<SettingsItem
37-
settingName={t('deviceSettings.firmware.title')}
37+
settingName={t('deviceSettings.bluetoothFirmware.title')}
3838
secondaryText={secondaryText}
3939
displayedValue={firmwareVersion}
4040
extraComponent={extraComponent}

0 commit comments

Comments
 (0)