Skip to content
Permalink
Browse files

Merge branch 'develop' into feature/ddw-684-improve-ntp-handling

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

### Chores

- Improved the "Ada redemption" menu item UX by disabling the option while Daedalus is out of sync ([PR 1458](https://github.com/input-output-hk/daedalus/pull/1458))
- Added `themes:check` script for checking missing definitions on createTheme object ([PR 1424](https://github.com/input-output-hk/daedalus/pull/1424))
- Refactored the Loading screen, adding containers for each overlay ([PR 1446](https://github.com/input-output-hk/daedalus/pull/1446))
- Added button to open local state directory on Daedalus Diagnostics Screen ([PR 1438](https://github.com/input-output-hk/daedalus/pull/1438))
- Updated the list of contributors on the "About" screen ([PR 1450](https://github.com/input-output-hk/daedalus/pull/1450))
@@ -3,6 +3,7 @@ const webpack = require('webpack');
const webpackStream = require('webpack-stream');
const shell = require('gulp-shell');
const electronConnect = require('electron-connect');
const flowRemoveTypes = require('gulp-flow-remove-types');
const mainWebpackConfig = require('./source/main/webpack.config');
const rendererWebpackConfig = require('./source/renderer/webpack.config');

@@ -113,6 +114,30 @@ gulp.task('build:renderer:watch', buildRendererWatch());

gulp.task('build', gulp.series('clean:dist', 'build:main', 'build:renderer'));

gulp.task('prepare:themes:utils', () =>
gulp
.src([
'source/renderer/app/themes/utils/checkCreateTheme.js',
'source/renderer/app/themes/utils/constants.js',
'source/renderer/app/themes/utils/createTheme.js',
'source/renderer/app/themes/utils/createShades.js',
'source/renderer/app/themes/utils/index.js',
])
.pipe(flowRemoveTypes())
.pipe(gulp.dest('dist/utils'))
);

gulp.task('prepare:themes:daedalus', () =>
gulp
.src([
'source/renderer/app/themes/daedalus/cardano.js',
'source/renderer/app/themes/daedalus/dark-blue.js',
'source/renderer/app/themes/daedalus/light-blue.js',
])
.pipe(flowRemoveTypes())
.pipe(gulp.dest('dist/daedalus'))
);

gulp.task(
'build:watch',
gulp.series(
@@ -124,6 +149,11 @@ gulp.task(
)
);

gulp.task(
'build:themes',
gulp.series('clean:dist', 'prepare:themes:utils', 'prepare:themes:daedalus')
);

gulp.task(
'test:e2e:nodemon',
shell.task(
@@ -28,6 +28,7 @@
"manage:translations": "gulp purge:translations && gulp clear:cache && gulp build && node ./translations/translation-runner.js",
"storybook": "start-storybook -p 6006 -c storybook",
"storybook:build": "build-storybook -c storybook -o dist/storybook",
"themes:check": "gulp build:themes && node -r esm ./dist/utils/index.js",
"clear:cache": "gulp clear:cache",
"nix:dev": "nix-shell --arg autoStartBackend true --arg allowFaultInjection true --arg systemStart",
"nix:staging": "nix-shell --arg autoStartBackend true --argstr cluster staging"
@@ -61,6 +62,7 @@
"bufferutil": "4.0.0",
"cache-loader": "2.0.1",
"chai": "4.2.0",
"chalk": "2.4.2",
"concurrently": "4.1.0",
"cross-env": "5.2.0",
"css-loader": "2.0.1",
@@ -85,9 +87,11 @@
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-react": "7.11.1",
"esm": "3.2.25",
"faker": "4.1.0",
"file-loader": "2.0.0",
"flow-bin": "0.98.1",
"gulp-flow-remove-types": "1.0.0",
"gulp-shell": "0.6.5",
"hash.js": "1.1.7",
"html-loader": "0.5.5",
@@ -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セーフモード]"
}
@@ -18,6 +18,7 @@ export const osxMenu = (
actions: MenuActions,
translations: {},
supportRequestData: SupportRequests,
isNodeInSync: boolean,
translation: Function = getTranslation(translations, id)
) => [
{
@@ -31,24 +32,25 @@ export const osxMenu = (
},
{
label: translation('daedalus.adaRedemption'),
enabled: isNodeInSync,
click() {
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',
@@ -71,9 +73,7 @@ export const osxMenu = (
accelerator: 'Shift+Command+Z',
role: 'redo',
},
{
type: 'separator',
},
{ type: 'separator' },
{
label: translation('edit.cut'),
accelerator: 'Command+X',
@@ -120,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) {
@@ -152,12 +159,7 @@ export const osxMenu = (
});
},
},
{
label: translation('helpSupport.downloadLogs'),
click() {
showUiPartChannel.send(NOTIFICATIONS.DOWNLOAD_LOGS, window);
},
},
{ type: 'separator' },
{
label: translation('helpSupport.supportRequest'),
click() {
@@ -176,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();
},
},
]),

0 comments on commit 54bee33

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