Skip to content

Commit cfeac75

Browse files
Merge pull request #935 from NordicSemiconductor/enhance/install_app_error
Enhance message when installing downloadable apps fails
2 parents d8e98fe + fa3e89c commit cfeac75

File tree

11 files changed

+29
-24
lines changed

11 files changed

+29
-24
lines changed

Changelog.minor.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ release the new version.
1212
### Changed
1313

1414
- #914: Show the devices actually supported by the current Quick Start app.
15+
- #935: Updated and corrected dialog styles from
16+
[shared v146](https://github.com/NordicSemiconductor/pc-nrfconnect-shared/releases/tag/v146).
17+
- #935: Better message when installing downloadable apps fails.
1518

1619
## 4.3.0
1720

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
const sharedConfig =
88
require('@nordicsemiconductor/pc-nrfconnect-shared/config/jest.config')([
9-
'packageJson',
109
'serialport',
1110
]);
1211

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"devDependencies": {
9494
"@electron/notarize": "^2.1.0",
95-
"@nordicsemiconductor/pc-nrfconnect-shared": "^132.0.0",
95+
"@nordicsemiconductor/pc-nrfconnect-shared": "^147.0.0",
9696
"@playwright/test": "^1.16.3",
9797
"@testing-library/user-event": "^14.4.3",
9898
"@types/chmodr": "1.0.0",

src/launcher/features/apps/appsEffects.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
isInstalled,
2222
LaunchableApp,
2323
} from '../../../ipc/apps';
24+
import { cleanIpcErrorMessage } from '../../../ipc/error';
2425
import type { AppThunk } from '../../store';
2526
import appCompatibilityWarning from '../../util/appCompatibilityWarning';
2627
import { handleSourcesWithErrors } from '../sources/sourcesEffects';
@@ -149,7 +150,9 @@ const install =
149150
} catch (error) {
150151
dispatch(
151152
ErrorDialogActions.showDialog(
152-
`Unable to install: ${(error as Error).message}`
153+
`Unable to install downloadable app.`,
154+
undefined,
155+
cleanIpcErrorMessage(describeError(error))
153156
)
154157
);
155158
}

src/launcher/features/launcherUpdate/__snapshots__/UpdateAvailableDialog.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`UpdateAvailableDialog shows the new version if one becomes available 1
4343
</div>
4444
</div>
4545
<div
46-
class="modal-body"
46+
class="tw-select-text modal-body"
4747
>
4848
<p>
4949
A new version (

src/launcher/features/launcherUpdate/__snapshots__/UpdateProgressDialog.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports[`UpdateProgressDialog can be without progress, and not cancellable 1`] =
4444
</div>
4545
</div>
4646
<div
47-
class="modal-body"
47+
class="tw-select-text modal-body"
4848
>
4949
<p>
5050
Downloading nRF Connect for Desktop
@@ -101,7 +101,7 @@ exports[`UpdateProgressDialog can have a version, percent downloaded, and be can
101101
</div>
102102
</div>
103103
<div
104-
class="modal-body"
104+
class="tw-select-text modal-body"
105105
>
106106
<p>
107107
Downloading nRF Connect for Desktop
@@ -179,7 +179,7 @@ exports[`UpdateProgressDialog has cancelling disabled after being cancelled 1`]
179179
</div>
180180
</div>
181181
<div
182-
class="modal-body"
182+
class="tw-select-text modal-body"
183183
>
184184
<p>
185185
Downloading nRF Connect for Desktop
@@ -258,7 +258,7 @@ exports[`UpdateProgressDialog has cancelling disabled when 100 percent complete
258258
</div>
259259
</div>
260260
<div
261-
class="modal-body"
261+
class="tw-select-text modal-body"
262262
>
263263
<p>
264264
Downloading nRF Connect for Desktop

src/launcher/features/proxyLogin/__snapshots__/ProxyErrorDialog.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports[`ProxyErrorDialog is displayed after users canceled the login 1`] = `
4040
/>
4141
</div>
4242
<div
43-
class="modal-body"
43+
class="tw-select-text modal-body"
4444
>
4545
<p>
4646
It appears that you are having problems authenticating with a proxy server. This will prevent you from using certain features of nRF Connect for Desktop, such as installing downloadable apps or checking for updates.

src/launcher/features/proxyLogin/__snapshots__/ProxyLoginDialog.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports[`ProxyLoginDialog is displayed after a login is requested 1`] = `
3636
</div>
3737
</div>
3838
<div
39-
class="modal-body"
39+
class="tw-select-text modal-body"
4040
>
4141
<p>
4242
The proxy server
@@ -166,7 +166,7 @@ exports[`ProxyLoginDialog is updated if users enter a username 1`] = `
166166
</div>
167167
</div>
168168
<div
169-
class="modal-body"
169+
class="tw-select-text modal-body"
170170
>
171171
<p>
172172
The proxy server

src/launcher/features/settings/__snapshots__/Settings.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ exports[`SettingsView should render check for updates completed, with everything
209209
</div>
210210
</div>
211211
<div
212-
class="modal-body"
212+
class="tw-select-text modal-body"
213213
>
214214
All apps are up to date.
215215
</div>
@@ -438,7 +438,7 @@ exports[`SettingsView should render check for updates completed, with updates av
438438
</div>
439439
</div>
440440
<div
441-
class="modal-body"
441+
class="tw-select-text modal-body"
442442
>
443443
One or more updates are available. Go to the apps screen to update.
444444
</div>

0 commit comments

Comments
 (0)