Skip to content

Commit f3f7ecb

Browse files
committed
Merge branch 'develop' into fix/ddw-931-add-disabled-state-to-selects
2 parents 0b33638 + efeec3d commit f3f7ecb

File tree

96 files changed

+444
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+444
-214
lines changed

BESTPRACTICES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ type Props = {
11081108
};
11091109
```
11101110

1111-
For preventing syntax errors, leave a comma after the last key/value pair incase the type definition's properties are rearranged or expanded upon in the future.
1111+
For preventing syntax errors, leave a comma after the last key/value pair in case the type definition's properties are rearranged or expanded upon in the future.
11121112

11131113
:white_check_mark: ***Do***
11141114

@@ -1204,7 +1204,7 @@ const Names = () => (<div>
12041204
## Formatting Selectors
12051205

12061206
* Use class selectors instead of ID selectors.
1207-
* Use camelCase or dashed-case instead of PascelCase or names_with_underscores.
1207+
* Use camel case or dashed-case instead of pascal case or names_with_underscores.
12081208
* Give each selector its own line.
12091209
* Put a space before the opening brace `{` in rule declarations.
12101210
* Put closing braces `}` of rule declarations on a new line.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Features
66

7+
- Improved RTS flags splash screen message ([PR 2901](https://github.com/input-output-hk/daedalus/pull/2901))
78
- Implemented error message when trying to leave wallet without enough ada to support tokens ([PR 2783](https://github.com/input-output-hk/daedalus/pull/2783))
89

910
### Fixes
@@ -12,11 +13,13 @@
1213

1314
### Chores
1415

16+
- Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915))
1517
- Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870))
1618
- Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893))
1719

1820
### Fixes
1921

22+
- Fix warning sign displayed when recommend decimals is zero ([PR 2905](https://github.com/input-output-hk/daedalus/pull/2905))
2023
- Fixed discrete tooltip being clipped by loading overlay when stake pools are adjusted ([PR 2902](https://github.com/input-output-hk/daedalus/pull/2902))
2124

2225
## 4.9.0
@@ -32,6 +35,7 @@
3235

3336
- Fixed main container zIndex ([PR 2863](https://github.com/input-output-hk/daedalus/pull/2863))
3437
- Fixed ui overlap issues ([PR 2881](https://github.com/input-output-hk/daedalus/pull/2881))
38+
- Fixed the gap between Stake Pool View options ([PR 2899](https://github.com/input-output-hk/daedalus/pull/2899))
3539

3640
### Chores
3741

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let
4040
inherit (pkgs.lib) optionalString optional concatStringsSep;
4141
inherit (pkgs) writeTextFile;
4242
crossSystem = lib: (crossSystemTable lib).${target} or null;
43-
# TODO, nsis cant cross-compile with the nixpkgs daedalus currently uses
43+
# TODO, nsis can't cross-compile with the nixpkgs daedalus currently uses
4444
nsisNixPkgs = import localLib.sources.nixpkgs-nsis {};
4545
installPath = ".daedalus";
4646
needSignedBinaries = (signingKeys != null) || (HSMServer != null);

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ module.exports = {
8989
// Jest does not support WASM imports from ESM modules
9090
// https://github.com/facebook/jest/issues/9430
9191
'^@iohk-jormungandr/wallet-js$': 'identity-obj-proxy',
92+
'tests/(.*)': '<rootDir>/tests/$1',
9293
},
9394

9495
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader

nix/nsis-inner.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ in stdenv.mkDerivation {
4343
'';
4444

4545
meta = with lib; {
46-
descripition = "System to create Windows installers";
46+
description = "System to create Windows installers";
4747
homepage = "https://nsis.sourceforge.io/";
4848
};
4949
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "4.9.0-FC1",
4+
"version": "4.9.0",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {

source/common/config/downloadManagerConfig.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// https://www.npmjs.com/package/node-downloader-helper
22
import type {
3-
AllowedDownloadDirectories,
3+
AllowedDownloadDirectoriesValues,
4+
AllowedDownloadDirectoriesKeys,
5+
AllowedDownloadDirectoriesMap,
46
DownloadState,
57
DownloadEventType,
68
} from '../types/downloadManager.types';
79

8-
export const ALLOWED_DOWNLOAD_DIRECTORIES: Record<
9-
string,
10-
AllowedDownloadDirectories
11-
> = {
10+
export const ALLOWED_DOWNLOAD_DIRECTORIES: AllowedDownloadDirectoriesMap = {
1211
DOWNLOADS: 'downloads',
1312
DESKTOP: 'desktop',
1413
STATE_DIRECTORY: 'stateDirectory',

source/common/ipc/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ export type getCardanoAdaAppRendererRequest = {
478478
export type getCardanoAdaAppMainResponse = HardwareWalletCardanoAdaAppResponse;
479479
export const GET_HARDWARE_WALLET_CONNECTION_CHANNEL =
480480
'GET_HARDWARE_WALLET_CONNECTION_CHANNEL';
481-
export type getHardwareWalletConnectiontMainRequest = HardwareWalletConnectionRequest;
482-
export type getHardwareWalletConnectiontRendererResponse = Record<string, any>;
481+
export type getHardwareWalletConnectionMainRequest = HardwareWalletConnectionRequest;
482+
export type getHardwareWalletConnectionRendererResponse = Record<string, any>;
483483
export const SIGN_TRANSACTION_LEDGER_CHANNEL =
484484
'SIGN_TRANSACTION_LEDGER_CHANNEL';
485485
export type signTransactionLedgerRendererRequest = LedgerSignTransactionRequest;

source/common/types/downloadManager.types.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
export type AllowedDownloadDirectories =
1+
export type AllowedDownloadDirectoriesValues =
22
| 'stateDirectory'
33
| 'downloads'
44
| 'desktop';
5+
6+
export type AllowedDownloadDirectoriesKeys =
7+
| 'DOWNLOADS'
8+
| 'DESKTOP'
9+
| 'STATE_DIRECTORY';
10+
11+
export type AllowedDownloadDirectoriesMap = {
12+
[day in AllowedDownloadDirectoriesKeys]: AllowedDownloadDirectoriesValues;
13+
};
14+
515
// https://www.npmjs.com/package/node-downloader-helper
616
export type DownloadRequest = {
717
/**
@@ -12,7 +22,7 @@ export type DownloadRequest = {
1222
*/
1323
id?: string;
1424
fileUrl: string;
15-
destinationDirectoryName?: AllowedDownloadDirectories;
25+
destinationDirectoryName?: AllowedDownloadDirectoriesValues;
1626
options?: DownloadRequestOptions | null | undefined;
1727
resumeDownload?: {
1828
temporaryFilename: string;
@@ -47,7 +57,7 @@ export type DownloadRequestOptions = {
4757
httpsRequestOptions?: Record<string, any>;
4858
// Override the https request options, ex: to add SSL Certs
4959
progressIsThrottled?: boolean;
50-
// by default, the progress is sent every second. if `false` it will be sent every milisecond
60+
// by default, the progress is sent every second. if `false` it will be sent every millisecond
5161
persistLocalData?: boolean; // by default, the localdata information is deleted after the end of the download
5262
};
5363
// https://www.npmjs.com/package/node-downloader-helper
@@ -82,7 +92,7 @@ export type DownloadInfo = {
8292
fileUrl: string;
8393
originalFilename: string;
8494
temporaryFilename: string;
85-
destinationDirectoryName: AllowedDownloadDirectories;
95+
destinationDirectoryName: AllowedDownloadDirectoriesValues;
8696
destinationPath: string;
8797
options: DownloadRequestOptions;
8898
};
@@ -138,7 +148,7 @@ export type DownloadInfoProgress = {
138148
downloaded: number;
139149
// downloaded size in bytes
140150
progress: number;
141-
// progress porcentage 0-100%
151+
// progress percentage 0-100%
142152
speed: number; // download speed in bytes
143153
};
144154
export type DownloadInfoEnd = {
@@ -147,7 +157,7 @@ export type DownloadInfoEnd = {
147157
totalSize: number;
148158
// total file size got from the server
149159
incomplete: boolean;
150-
// true/false if the download endend but still incomplete
160+
// true/false if the download ended but still incomplete
151161
onDiskSize: number;
152162
// total size of file on the disk
153163
downloadedSize: number; // the total size downloaded

source/main/cardano/CardanoNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ export class CardanoNode {
522522
}
523523

524524
/**
525-
* Kills cardano-node and waitsup to `killTimeout` for the node to
525+
* Kills cardano-node and waits up to `killTimeout` for the node to
526526
* report the exit message.
527527
*
528528
* @returns {Promise<void>} resolves if the node could be killed, rejects with error otherwise.

0 commit comments

Comments
 (0)