From adefd877b87d1cb0fd59f6ec026d408f40e1ef3e Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 7 Jun 2019 13:46:31 +0200 Subject: [PATCH] feat(ux): suggest ipfs-desktop when no node is found (#726) * feat(ux): mention ipfs-desktop when no node is found * style: tweaked copy on welcome screen * style: simplify cli instructions @ welcome screen --- add-on/_locales/en/messages.json | 20 ++++++++++++-------- add-on/src/landing-pages/welcome/page.js | 11 ++++++----- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/add-on/_locales/en/messages.json b/add-on/_locales/en/messages.json index 42f5e44a5..2b94fb383 100644 --- a/add-on/_locales/en/messages.json +++ b/add-on/_locales/en/messages.json @@ -543,17 +543,21 @@ "message": "Discover what you <0>can do with Companion and dive into the distributed web with IPFS!", "description": "Ready message copy (page_landingWelcome_welcome_discover)" }, - "page_landingWelcome_installSteps_title": { - "message": "Is your IPFS daemon running?", + "page_landingWelcome_installSteps_notRunning_title": { + "message": "IPFS does not seem to be running", "description": "Install steps title (page_landingWelcome_installSteps_title)" }, - "page_landingWelcome_installSteps_install": { - "message": "If you haven't installed IPFS please do so <0>with these instructions.", - "description": "Install steps copy (page_landingWelcome_installSteps_install)" + "page_landingWelcome_installSteps_desktop_install": { + "message": "Get <0>IPFS Desktop and you will be all set!", + "description": "Install steps copy (page_landingWelcome_installSteps_install_desktop)" + }, + "page_landingWelcome_installSteps_cli_title": { + "message": "Prefer to use the command line?", + "description": "Install steps title (page_landingWelcome_installSteps_title_desktop)" }, - "page_landingWelcome_installSteps_run": { - "message": "Then make sure to have an IPFS daemon running in your terminal:", - "description": "Install steps run message (page_landingWelcome_installSteps_run)" + "page_landingWelcome_installSteps_cli_install": { + "message": "Follow <0>these instructions, then start an IPFS daemon in your terminal:", + "description": "Install steps copy (page_landingWelcome_installSteps_install)" }, "page_landingWelcome_resources_title_new_ipfs": { "message": "New to IPFS?", diff --git a/add-on/src/landing-pages/welcome/page.js b/add-on/src/landing-pages/welcome/page.js index 35e62ab52..e1536646a 100644 --- a/add-on/src/landing-pages/welcome/page.js +++ b/add-on/src/landing-pages/welcome/page.js @@ -95,10 +95,11 @@ const renderInstallSteps = (i18n, isIpfsOnline) => { return html`
-

${i18n.getMessage('page_landingWelcome_installSteps_title')}

-

${renderTranslatedLinks('page_landingWelcome_installSteps_install', ['https://docs.ipfs.io/introduction/install/'], `target="_blank" class="${anchorClass}"`)}

-

${i18n.getMessage('page_landingWelcome_installSteps_run')}

-
+

${i18n.getMessage('page_landingWelcome_installSteps_notRunning_title')}

+

${renderTranslatedLinks('page_landingWelcome_installSteps_desktop_install', ['https://github.com/ipfs-shipyard/ipfs-desktop#ipfs-desktop'], `target="_blank" class="${anchorClass}"`)}

+

${i18n.getMessage('page_landingWelcome_installSteps_cli_title')}

+

${renderTranslatedLinks('page_landingWelcome_installSteps_cli_install', ['https://docs.ipfs.io/introduction/usage/'], `target="_blank" class="${anchorClass}"`)}

+
$ ipfs daemon Initializing daemon... API server listening on /ip4/127.0.0.1/tcp/5001 @@ -128,7 +129,7 @@ const renderResources = (i18n) => {

${renderTranslatedLinks('page_landingWelcome_resources_got_questions', ['https://discuss.ipfs.io'], `target="_blank" class="${anchorClass}"`)}

${i18n.getMessage('page_landingWelcome_resources_title_want_to_help')}

-

${renderTranslatedLinks('page_landingWelcome_resources_want_to_help', ['https://github.com/ipfs/community/#community', 'https://github.com/ipfs/ipfs#project-links', 'https://github.com/ipfs/docs', 'https://www.transifex.com/ipfs/public', 'https://discuss.ipfs.io/c/help'], `target="_blank" class="${anchorClass}"`)}

+

${renderTranslatedLinks('page_landingWelcome_resources_want_to_help', ['https://github.com/ipfs/community/#community', 'https://github.com/ipfs/ipfs#project-links', 'https://github.com/ipfs/docs', 'https://github.com/ipfs/i18n#ipfs-translation-project--%EF%B8%8F', 'https://discuss.ipfs.io/c/help'], `target="_blank" class="${anchorClass}"`)}

` }