Skip to content
Permalink
Browse files

Merge branch 'develop' into feature/ddw-701-improve-daedalus-log-rota…

…tion
  • Loading branch information...
yakovkaravelov committed Jul 11, 2019
2 parents f609645 + ff9816c commit b2d66803ad6d0aabffb413da4adb15fd7a212df2
Showing with 790 additions and 514 deletions.
  1. +2 −0 CHANGELOG.md
  2. +20 −17 source/main/locales/en-US.json
  3. +20 −17 source/main/locales/ja-JP.json
  4. +37 −23 source/main/menus/osx.js
  5. +26 −24 source/main/menus/win-linux.js
  6. +22 −0 source/renderer/app/api/staking/types.js
  7. +1 −4 source/renderer/app/components/staking/delegation-center/DelegationCenter.js
  8. +6 −2 source/renderer/app/components/staking/delegation-center/WalletRow.js
  9. +6 −1 source/renderer/app/components/staking/delegation-setup-wizard/DelegationSetupWizardDialog.js
  10. +11 −10 ...e/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseStakePoolDialog.js
  11. +3 −2 source/renderer/app/components/staking/epochs/StakingEpochs.js
  12. +1 −0 source/renderer/app/components/staking/epochs/StakingEpochs.scss
  13. +6 −5 source/renderer/app/components/staking/epochs/StakingEpochsCurrentEpochData.js
  14. +8 −2 source/renderer/app/components/staking/epochs/StakingEpochsDataTable.js
  15. +6 −5 source/renderer/app/components/staking/epochs/StakingEpochsPreviousEpochData.js
  16. +1 −1 source/renderer/app/components/staking/epochs/helpers.js
  17. +9 −1 source/renderer/app/components/staking/layouts/StakingWithNavigation.js
  18. +4 −1 source/renderer/app/components/staking/navigation/StakingNavigation.js
  19. +7 −10 source/renderer/app/components/staking/rewards/StakingRewards.js
  20. +1 −0 source/renderer/app/components/staking/rewards/StakingRewards.scss
  21. +8 −2 source/renderer/app/components/staking/stake-pools/StakePools.js
  22. +1 −1 source/renderer/app/components/staking/stake-pools/StakePoolsSearch.scss
  23. +0 −5 source/renderer/app/components/status/DaedalusDiagnostics.js
  24. +1 −0 source/renderer/app/components/wallet/ada-redemption/AdaRedemptionDisclaimer.scss
  25. +7 −6 source/renderer/app/components/wallet/ada-redemption/AdaRedemptionSuccessOverlay.scss
  26. +1 −0 source/renderer/app/components/widgets/Dialog.scss
  27. +1 −0 source/renderer/app/config/sidebarConfig.js
  28. +98 −0 source/renderer/app/config/stakingCurrentEpoch.dummy.json
  29. +108 −0 source/renderer/app/config/stakingPreviousEpoch.dummy.json
  30. +104 −0 source/renderer/app/config/stakingRewards.dummy.json
  31. +14 −8 source/renderer/app/containers/staking/DelegationCenterPage.js
  32. +25 −7 source/renderer/app/containers/staking/StakePoolsListPage.js
  33. +22 −0 source/renderer/app/containers/staking/Staking.js
  34. +9 −6 source/renderer/app/containers/staking/StakingEpochsPage.js
  35. +3 −1 source/renderer/app/containers/staking/StakingRewardsPage.js
  36. +23 −9 source/renderer/app/containers/staking/dialogs/DelegationSetupWizardDialogContainer.js
  37. +0 −1 source/renderer/app/i18n/locales/de-DE.json
  38. +118 −132 source/renderer/app/i18n/locales/defaultMessages.json
  39. +1 −2 source/renderer/app/i18n/locales/en-US.json
  40. +0 −1 source/renderer/app/i18n/locales/hr-HR.json
  41. +1 −2 source/renderer/app/i18n/locales/ja-JP.json
  42. +0 −1 source/renderer/app/i18n/locales/ko-KR.json
  43. +0 −1 source/renderer/app/i18n/locales/zh-CN.json
  44. +7 −1 source/renderer/app/stores/StakingStore.js
  45. +3 −3 source/renderer/app/themes/daedalus/cardano.js
  46. +3 −3 source/renderer/app/themes/daedalus/dark-blue.js
  47. +3 −3 source/renderer/app/themes/daedalus/light-blue.js
  48. +6 −0 source/renderer/app/themes/overrides/ButtonOverrides.scss
  49. +1 −1 source/renderer/app/themes/overrides/ModalOverrides.scss
  50. +1 −0 source/renderer/app/themes/overrides/SelectOverrides.scss
  51. +4 −5 source/renderer/app/themes/utils/createTheme.js
  52. +4 −13 storybook/stories/Sidebar.stories.js
  53. +9 −112 storybook/stories/Staking-Epochs.stories.js
  54. +2 −62 storybook/stories/Staking-Rewards.stories.js
  55. +2 −0 storybook/stories/Staking-StakePools.stories.js
  56. +3 −1 storybook/stories/Staking.stories.js
@@ -35,6 +35,8 @@ Changelog

### Fixes

- Fixed Staking screen ([PR 1461](https://github.com/input-output-hk/daedalus/pull/1461))
- Improved small UI and copy elements ([PR 1459](https://github.com/input-output-hk/daedalus/pull/1459))
- Fixed shutting down screen top priority ([PR 1428](https://github.com/input-output-hk/daedalus/pull/1428))
- Fixed screen flashes during Daedalus loading ([PR 1444](https://github.com/input-output-hk/daedalus/pull/1444))
- Removes files pushed without running Prettier ([PR 1445](https://github.com/input-output-hk/daedalus/pull/1445))
@@ -2,35 +2,38 @@
"menu.daedalus": "Daedalus",
"menu.daedalus.about": "About Daedalus",
"menu.daedalus.adaRedemption": "Ada Redemption",
"menu.daedalus.daedalusDiagnostics": "Daedalus Diagnostics",
"menu.daedalus.blockConsolidationStatus": "Block Consolidation Status",
"menu.daedalus.quit": "Quit",
"menu.daedalus.hideDaedalus": "Hide Daedalus",
"menu.daedalus.hideOthers": "Hide Others",
"menu.daedalus.showAll": "Show All",
"menu.daedalus.close": "Close",
"menu.daedalus.quit": "Quit",
"menu.edit": "Edit",
"menu.edit.undo": "Undo",
"menu.edit.redo": "Redo",
"menu.edit.cut": "Cut",
"menu.edit.copy": "Copy",
"menu.edit.cut": "Cut",
"menu.edit.paste": "Paste",
"menu.edit.redo": "Redo",
"menu.edit.selectAll": "Select All",
"menu.helpSupport": "Help and Support",
"menu.helpSupport.gpuSafeMode": "GPU Safe Mode",
"menu.helpSupport.gpuSafeModeDialogTitle": "Turn off 'GPU safe mode'?",
"menu.helpSupport.nonGpuSafeModeDialogTitle": "Turn on 'GPU safe mode'?",
"menu.helpSupport.gpuSafeModeDialogMessage": "Turn off 'GPU safe mode'? \n \nYou are about to disable 'GPU safe mode' which will improve the performance of user interface rendering. \n \nClick on 'Yes' to restart Daedalus with 'GPU safe mode' disabled. \n \n If you see a blank screen instead of Daedalus user interface after Daedalus restarts, please turn 'GPU safe mode' back on.",
"menu.helpSupport.nonGpuSafeModeDialogMessage": "Turn on 'GPU safe mode'? \n \nYou are about to enable 'GPU safe mode' which will reduce the performance of user interface rendering. \n \nYou should enable this only if you are seeing a blank screen instead of Daedalus user interface. If Daedalus is working properly for you, please click the 'No'. Otherwise, click 'Yes' to restart Daedalus with 'GPU safe mode' enabled.",
"menu.edit.undo": "Undo",
"menu.helpSupport": "Help",
"menu.helpSupport.blockConsolidationStatus": "Block Consolidation Status",
"menu.helpSupport.daedalusDiagnostics": "Daedalus Diagnostics",
"menu.helpSupport.downloadLogs": "Download Logs",
"menu.helpSupport.blankScreenFix": "Blank Screen Fix",
"menu.helpSupport.gpuSafeModeDialogCancel": "Cancel",
"menu.helpSupport.gpuSafeModeDialogConfirm": "Yes",
"menu.helpSupport.gpuSafeModeDialogMessage": "Turn off 'Blank screen fix'? \n \nDisabling the blank screen fix setting will improve the performance of user interface rendering by enabling graphics acceleration, however, some users may find that Daedalus runs better with this setting enabled. If you see a blank screen instead of the Daedalus user interface after disabling this setting and restarting Daedalus, please turn this setting back on. \n \nDo you want to disable this setting and restart Daedalus?",
"menu.helpSupport.gpuSafeModeDialogNo": "No",
"menu.helpSupport.gpuSafeModeDialogCancel": "Cancel",
"menu.helpSupport.downloadLogs": "Download Logs",
"menu.helpSupport.supportRequest": "Support Request",
"menu.helpSupport.supportRequestUrl": "https://iohk.zendesk.com/hc/en-us/requests/new/",
"menu.helpSupport.gpuSafeModeDialogTitle": "Turn off 'Blank screen fix'?",
"menu.helpSupport.knownIssues": "Known Issues",
"menu.helpSupport.knownIssuesUrl": "https://daedaluswallet.io/known-issues/",
"menu.helpSupport.nonGpuSafeModeDialogMessage": "Turn on 'Blank screen fix'? \n \nIf the Daedalus user interface is failing to load then enabling this setting may fix the problem. It will reduce the performance of user interface rendering by disabling graphics acceleration, but some users may find that Daedalus runs better with this setting enabled. \n \nEnable this setting only if the Daedalus user interface is failing to load. If Daedalus is working properly, please click ‘No’. Otherwise, click ‘Yes’ to restart Daedalus with the blank screen fix setting enabled. \n \nDo you want to enable this setting and restart Daedalus?",
"menu.helpSupport.nonGpuSafeModeDialogTitle": "Turn on 'Blank screen fix'?",
"menu.helpSupport.supportRequest": "Support Request",
"menu.helpSupport.supportRequestUrl": "https://iohk.zendesk.com/hc/en-us/requests/new/",
"menu.view": "View",
"menu.view.reload": "Reload",
"menu.view.toggleDeveloperTools": "Toggle Developer Tools",
"menu.view.toggleFullScreen": "Toggle Full Screen",
"menu.view.toggleMaximumWindowSize": "Toggle Maximum Window Size",
"menu.view.toggleDeveloperTools": "Toggle Developer Tools",
"window.title.gpuSafeMode": "[GPU Safe Mode]"
}
@@ -2,35 +2,38 @@
"menu.daedalus": "Daedalus",
"menu.daedalus.about": "このDaedalusについて",
"menu.daedalus.adaRedemption": "Adaの還元",
"menu.daedalus.daedalusDiagnostics": "Daedalus診断",
"menu.daedalus.blockConsolidationStatus": "ブロック統合状況",
"menu.daedalus.quit": "終了",
"menu.daedalus.hideDaedalus": "Daedalusを非表示",
"menu.daedalus.hideOthers": "他を非表示",
"menu.daedalus.showAll": "すべてを表示",
"menu.daedalus.close": "閉じる",
"menu.daedalus.quit": "終了",
"menu.edit": "編集",
"menu.edit.undo": "元に戻す",
"menu.edit.redo": "やり直し",
"menu.edit.cut": "カット",
"menu.edit.copy": "コピー",
"menu.edit.cut": "カット",
"menu.edit.paste": "ペースト",
"menu.edit.redo": "やり直し",
"menu.edit.selectAll": "すべて選択",
"menu.helpSupport": "ヘルプとサポート",
"menu.helpSupport.gpuSafeMode": "GPUセーフモード",
"menu.helpSupport.gpuSafeModeDialogTitle": "「GPUセーフモード」を解除しますか?",
"menu.helpSupport.nonGpuSafeModeDialogTitle": "「GPUセーフモード」を設定しますか?",
"menu.helpSupport.gpuSafeModeDialogMessage": "「GPUセーフモード」を解除しますか? \n \n「GPUセーフモード」を解除します。ユーザーインターフェイスのレンダリングパフォーマンスが向上します。 \n \n「はい」をクリックしてDaedalusを再起動し、「GPUセーフモード」を解除してください。\n \n Daedalusを再起動した際にDaedalusユーザーインターフェイスの代わりにブランクスクリーンが表示される場合は、「GPUセーフモード」に戻してください。",
"menu.helpSupport.nonGpuSafeModeDialogMessage": "「GPUセーフモード」を設定しますか? \n \n「GPUセーフモード」を設定します。ユーザーインターフェイスのレンダリングパフォーマンスが低下します。 \n \nDaedalusユーザーインターフェイスの代わりにブランクスクリーンが表示される場合にのみ設定してください。Daedalusが通常通りに動作している場合は、「いいえ」をクリックしてください。その他の場合は「はい」をクリックしてDaedalusを再起動し、「GPUセーフモード」を設定してください。",
"menu.edit.undo": "元に戻す",
"menu.helpSupport": "ヘルプ",
"menu.helpSupport.blockConsolidationStatus": "ブロック統合状況",
"menu.helpSupport.daedalusDiagnostics": "Daedalus診断",
"menu.helpSupport.downloadLogs": "ログのダウンロード",
"menu.helpSupport.blankScreenFix": "ブランク画面修正",
"menu.helpSupport.gpuSafeModeDialogCancel": "キャンセル",
"menu.helpSupport.gpuSafeModeDialogConfirm": "はい",
"menu.helpSupport.gpuSafeModeDialogMessage": "「ブランク画面修正」を無効にしますか? \n \nブランク画面修正設定を無効にすると、グラフィックアクセラレーションが有効化されてユーザーインターフェイスのレンダリングパフォーマンスが向上しますが、この設定を有効にした方がDaedalusがスムーズに作動する場合があります。この設定を無効にしてDaedalusを再起動した際にDaedalusユーザーインターフェイスの代わりにブランク画面が表示される場合は、この設定をもう一度有効にしてください。 \n \nこの設定を無効にしてDaedalusを再起動しますか。",
"menu.helpSupport.gpuSafeModeDialogNo": "いいえ",
"menu.helpSupport.gpuSafeModeDialogCancel": "キャンセル",
"menu.helpSupport.downloadLogs": "ログのダウンロード",
"menu.helpSupport.supportRequest": "サポートリクエスト",
"menu.helpSupport.supportRequestUrl": "https://iohk.zendesk.com/hc/ja/requests/new/",
"menu.helpSupport.gpuSafeModeDialogTitle": "「ブランク画面修正」を無効にしますか?",
"menu.helpSupport.knownIssues": "既知の問題",
"menu.helpSupport.knownIssuesUrl": "https://daedaluswallet.io/ja/known-issues/",
"menu.helpSupport.nonGpuSafeModeDialogMessage": "「ブランク画面修正」を有効にしますか? \n \nDaedalusユーザーインターフェイスがロードに失敗した際、この設定を有効にすることにより問題が解消される場合があります。この場合、グラフィックアクセラレーションが無効化されることでユーザーインターフェイスのレンダリングパフォーマンスが低下しますが、この設定を有効にした方がDaedalusがスムーズに作動する場合があります。 \n \nこの設定はDaedalusユーザーインターフェイスがロードに失敗した場合にのみ有効にしてください。Daedalusが正常に作動している場合は[いいえ]をクリックします。正常に作動していない場合には[はい]をクリックし、ブランク画面修正設定を有効にしてDaedalusを再起動してください。 \n \nこの設定を有効にしてDaedalusを再起動しますか。",
"menu.helpSupport.nonGpuSafeModeDialogTitle": "「ブランク画面修正」を有効にしますか?",
"menu.helpSupport.supportRequest": "サポートリクエスト",
"menu.helpSupport.supportRequestUrl": "https://iohk.zendesk.com/hc/ja/requests/new/",
"menu.view": "見る",
"menu.view.reload": "リロード",
"menu.view.toggleDeveloperTools": "「開発者ツールの切り替え」",
"menu.view.toggleFullScreen": "フルスクリーン切り替え",
"menu.view.toggleMaximumWindowSize": "最大ウインドウサイズ切り切り替え",
"menu.view.toggleDeveloperTools": "「開発者ツールの切り替え」",
"window.title.gpuSafeMode": "[GPUセーフモード]"
}
@@ -37,20 +37,20 @@ export const osxMenu = (
actions.openAdaRedemptionScreen();
},
},
{ type: 'separator' },
{
label: translation('daedalus.blockConsolidationStatus'),
accelerator: 'Command+B',
click() {
actions.openBlockConsolidationStatusDialog();
},
label: translation('daedalus.hideDaedalus'),
role: 'hide',
},
{
label: translation('daedalus.daedalusDiagnostics'),
accelerator: 'Command+D',
click() {
actions.openDaedalusDiagnosticsDialog();
},
label: translation('daedalus.hideOthers'),
role: 'hideothers',
},
{
label: translation('daedalus.showAll'),
role: 'unhide',
},
{ type: 'separator' },
{
label: translation('daedalus.quit'),
accelerator: 'Command+Q',
@@ -73,9 +73,7 @@ export const osxMenu = (
accelerator: 'Shift+Command+Z',
role: 'redo',
},
{
type: 'separator',
},
{ type: 'separator' },
{
label: translation('edit.cut'),
accelerator: 'Command+X',
@@ -122,7 +120,14 @@ export const osxMenu = (
label: translation('helpSupport'),
submenu: compact([
{
label: translation('helpSupport.gpuSafeMode'),
label: translation('helpSupport.knownIssues'),
click() {
const faqLink = translation('helpSupport.knownIssuesUrl');
shell.openExternal(faqLink);
},
},
{
label: translation('helpSupport.blankScreenFix'),
type: 'checkbox',
checked: isInSafeMode,
click(item) {
@@ -154,12 +159,7 @@ export const osxMenu = (
});
},
},
{
label: translation('helpSupport.downloadLogs'),
click() {
showUiPartChannel.send(NOTIFICATIONS.DOWNLOAD_LOGS, window);
},
},
{ type: 'separator' },
{
label: translation('helpSupport.supportRequest'),
click() {
@@ -178,10 +178,24 @@ export const osxMenu = (
},
},
{
label: translation('helpSupport.knownIssues'),
label: translation('helpSupport.downloadLogs'),
click() {
const faqLink = translation('helpSupport.knownIssuesUrl');
shell.openExternal(faqLink);
showUiPartChannel.send(NOTIFICATIONS.DOWNLOAD_LOGS, window);
},
},
{ type: 'separator' },
{
label: translation('helpSupport.blockConsolidationStatus'),
accelerator: 'Command+B',
click() {
actions.openBlockConsolidationStatusDialog();
},
},
{
label: translation('helpSupport.daedalusDiagnostics'),
accelerator: 'Command+D',
click() {
actions.openDaedalusDiagnosticsDialog();
},
},
]),
@@ -37,20 +37,6 @@ export const winLinuxMenu = (
actions.openAdaRedemptionScreen();
},
},
{
label: translation('daedalus.blockConsolidationStatus'),
accelerator: 'Ctrl+B',
click() {
actions.openBlockConsolidationStatusDialog();
},
},
{
label: translation('daedalus.daedalusDiagnostics'),
accelerator: 'Ctrl+D',
click() {
actions.openDaedalusDiagnosticsDialog();
},
},
{
label: translation('daedalus.close'),
accelerator: 'Ctrl+W',
@@ -140,7 +126,14 @@ export const winLinuxMenu = (
label: translation('helpSupport'),
submenu: compact([
{
label: translation('helpSupport.gpuSafeMode'),
label: translation('helpSupport.knownIssues'),
click() {
const faqLink = translation('helpSupport.knownIssuesUrl');
shell.openExternal(faqLink);
},
},
{
label: translation('helpSupport.blankScreenFix'),
type: 'checkbox',
checked: isInSafeMode,
click(item) {
@@ -173,12 +166,7 @@ export const winLinuxMenu = (
});
},
},
{
label: translation('helpSupport.downloadLogs'),
click() {
showUiPartChannel.send(NOTIFICATIONS.DOWNLOAD_LOGS, window);
},
},
{ type: 'separator' },
{
label: translation('helpSupport.supportRequest'),
click() {
@@ -197,10 +185,24 @@ export const winLinuxMenu = (
},
},
{
label: translation('helpSupport.knownIssues'),
label: translation('helpSupport.downloadLogs'),
click() {
const faqLink = translation('helpSupport.knownIssuesUrl');
shell.openExternal(faqLink);
showUiPartChannel.send(NOTIFICATIONS.DOWNLOAD_LOGS, window);
},
},
{ type: 'separator' },
{
label: translation('helpSupport.blockConsolidationStatus'),
accelerator: 'Ctrl+B',
click() {
actions.openBlockConsolidationStatusDialog();
},
},
{
label: translation('helpSupport.daedalusDiagnostics'),
accelerator: 'Ctrl+D',
click() {
actions.openDaedalusDiagnosticsDialog();
},
},
]),
@@ -12,3 +12,25 @@ export type StakePool = {
retiring?: Date,
url: string,
};

export type Reward = {
date: string,
wallet: string,
amount: number,
pool: StakePool,
};

export type EpochData = {
pool: StakePool,
slotsElected: Array<number>,
performance?: Array<number>,
sharedRewards?: Array<number>,
};

export type Epoch = {
id: number,
name: string,
progress?: number,
endsAt?: string,
data: Array<EpochData>,
};
@@ -1,6 +1,5 @@
// @flow
import React, { Component, Fragment } from 'react';
import type { Node } from 'react';
import { observer } from 'mobx-react';
import BigNumber from 'bignumber.js';
import DelegationCenterHeader from './DelegationCenterHeader';
@@ -11,20 +10,18 @@ type Props = {
adaValue: BigNumber,
percentage: number,
wallets: Array<Wallet>,
children?: Node,
onDelegate: Function,
};

@observer
export default class DelegationCenter extends Component<Props> {
render() {
const { adaValue, percentage, wallets, children, onDelegate } = this.props;
const { adaValue, percentage, wallets, onDelegate } = this.props;

return (
<Fragment>
<DelegationCenterHeader adaValue={adaValue} percentage={percentage} />
<DelegationCenterBody wallets={wallets} onDelegate={onDelegate} />
{children}
</Fragment>
);
}
@@ -89,6 +89,11 @@ export default class WalletRow extends Component<Props> {
intl: intlShape.isRequired,
};

onDelegate = () => {
const { wallet } = this.props;
this.props.onDelegate(wallet.id);
};

render() {
const { intl } = this.context;
const {
@@ -100,7 +105,6 @@ export default class WalletRow extends Component<Props> {
delegatedStakePool,
},
index,
onDelegate,
} = this.props;

const inactiveStakePercentageValue = inactiveStakePercentage || 0;
@@ -184,7 +188,7 @@ export default class WalletRow extends Component<Props> {
<span
className={styles.actionLink}
role="presentation"
onClick={onDelegate}
onClick={this.onDelegate}
>
{delegate}
</span>

0 comments on commit b2d6680

Please sign in to comment.
You can’t perform that action at this time.