Skip to content

TagSpaces is an offline, open source, document manager with tagging support

added content for the help feedback panel

Ilian Sapundshieve3773ef86809
diff --git a/app/components/HelpFeedbackPanel.js b/app/components/HelpFeedbackPanel.js
index 3b4a44cad..9dca65a93 100644
--- a/app/components/HelpFeedbackPanel.js
+++ b/app/components/HelpFeedbackPanel.js
@@ -19,25 +19,113 @@
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
+import classNames from 'classnames';
import Typography from '@material-ui/core/Typography';
+import List from '@material-ui/core/List';
+import ListItem from '@material-ui/core/ListItem';
+import ListItemIcon from '@material-ui/core/ListItemIcon';
+import ListItemText from '@material-ui/core/ListItemText';
+import Divider from '@material-ui/core/Divider';
+import DocumentationIcon from '@material-ui/icons/Help';
+import ChangeLogIcon from '@material-ui/icons/ImportContacts';
+import OnboardingIcon from '@material-ui/icons/Explore';
+import WebClipperIcon from '@material-ui/icons/Transform';
+import EmailIcon from '@material-ui/icons/Email';
+import IssueIcon from '@material-ui/icons/BugReport';
+import TranslationIcon from '@material-ui/icons/Translate';
+import NewFeatureIcon from '@material-ui/icons/Gesture';
+import SocialIcon from '@material-ui/icons/ThumbUp';
+import Social2Icon from '@material-ui/icons/Mood';
import CustomLogo from './CustomLogo';
import styles from './SidePanels.css';
+import AppConfig from '../config';
+import i18n from '../services/i18n';
type Props = {
classes: Object,
+ openFileNatively: (url: string) => void,
style: Object
};
-type State = {};
-
-class HelpFeedbackPanel extends React.Component<Props, State> {
+class HelpFeedbackPanel extends React.Component<Props> {
render() {
- const classes = this.props.classes;
+ const { classes, openFileNatively } = this.props;
return (
<div className={classes.panel} style={this.props.style}>
<CustomLogo />
- <Typography className={classes.panelTitle} type="subtitle1">Help</Typography>
+ <Typography className={classNames(classes.panelTitle, classes.header)} type="subtitle1">Help & Feedback</Typography>
+ <List dense={false} component="nav" aria-label="main mailbox folders">
+ <ListItem button onClick={() => openFileNatively(AppConfig.documentationLinks.general)}>
+ <ListItemIcon>
+ <DocumentationIcon />
+ </ListItemIcon>
+ <ListItemText primary="Open Documentation" />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.changelogURL)}>
+ <ListItemIcon>
+ <ChangeLogIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:whatsNew')} title="Opens the changelog of the app" />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.documentationLinks.general)}>
+ <ListItemIcon>
+ <OnboardingIcon />
+ </ListItemIcon>
+ <ListItemText primary="Onboarding Wizard" />
+ </ListItem>
+ <Divider />
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.suggestFeature)}>
+ <ListItemIcon>
+ <NewFeatureIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:suggestNewFeatures')} />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.reportIssue)}>
+ <ListItemIcon>
+ <IssueIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:reportIssues')} />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.helpTranslating)}>
+ <ListItemIcon>
+ <TranslationIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:helpWithTranslation')} />
+ </ListItem>
+ <Divider />
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.emailContact)}>
+ <ListItemIcon>
+ <EmailIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:emailContact')} />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.twitter)}>
+ <ListItemIcon>
+ <Social2Icon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:followOnTwitter')} />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.facebook)}>
+ <ListItemIcon>
+ <SocialIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:likeUsOnFacebook')} />
+ </ListItem>
+ <Divider />
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.webClipperChrome)}>
+ <ListItemIcon>
+ <WebClipperIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:webClipperChrome')} />
+ </ListItem>
+ <ListItem button onClick={() => openFileNatively(AppConfig.links.webClipperFirefox)}>
+ <ListItemIcon>
+ <WebClipperIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:webClipperFirefox')} />
+ </ListItem>
+ </List>
</div>
);
}
diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.js
index 12f08e2e2..8773b2834 100644
--- a/app/components/VerticalNavigation.js
+++ b/app/components/VerticalNavigation.js
@@ -169,6 +169,7 @@ type Props = {
isHelpFeedbackPanelOpened: boolean,
openHelpFeedbackPanel: () => void,
closeAllVerticalPanels: () => void,
+ openFileNatively: (url: string) => void,
switchTheme: () => void,
shouldTogglePanel: string,
currentDirectory: string,
@@ -278,6 +279,7 @@ class VerticalNavigation extends React.Component<Props, State> {
closeAllVerticalPanels,
switchTheme,
setManagementPanelVisibility,
+ openFileNatively,
setFirstRun
} = this.props;
return (
@@ -550,7 +552,7 @@ class VerticalNavigation extends React.Component<Props, State> {
{ isTagLibraryPanelOpened && <TagLibrary /> }
<Search style={{ display: isSearchPanelOpened ? 'block' : 'none' }} />
{ isPerspectivesPanelOpened && <PerspectiveManager /> }
- { isHelpFeedbackPanelOpened && <HelpFeedbackPanel /> }
+ { isHelpFeedbackPanelOpened && <HelpFeedbackPanel openFileNatively={openFileNatively} /> }
</div>
)}
</SplitPane>
@@ -600,6 +602,7 @@ function mapActionCreatorsToProps(dispatch) {
openSearchPanel: AppActions.openSearchPanel,
openPerspectivesPanel: AppActions.openPerspectivesPanel,
openHelpFeedbackPanel: AppActions.openHelpFeedbackPanel,
+ openFileNatively: AppActions.openFileNatively,
closeAllVerticalPanels: AppActions.closeAllVerticalPanels,
switchTheme: SettingsActions.switchTheme,
setFirstRun: SettingsActions.setFirstRun,
diff --git a/app/config.js b/app/config.js
index 396f54c0a..b46c0ee60 100644
--- a/app/config.js
+++ b/app/config.js
@@ -43,6 +43,16 @@ export default {
// maxSearchResult: 1000,
defaultFileColor: '#808080',
defaultFolderColor: '#555', // transparent #FDEEBD #ff791b #2c001e #880e4f
+ links: {
+ suggestFeature: 'https://trello.com/b/TGeG5bi9',
+ reportIssue: 'https://github.com/tagspaces/tagspaces/issues/',
+ helpTranslating: 'https://www.transifex.com/tagspaces/tagspaces/',
+ webClipperChrome: 'https://chrome.google.com/webstore/detail/tagspaces-web-clipper/ldalmgifdlgpiiadeccbcjojljeanhjk',
+ webClipperFirefox: 'https://addons.mozilla.org/en-US/firefox/addon/tagspaces/',
+ twitter: 'https://twitter.com/tagspaces',
+ facebook: 'https://www.facebook.com/tagspacesapp',
+ emailContact: 'mailto:[email protected]?subject=App',
+ },
documentationLinks: {
general: 'https://docs.tagspaces.org/',
defaultPerspective: 'https://docs.tagspaces.org/browsing-files.html#default-perspective',
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 0f7f300f2..d5db73379 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -172,8 +172,8 @@
"whatsNew": "What's New",
"suggestNewFeatures": "Suggest New Features",
"reportIssues": "Report Issues",
- "followOnTwitter": "Follow @tagspaces on Twitter",
- "likeUsOnFacebook": "Like us on Facebook",
+ "followOnTwitter": "Follow us on Twitter",
+ "likeUsOnFacebook": "Contact us on Facebook",
"searchPlaceholder": "Search current location",
"tagSearchOR": "At least one tag",
"tagSearchORTitle": "Entry should contain at least one of the tags (OR search)",
@@ -434,5 +434,10 @@
"smartTagGeoDescription": "Add custom geographical coordinates as a tag",
"smartTagDate": "custom-date",
"smartTagDateDescription": "Add custom date as a tag",
+ "webClipperChrome": "Get Chrome Web Clipper",
+ "webClipperFirefox": "Get Firefox Web Clipper",
+ "helpWithTranslation": "Help with translation",
+ "helpFeedback": "Get help, send feedback",
+ "emailContact": "Write us an email",
"-": "-"
}
diff --git a/app/services/electron-menus.js b/app/services/electron-menus.js
index b3cb806d0..e98cf283d 100644
--- a/app/services/electron-menus.js
+++ b/app/services/electron-menus.js
@@ -288,13 +288,13 @@ export default function buildDesktopMenu(mainPageProps: Object) {
{
label: '&' + i18n.t('core:likeUsOnFacebook'),
click: () => {
- mainPageProps.openFileNatively('https://www.facebook.com/tagspacesapp');
+ mainPageProps.openFileNatively(AppConfig.links.facebook);
}
},
{
label: '&' + i18n.t('core:followOnTwitter'),
click: () => {
- mainPageProps.openFileNatively('https://twitter.com/intent/user?screen_name=tagspaces');
+ mainPageProps.openFileNatively(AppConfig.links.twitter);
}
},
{
@@ -303,28 +303,28 @@ export default function buildDesktopMenu(mainPageProps: Object) {
{
label: '&' + i18n.t('core:suggestNewFeatures'),
click: () => {
- mainPageProps.openFileNatively('https://trello.com/b/TGeG5bi9');
+ mainPageProps.openFileNatively(AppConfig.links.suggestFeature);
}
},
{
label: '&' + i18n.t('core:reportIssues'),
click: () => {
- mainPageProps.openFileNatively('https://github.com/tagspaces/tagspaces/issues/');
+ mainPageProps.openFileNatively(AppConfig.links.reportIssue);
}
},
{
type: 'separator'
},
{
- label: 'Web clipper extension for Chrome',
+ label: i18n.t('core:webClipperChrome'),
click: () => {
- mainPageProps.openFileNatively('https://chrome.google.com/webstore/detail/tagspaces-web-clipper/ldalmgifdlgpiiadeccbcjojljeanhjk');
+ mainPageProps.openFileNatively(AppConfig.links.webClipperChrome);
}
},
{
- label: 'Web clipper extension for Firefox',
+ label: i18n.t('core:webClipperFirefox'),
click: () => {
- mainPageProps.openFileNatively('https://addons.mozilla.org/en-US/firefox/addon/tagspaces/');
+ mainPageProps.openFileNatively(AppConfig.links.webClipperFirefox);
}
},
{