Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
feat: add tooltip to the Home.Autopilot section describing its function
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellCash committed Feb 24, 2020
1 parent 961de4e commit 7342a60
Show file tree
Hide file tree
Showing 36 changed files with 45 additions and 4 deletions.
13 changes: 9 additions & 4 deletions renderer/components/Home/WalletSettingsFormLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { FormattedMessage, injectIntl } from 'react-intl'
import { Box, Flex } from 'rebass/styled-components'
import uniq from 'lodash/uniq'
import { intlShape } from '@zap/i18n'
import { Bar, Button, DataRow, Text } from 'components/UI'
import { Bar, Button, DataRow, Text, Tooltip } from 'components/UI'
import { Input, Label, Toggle, TextArea, FieldLabelFactory } from 'components/Form'
import messages from './messages'
import AutopilotAllocation from './AutopilotAllocation'
Expand Down Expand Up @@ -207,9 +207,14 @@ class WalletSettingsFormLocal extends React.Component {
<Box as="section" mb={4}>
<DataRow
left={
<Label htmlFor="autopilot">
<FormattedMessage {...messages.section_autopilot_title} />
</Label>
<Flex>
<Label htmlFor="autopilot">
<FormattedMessage {...messages.section_autopilot_title} />
</Label>
<Tooltip ml={1} mt="2px">
<FormattedMessage {...messages.section_autopilot_tooltip} />
</Tooltip>
</Flex>
}
mt={4}
py={2}
Expand Down
2 changes: 2 additions & 0 deletions renderer/components/Home/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default defineMessages({
host: 'Host',
section_basic_title: 'Basic',
section_autopilot_title: 'Autopilot',
section_autopilot_tooltip:
'Autopilot automates the process of finding, funding and establishing payment channels with other nodes.',
section_naming_title: 'Naming',
section_naming_connections: 'Connections',
section_delete_title: 'Delete',
Expand Down
1 change: 1 addition & 0 deletions translations/af-ZA.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ca-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Něco se pokazilo",
"components.Home.saved_notification": "Nastavení bylo aktualizováno",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Základní",
"components.Home.section_connection_details": "Podrobnosti o připojení",
"components.Home.section_delete_title": "Smazat",
Expand Down
1 change: 1 addition & 0 deletions translations/da-DK.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Grundlæggende",
"components.Home.section_connection_details": "Forbindelses detaljer",
"components.Home.section_delete_title": "Slet",
Expand Down
1 change: 1 addition & 0 deletions translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Da ist was schiefgelaufen",
"components.Home.saved_notification": "Einstellungen aktualisiert",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Basis",
"components.Home.section_connection_details": "Verbindungsdetails",
"components.Home.section_delete_title": "Löschen",
Expand Down
1 change: 1 addition & 0 deletions translations/el-GR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Something went wrong",
"components.Home.saved_notification": "Settings have been updated",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "Autopilot automates the process of finding, funding and establishing payment channels with other nodes.",
"components.Home.section_basic_title": "Basic",
"components.Home.section_connection_details": "Connection details",
"components.Home.section_delete_title": "Delete",
Expand Down
1 change: 1 addition & 0 deletions translations/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Ha ocurrido un error",
"components.Home.saved_notification": "Configuraciónes actualizadas",
"components.Home.section_autopilot_title": "Piloto automático",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Básico",
"components.Home.section_connection_details": "Detalles de conexión",
"components.Home.section_delete_title": "Borrar",
Expand Down
1 change: 1 addition & 0 deletions translations/fi-FI.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Une erreur s'est produite",
"components.Home.saved_notification": "Les réglages ont été mis à jour",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Informations",
"components.Home.section_connection_details": "Détails de connexion",
"components.Home.section_delete_title": "Supprimer",
Expand Down
1 change: 1 addition & 0 deletions translations/ga-IE.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Bunúsach",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "Scrios",
Expand Down
1 change: 1 addition & 0 deletions translations/he-IL.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/hr-HR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Nešto je pošlo po zlu",
"components.Home.saved_notification": "Postavke su ažurirane",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "Osnovno",
"components.Home.section_connection_details": "Detalji veze",
"components.Home.section_delete_title": "Obriši",
Expand Down
1 change: 1 addition & 0 deletions translations/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/no-NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Noe gikk galt",
"components.Home.saved_notification": "Innstillingene er oppdatert",
"components.Home.section_autopilot_title": "Autopilot",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "Forbindelses-detaljer",
"components.Home.section_delete_title": "Slett",
Expand Down
1 change: 1 addition & 0 deletions translations/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ro-RO.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Произошла ошибка",
"components.Home.saved_notification": "Настройки были сохранены",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/sr-SP.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/sv-SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "Виникла помилка",
"components.Home.saved_notification": "Налаштування збережені",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/vi-VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down
1 change: 1 addition & 0 deletions translations/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
"components.Home.saved_error": "",
"components.Home.saved_notification": "",
"components.Home.section_autopilot_title": "",
"components.Home.section_autopilot_tooltip": "",
"components.Home.section_basic_title": "",
"components.Home.section_connection_details": "",
"components.Home.section_delete_title": "",
Expand Down

0 comments on commit 7342a60

Please sign in to comment.