[DDW-983] Implement transfer funds wizard for Incentivized Testnet (#1659)

  • [DDW-983] INIT

  • [DDW-983] CHANGELOG

  • [DDW-983] Step 1 and WalletDropdown component

  • [DDW-983] Storybook stories

  • [DDW-983] Remove legacy wallets from the computed ‘wallets.all’

  • [DDW-983] Fix legacy wallets API errors

  • [DDW-983] Wiring action to Legacy Wallet button

  • [DDW-983] API integration

  • [DDW-983] Step 2 styling

  • [DDW-983] Update cardano-wallet and add legacy funds

  • [DDW-983] Step 2 styling and generate legacy wallet with funds

  • [DDW-983] Step 2 UI progress

  • [DDW-983] Stories improvement

  • QA testnet: update genesis hash

  • [DDW-983] Spending password

  • [DDW-983] Flow error

  • [DDW-983] Japanese translation

  • [DDW-983] Logic improvements and transferFunds V2 API method

  • [DDW-983] Code cleanup and removing unnecessary logs

  • [DDW-983] Sets target wallet to first wallet

  • [DDW-983] Adjustments

  • [DDW-983] Missing file

  • [DDW-983] Fix legacy wallet transaction history loading

  • [DDW-983] Hide notification for zero amount legacy wallet

  • [DDW-983] Fix missing name on wallet importer

  • [DDW-983] Add wallet button in case no new wallets

  • [DDW-983] Adjustments

  • [DDW-983] Code improvements, notification button active color, dialog To addresses removed, Dialog close blocked on transfer executing, redirect to summary after executing, Amounts freez on executing and calculation fix

  • [DDW-983] Blank Screen FIX

  • [DDW-983] Remove unnecessary log

  • [DDW-983] Fix TransferFunds / Add wallet checker

  • [DDW-983] Improve Legacy Notification checker

  • [DDW-983] Fix wallet amount handling

  • [DDW-983] Improve delegation wizard

  • [DDW-983] Flow type improvements

  • [DDW-983] Legacy Notification learn more link

  • [DDW-983] Updates CHANGELOG

  • [DDW-983] Run translations manager

View on GitHub
File Changes
m
+1/-1

                      
### Features

                      
-
- Implemented "Transfer funds" wizard for Incentivized Testnet version of Daedalus ([PR 1634](https://github.com/input-output-hk/daedalus/pull/1634))
+
- Implemented "Transfer funds" wizard for Incentivized Testnet version of Daedalus ([PR 1634](https://github.com/input-output-hk/daedalus/pull/1634), [PR 1659](https://github.com/input-output-hk/daedalus/pull/1659))
- Implemented "Network info" overlay ([PR 1655](https://github.com/input-output-hk/daedalus/pull/1655))
- Disable "Manual update" notification for Incentivized Testnet version of Daedalus ([PR 1652](https://github.com/input-output-hk/daedalus/pull/1652))
- Update rewards screen for incentivized testnet ([PR 1643](https://github.com/input-output-hk/daedalus/pull/1643))
  onTransferFunds?: Function,
  onWalletAdd?: Function,
  hasAnyWallets?: boolean,
+
  onLearnMore?: Function,
};

                      
@observer
      hasAnyWallets,
      onTransferFunds,
      onWalletAdd,
+
      onLearnMore,
    } = this.props;

                      
    const topBarStyles = classNames([
        </div>
        {hasLegacyNotification && (
          <LegacyNotification
-
            onLearnMore={() => null}
+
            onLearnMore={onLearnMore}
            onTransferFunds={onTransferFundsFn}
            hasAnyWallets={hasAnyWallets}
            onWalletAdd={onWalletAdd}
    defaultMessage: '!!!Move all of the ada from this wallet',
    description: 'Add wallet action of legacy notification.',
  },
+
  learnMoreLinkUrl: {
+
    id: 'wallet.legacy.notification.learnMore.url',
+
    defaultMessage: '!!!https://iohk.zendesk.com/hc/en-us',
+
    description: '"Learn more" link URL',
+
  },
});

                      
type Props = {
    intl: intlShape.isRequired,
  };

                      
+
  onLearnMore = () => {
+
    const { intl } = this.context;
+
    const learnMoreLinkUrl = intl.formatMessage(messages.learnMoreLinkUrl);
+
    this.props.onLearnMore(learnMoreLinkUrl);
+
  };
+

                      
  render() {
    const { intl } = this.context;
-
    const {
-
      onLearnMore,
-
      onTransferFunds,
-
      hasAnyWallets,
-
      onWalletAdd,
-
    } = this.props;
+
    const { onTransferFunds, hasAnyWallets, onWalletAdd } = this.props;
    const title = intl.formatMessage(messages.title);
    const description = intl.formatMessage(messages.description);
    const actionLearnMore = intl.formatMessage(messages.actionLearnMore);
          <Button
            className={styles.actionLearnMore}
            label={actionLearnMore}
-
            onClick={onLearnMore}
+
            onClick={this.onLearnMore}
            skin={ButtonSkin}
          />
          {
    const {
      currentRoute,
      environment: { isMainnet, network },
+
      openExternalLink,
    } = app;
    const hasAnyWallets = allWallets.length > allLegacyWallets.length;
    const walletRoutesMatch = matchRoute(
        onTransferFunds={onTransferFunds}
        hasAnyWallets={hasAnyWallets}
        onWalletAdd={onWalletAdd}
+
        onLearnMore={openExternalLink}
      >
        {testnetLabel}
        <NodeSyncStatusIcon networkStatus={networkStatus} />
  "wallet.legacy.notification.actionMove": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.addWallet": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.description": "!!!This is a legacy wallet which uses legacy addresses and does not support new features. Please move all of the ada from this legacy wallet to one of the wallets where new features are available. You can also create a brand new wallet for your ada in case you don’t want to move ada to one of your existing wallets. A sequence of screens will guide you through the process.",
+
  "wallet.legacy.notification.learnMore.url": "!!!https://iohk.zendesk.com/hc/en-us",
  "wallet.legacy.notification.title": "!!!Move funds from the legacy wallet",
  "wallet.navigation.more": "!!!More",
  "wallet.navigation.receive": "!!!anfordern",
          "column": 13,
          "line": 32
        }
+
      },
+
      {
+
        "defaultMessage": "!!!https://iohk.zendesk.com/hc/en-us",
+
        "description": "\"Learn more\" link URL",
+
        "end": {
+
          "column": 3,
+
          "line": 41
+
        },
+
        "file": "source/renderer/app/components/notifications/LegacyNotification.js",
+
        "id": "wallet.legacy.notification.learnMore.url",
+
        "start": {
+
          "column": 20,
+
          "line": 37
+
        }
      }
    ],
    "path": "source/renderer/app/components/notifications/LegacyNotification.json"
  "wallet.legacy.notification.actionMove": "Move all of the ada from this wallet",
  "wallet.legacy.notification.addWallet": "Add wallet",
  "wallet.legacy.notification.description": "This is a legacy wallet which uses legacy addresses and does not support new features. Please move all of the ada from this legacy wallet to one of the wallets where new features are available. You can also create a brand new wallet for your ada in case you don’t want to move ada to one of your existing wallets. A sequence of screens will guide you through the process.",
+
  "wallet.legacy.notification.learnMore.url": "https://iohk.zendesk.com/hc/en-us",
  "wallet.legacy.notification.title": "Move funds from the legacy wallet",
  "wallet.navigation.more": "More",
  "wallet.navigation.receive": "Receive",
  "wallet.legacy.notification.actionMove": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.addWallet": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.description": "!!!This is a legacy wallet which uses legacy addresses and does not support new features. Please move all of the ada from this legacy wallet to one of the wallets where new features are available. You can also create a brand new wallet for your ada in case you don’t want to move ada to one of your existing wallets. A sequence of screens will guide you through the process.",
+
  "wallet.legacy.notification.learnMore.url": "!!!https://iohk.zendesk.com/hc/en-us",
  "wallet.legacy.notification.title": "!!!Move funds from the legacy wallet",
  "wallet.navigation.more": "!!!More",
  "wallet.navigation.receive": "!!!primi",
  "wallet.legacy.notification.actionMove": "すべてのADAをこのウォレットから移す",
  "wallet.legacy.notification.addWallet": "ウォレットを追加",
  "wallet.legacy.notification.description": "これは旧アドレスを使用している旧タイプのウォレットであり、新機能をサポートしていません。 このウォレットに含まれるすべてのADAを、新機能の使用が可能な新タイプのウォレットに移してください。既存のウォレットへ移動させたくない場合は、新規にウォレットを作成することもできます。画面の指示に従って手続きをしてください。",
+
  "wallet.legacy.notification.learnMore.url": "https://iohk.zendesk.com/hc/ja",
  "wallet.legacy.notification.title": "旧ウォレットから資金を移してください",
  "wallet.navigation.more": "その他",
  "wallet.navigation.receive": "入金",
  "wallet.legacy.notification.actionMove": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.addWallet": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.description": "!!!This is a legacy wallet which uses legacy addresses and does not support new features. Please move all of the ada from this legacy wallet to one of the wallets where new features are available. You can also create a brand new wallet for your ada in case you don’t want to move ada to one of your existing wallets. A sequence of screens will guide you through the process.",
+
  "wallet.legacy.notification.learnMore.url": "!!!https://iohk.zendesk.com/hc/en-us",
  "wallet.legacy.notification.title": "!!!Move funds from the legacy wallet",
  "wallet.navigation.more": "!!!More",
  "wallet.navigation.receive": "!!!Receive",
  "wallet.legacy.notification.actionMove": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.addWallet": "!!!Move all of the ada from this wallet",
  "wallet.legacy.notification.description": "!!!This is a legacy wallet which uses legacy addresses and does not support new features. Please move all of the ada from this legacy wallet to one of the wallets where new features are available. You can also create a brand new wallet for your ada in case you don’t want to move ada to one of your existing wallets. A sequence of screens will guide you through the process.",
+
  "wallet.legacy.notification.learnMore.url": "!!!https://iohk.zendesk.com/hc/en-us",
  "wallet.legacy.notification.title": "!!!Move funds from the legacy wallet",
  "wallet.navigation.more": "!!!More",
  "wallet.navigation.receive": "!!!Receive",