Improve messaging for Interactive Search

(cherry picked from commit 7893fdde104959c4f3c32d9e1000e2479f7a5b12)

Closes #3951
This commit is contained in:
Bogdan 2023-08-01 09:19:04 +03:00
parent 9aed5bb5c1
commit db98f1e5fb
2 changed files with 12 additions and 11 deletions

View File

@ -1,12 +1,13 @@
import PropTypes from 'prop-types';
import React from 'react';
import Alert from 'Components/Alert';
import Icon from 'Components/Icon';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import FilterMenu from 'Components/Menu/FilterMenu';
import PageMenuButton from 'Components/Menu/PageMenuButton';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { align, icons, sortDirections } from 'Helpers/Props';
import { align, icons, kinds, sortDirections } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import InteractiveSearchFilterModalConnector from './InteractiveSearchFilterModalConnector';
import InteractiveSearchRow from './InteractiveSearchRow';
@ -132,17 +133,17 @@ function InteractiveSearch(props) {
{
!isFetching && isPopulated && !totalReleasesCount ?
<div className={styles.blankpad}>
{translate('NoResults')}
</div> :
<Alert kind={kinds.INFO}>
{translate('NoResultsFound')}
</Alert> :
null
}
{
!!totalReleasesCount && isPopulated && !items.length ?
<div className={styles.blankpad}>
{translate('AllResultsFiltered')}
</div> :
<Alert kind={kinds.WARNING}>
{translate('AllResultsAreHiddenByTheAppliedFilter')}
</Alert> :
null
}
@ -177,7 +178,7 @@ function InteractiveSearch(props) {
{
totalReleasesCount !== items.length && !!items.length ?
<div className={styles.filteredMessage}>
{translate('SomeResultsFiltered')}
{translate('SomeResultsAreHiddenByTheAppliedFilter')}
</div> :
null
}

View File

@ -51,7 +51,7 @@
"AllExpandedExpandAll": "Expand All",
"AllFiles": "All Files",
"AllMonitoringOptionHelpText": "Monitor artists and all albums for each artist included on the import list",
"AllResultsFiltered": "All results are hidden by the applied filter",
"AllResultsAreHiddenByTheAppliedFilter": "All results are hidden by the applied filter",
"AllowArtistChangeClickToChangeArtist": "Click to change artist",
"AllowFingerprinting": "Allow Fingerprinting",
"AllowFingerprintingHelpText": "Use fingerprinting to improve accuracy of track matching",
@ -602,7 +602,7 @@
"NoLogFiles": "No log files",
"NoMinimumForAnyRuntime": "No minimum for any runtime",
"NoMissingItems": "No missing items",
"NoResults": "No Results Found",
"NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NoUpdatesAreAvailable": "No updates are available",
"None": "None",
@ -891,7 +891,7 @@
"SkipRedownload": "Skip Redownload",
"SkipRedownloadHelpText": "Prevents Lidarr from trying download alternative releases for the removed items",
"SmartReplace": "Smart Replace",
"SomeResultsFiltered": "Some results are hidden by the applied filter",
"SomeResultsAreHiddenByTheAppliedFilter": "Some results are hidden by the applied filter",
"SorryThatAlbumCannotBeFound": "Sorry, that album cannot be found.",
"SorryThatArtistCannotBeFound": "Sorry, that artist cannot be found.",
"Source": "Source",