Skip to content

Commit 0579cc4

Browse files
committed
Merge branch 'develop' into fix/ddw-722-win-test
2 parents 64673ec + 7a97d26 commit 0579cc4

Some content is hidden

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

52 files changed

+610
-580
lines changed

CHANGELOG.md

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

55
### Features
66

7+
- Implemented hover tooltips for menu ([PR 2938](https://github.com/input-output-hk/daedalus/pull/2938))
78
- Improved UI regarding the Hardware Wallet public key export error ([PR 2922](https://github.com/input-output-hk/daedalus/pull/2922))
89
- Added ASCII name to token header when metadata name is missing ([PR 2904](https://github.com/input-output-hk/daedalus/pull/2904))
910
- Improved IPC by reducing the amount of messages from periodic events ([PR 2892](https://github.com/input-output-hk/daedalus/pull/2892))
@@ -12,8 +13,13 @@
1213

1314
### Fixes
1415

16+
- Fixes hardware wallet issues on Windows ([PR 2900](https://github.com/input-output-hk/daedalus/pull/2900))
17+
- Fixed stake pool list styling ([PR 2920](https://github.com/input-output-hk/daedalus/pull/2920))
18+
- Fixed PopOver overlap ([PR 2954](https://github.com/input-output-hk/daedalus/pull/2954))
19+
- Fixed tooltip being hidden in several places ([PR-2934](https://github.com/input-output-hk/daedalus/pull/2934))
20+
- Adjusted padding for search field in stake pools ([PR 2945](https://github.com/input-output-hk/daedalus/pull/2945))
21+
- Fixed margin for dialogs content and token table header ([PR 2944](https://github.com/input-output-hk/daedalus/pull/2944))
1522
- Fixed performance issue on stake pool list view ([PR 2924](https://github.com/input-output-hk/daedalus/pull/2924))
16-
- Fixed catalyst fund name ([PR 2946](https://github.com/input-output-hk/daedalus/pull/2946))
1723
- Fixed position of popup on syncing screen ([PR 2921](https://github.com/input-output-hk/daedalus/pull/2921))
1824
- Fixed issue with missing character when copying address from PDF ([PR 2925](https://github.com/input-output-hk/daedalus/pull/2925))
1925
- Fixed stake pool list view overlapping news feed ([PR 2917](https://github.com/input-output-hk/daedalus/pull/2917))
@@ -25,13 +31,23 @@
2531

2632
### Chores
2733

28-
- Introduced new version of the `@cardano-foundation/ledgerjs-hw-app-cardano` package ([PR 2930](https://github.com/input-output-hk/daedalus/pull/2930))
34+
- Added `storybook:build` check to pre-push hook ([PR 2955](https://github.com/input-output-hk/daedalus/pull/2955))
2935
- Using new faker.js ([PR 2855](https://github.com/input-output-hk/daedalus/pull/2855))
30-
- Removed `dockutil` due compatibility issues with MacOs Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929))
3136
- Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915))
3237
- Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870))
3338
- Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893))
3439

40+
## 4.9.1
41+
42+
### Fixes
43+
44+
- Fixed catalyst fund name ([PR 2946](https://github.com/input-output-hk/daedalus/pull/2946))
45+
- Fixed macOS installer on Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929))
46+
47+
### Chores
48+
49+
- Introduced new version of the `@cardano-foundation/ledgerjs-hw-app-cardano` package ([PR 2930](https://github.com/input-output-hk/daedalus/pull/2930))
50+
3551
## 4.9.0
3652

3753
### Features

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,12 @@ Most of the commands need `nix` and will run only on Linux or macOS.
160160
- Windows 10/11
161161
- Daedalus testnet installation (similar version used in branch) in `C:\Program Files\Daedalus Testnet`
162162
- NodeJS 16
163-
- Python2 *
164-
- `yarn global add windows-build-tools` * (if this does not work extract daedalus\nix\windows-usb-libs.zip under daedalus\build folder)
165-
- Microsoft Build Tools 2015 *
166-
- Microsoft Visual Studio 2017 (Include Desktop development with C++) *
163+
- Python2
164+
- `yarn global add windows-build-tools` (if this does not work extract daedalus\nix\windows-usb-libs.zip under daedalus\build folder)
165+
- Microsoft Build Tools 2015
166+
- Microsoft Visual Studio 2017 (Include Desktop development with C++)
167167
- `yarn config set msvsversion 2015 --global`
168168

169-
*needed for compiling [email protected] on Windows
170-
171169
#### Steps
172170
- `yarn install`
173171
- `yarn dev:windows`

installers/common/MacInstaller.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/bin/darwin-x64-"*
154154
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/build/Release/addon.node"
155155
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/prebuilds/darwin-x64/node.napi.node"
156156
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/blake-hash/prebuilds/darwin-x64/node.napi.node"
157+
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/blake2/build/Release/binding.node"
157158
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/tiny-secp256k1/build/Release/secp256k1.node"
158159

159160
# Sign the whole component deeply

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "4.9.0",
4+
"version": "4.9.1",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
88
"build": "gulp build",
99
"build:electron": "electron-rebuild -w usb --useCache -s --debug",
10-
"check:all": "yarn prettier:check && yarn lint && yarn compile && yarn stylelint && yarn lockfile:check && yarn manage:translations",
10+
"check:all": "yarn prettier:check && yarn lint && yarn compile && yarn stylelint && yarn lockfile:check && yarn manage:translations && yarn storybook:build",
1111
"start": "gulp start",
1212
"start:dev": "NODE_ENV=development gulp start",
1313
"dev": "IS_WATCH_MODE=true gulp dev",
@@ -141,7 +141,7 @@
141141
"eslint-plugin-react": "7.21.2",
142142
"eslint-plugin-react-hooks": "4.1.2",
143143
"esm": "3.2.25",
144-
"fast-sass-loader": "1.5.0",
144+
"fast-sass-loader": "2.0.1",
145145
"file-loader": "4.2.0",
146146
"gulp-shell": "0.8.0",
147147
"hash.js": "1.1.7",
@@ -158,7 +158,6 @@
158158
"mobx-react-devtools": "6.1.1",
159159
"node-forge": "1.0.0",
160160
"node-libs-browser": "2.2.1",
161-
"node-sass": "4.14.1",
162161
"nodemon": "2.0.4",
163162
"npmlog": "4.1.2",
164163
"postcss": "8.2.13",
@@ -171,7 +170,8 @@
171170
"react-intl-translations-manager": "5.0.3",
172171
"react-syntax-highlighter": "13.5.3",
173172
"regenerator-runtime": "0.13.7",
174-
"sass-loader": "7.1.0",
173+
"sass": "1.32.13",
174+
"sass-loader": "10.1.1",
175175
"seedrandom": "3.0.5",
176176
"sinon": "9.2.2",
177177
"spawn-sync": "2.0.0",
@@ -261,7 +261,7 @@
261261
"react-intl": "2.7.2",
262262
"react-lottie": "1.2.3",
263263
"react-markdown": "4.3.1",
264-
"react-polymorph": "1.0.3",
264+
"react-polymorph": "1.0.4",
265265
"react-router": "5.2.0",
266266
"react-router-dom": "5.2.0",
267267
"react-svg-inline": "2.1.1",

source/renderer/app/components/news/NewsFeed.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
top: 0;
1414
transition: margin-right 400ms ease;
1515
width: 460px;
16-
z-index: $dialog-z-index;
16+
z-index: $news-feed-z-index;
1717

1818
&.noTransition {
1919
transition: none;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { defineMessages } from 'react-intl';
2+
3+
export const messages = defineMessages({
4+
wallets: {
5+
id: 'sidebar.categoryTooltip.wallets',
6+
defaultMessage: '!!!Wallets',
7+
description: 'Text for the tooltip of wallets category',
8+
},
9+
staking: {
10+
id: 'sidebar.categoryTooltip.staking',
11+
defaultMessage: '!!!Staking',
12+
description: 'Text for the tooltip of staking category',
13+
},
14+
settings: {
15+
id: 'sidebar.categoryTooltip.settings',
16+
defaultMessage: '!!!Settings',
17+
description: 'Text for the tooltip of settings category',
18+
},
19+
voting: {
20+
id: 'sidebar.categoryTooltip.voting',
21+
defaultMessage: '!!!Voting',
22+
description: 'Text for the tooltip of voting category',
23+
},
24+
});
Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,53 @@
1-
import React, { Component } from 'react';
2-
// @ts-ignore ts-migrate(2305) FIXME: Module '"react"' has no exported member 'Node'.
3-
import type { Node } from 'react';
1+
import React from 'react';
42
import SVGInline from 'react-svg-inline';
53
import { observer } from 'mobx-react';
64
import classNames from 'classnames';
75
import { camelCase } from 'lodash';
6+
import { PopOver } from 'react-polymorph/lib/components/PopOver';
7+
import { injectIntl } from 'react-intl';
88
import type { SidebarCategoryInfo } from '../../config/sidebarConfig';
99
import styles from './SidebarCategory.scss';
10+
import { messages } from './SidebarCategory.messages';
11+
import type { Intl } from '../../types/i18nTypes';
12+
import { TOOLTIP_DELAY } from '../../config/timingConfig';
1013

1114
type Props = {
1215
category: SidebarCategoryInfo;
16+
intl: Intl;
1317
isActive: boolean;
1418
onClick: (...args: Array<any>) => any;
15-
content?: Node;
19+
content?: React.ReactNode;
1620
};
1721

18-
@observer
19-
class SidebarCategory extends Component<Props> {
20-
render() {
21-
const { category, isActive, onClick, content } = this.props;
22-
const { name, icon, route } = category;
23-
const className = camelCase(name);
24-
const componentStyles = classNames(
25-
styles.component,
26-
className,
27-
styles[className],
28-
{
29-
[styles.active]: isActive,
30-
}
31-
);
32-
const iconClassName = classNames(styles.icon, styles[`${className}Icon`]);
33-
return (
22+
function SidebarCategory({
23+
category,
24+
intl,
25+
isActive,
26+
onClick,
27+
content,
28+
}: Props) {
29+
const { name, icon, route, tooltipTextId } = category;
30+
const className = camelCase(name);
31+
const componentStyles = classNames(
32+
styles.component,
33+
className,
34+
styles[className],
35+
isActive && styles.active
36+
);
37+
const iconClassName = classNames(styles.icon, styles[`${className}Icon`]);
38+
return (
39+
<PopOver
40+
delay={TOOLTIP_DELAY}
41+
offset={[0, -20]}
42+
content={tooltipTextId && intl.formatMessage(messages[tooltipTextId])}
43+
placement="bottom"
44+
>
3445
<button className={componentStyles} onClick={() => onClick(route)}>
3546
<SVGInline svg={icon} className={iconClassName} />
3647
{content}
3748
</button>
38-
);
39-
}
49+
</PopOver>
50+
);
4051
}
4152

42-
export default SidebarCategory;
53+
export default injectIntl(observer(SidebarCategory));

source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseWalletDialog.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
.SimpleBubble_bubble {
2727
border-radius: 2px !important;
2828
}
29+
30+
.Dialog_contentWrapper::-webkit-scrollbar-track {
31+
margin-top: -8px;
32+
}
2933
}
3034

3135
.content {

source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsConfirmationDialog.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,9 @@
8888
}
8989
}
9090
}
91+
92+
.Dialog_contentWrapper::-webkit-scrollbar-track {
93+
margin-top: -8px;
94+
}
9195
}
9296
}

source/renderer/app/components/staking/stake-pools/StakePoolsSearch.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
input {
4242
border-radius: 4px;
4343
height: 50px;
44-
padding: 0 68px 0 55px;
44+
padding: 0 68px 0 45px;
4545
}
4646

4747
&.inputExtrasSearch {
@@ -61,7 +61,7 @@
6161
height: 48px;
6262
line-height: 48px;
6363
position: absolute;
64-
right: 20px;
64+
right: 11px;
6565
}
6666

6767
.clearSearchButton {

0 commit comments

Comments
 (0)