TagSpaces is an offline, open source, document manager with tagging support
chore: added help tip for using the location based tags
Ilian Sapundshiev3f90587f19a8
diff --git a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx b/src/renderer/components/dialogs/CreateTagGroupDialog.tsxindex a707f01b9..a305f9e66 100644--- a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx+++ b/src/renderer/components/dialogs/CreateTagGroupDialog.tsx@@ -19,6 +19,7 @@import AppConfig from '-/AppConfig';import DraggablePaper from '-/components/DraggablePaper';import { ProLabel } from '-/components/HelperComponents';+import InfoIcon from '-/components/InfoIcon';import Tag from '-/components/Tag';import TransparentBackground from '-/components/TransparentBackground';import TsButton from '-/components/TsButton';@@ -27,6 +28,7 @@ import TsTextField from '-/components/TsTextField';import ColorPickerDialog from '-/components/dialogs/ColorPickerDialog';import TsDialogActions from '-/components/dialogs/components/TsDialogActions';import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';+import WorkSpacesDropdown from '-/components/dialogs/components/WorkSpacesDropdown';import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';import { Pro } from '-/pro';import { getSaveTagInLocation } from '-/reducers/settings';@@ -51,7 +53,6 @@ import React, {} from 'react';import { useTranslation } from 'react-i18next';import { useSelector } from 'react-redux';-import WorkSpacesDropdown from '-/components/dialogs/components/WorkSpacesDropdown';interface Props {open: boolean;@@ -223,7 +224,12 @@ function CreateTagGroupDialog(props: Props) {<ListItem style={{ paddingLeft: 0, paddingRight: 0 }}><TsSelectdata-tid="tagGroupLocationTID"- label={t('core:tagGroupLocation')}+ label={+ <>+ {t('core:tagGroupLocation')}+ <InfoIcon tooltip={t('tagGroupLocationHelp')} />+ </>+ }defaultValue={defaultTagGroupLocation}onChange={(event: ChangeEvent<HTMLInputElement>) => {locationId.current = event.target.value;diff --git a/src/renderer/components/dialogs/EditTagGroupDialog.tsx b/src/renderer/components/dialogs/EditTagGroupDialog.tsxindex bb8c2a18c..5e05f19af 100644--- a/src/renderer/components/dialogs/EditTagGroupDialog.tsx+++ b/src/renderer/components/dialogs/EditTagGroupDialog.tsx@@ -15,8 +15,9 @@* along with this program. If not, see <https://www.gnu.org/licenses/>.**/-import React, { ChangeEvent, useContext, useEffect, useState } from 'react';+import DraggablePaper from '-/components/DraggablePaper';import { ProLabel } from '-/components/HelperComponents';+import InfoIcon from '-/components/InfoIcon';import Tag from '-/components/Tag';import TransparentBackground from '-/components/TransparentBackground';import TsButton from '-/components/TsButton';@@ -25,6 +26,7 @@ import TsTextField from '-/components/TsTextField';import ColorPickerDialog from '-/components/dialogs/ColorPickerDialog';import TsDialogActions from '-/components/dialogs/components/TsDialogActions';import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';+import WorkSpacesDropdown from '-/components/dialogs/components/WorkSpacesDropdown';import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';import { useTagGroupsLocationContext } from '-/hooks/useTagGroupsLocationContext';import { useTaggingActionsContext } from '-/hooks/useTaggingActionsContext';@@ -32,7 +34,7 @@ import { Pro } from '-/pro';import { getSaveTagInLocation } from '-/reducers/settings';import { TS } from '-/tagspaces.namespace';import { CommonLocation } from '-/utils/CommonLocation';-import { useMediaQuery, useTheme } from '@mui/material';+import { Paper, useMediaQuery, useTheme } from '@mui/material';import Dialog from '@mui/material/Dialog';import DialogContent from '@mui/material/DialogContent';import FormControl from '@mui/material/FormControl';@@ -41,9 +43,9 @@ import ListItem from '@mui/material/ListItem';import ListItemText from '@mui/material/ListItemText';import MenuItem from '@mui/material/MenuItem';import Switch from '@mui/material/Switch';+import React, { ChangeEvent, useContext, useEffect, useState } from 'react';import { useTranslation } from 'react-i18next';import { useSelector } from 'react-redux';-import WorkSpacesDropdown from './components/WorkSpacesDropdown';const defaultTagGroupLocation = 'TAG_LIBRARY';@@ -210,7 +212,12 @@ function EditTagGroupDialog(props: Props) {<ListItem style={{ paddingLeft: 0, paddingRight: 0 }}><TsSelectfullWidth- label={t('core:tagGroupLocation')}+ label={+ <>+ {t('core:tagGroupLocation')}+ <InfoIcon tooltip={t('tagGroupLocationHelp')} />+ </>+ }defaultValue={selectedTagGroupEntry.locationId || defaultTagGroupLocation}@@ -329,6 +336,7 @@ function EditTagGroupDialog(props: Props) {<Dialogopen={open}fullScreen={smallScreen}+ PaperComponent={smallScreen ? Paper : DraggablePaper}onClose={onClose}onKeyDown={(event) => {if (event.key === 'Enter' || event.keyCode === 13) {diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex 87572d7d5..830f6eb4c 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -662,6 +662,7 @@"welcomeToTagSpaces": "Welcome to TagSpaces","startUsingTagSpaces": "Start using TagSpaces","tagGroupLocation": "Store Tag Group in",+ "tagGroupLocationHelp": "Selecting “Tag Library” makes the tag group available only on this TagSpaces installation (or this browser in the web version). Selecting a “Location” stores the tag group in that location, making it available on all devices connected to it.","enterTimePeriod": "Enter time period","enterTimePeriodTooltip": "Shows only files and folders tagged with date tag pointing to the given time period","storedSearchQueriesTooltip": "Stored search queries for later use",