diff --git a/frontend/src/InteractiveSearch/InteractiveSearchContent.js b/frontend/src/InteractiveSearch/InteractiveSearchContent.js index fd57291981..d47f44c249 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchContent.js +++ b/frontend/src/InteractiveSearch/InteractiveSearchContent.js @@ -63,6 +63,15 @@ const columns = [ isSortable: true, isVisible: true }, + { + name: 'customFormatScore', + label: React.createElement(Icon, { + name: icons.SCORE, + title: 'Custom Format score' + }), + isSortable: true, + isVisible: true + }, { name: 'indexerFlags', label: React.createElement(Icon, { name: icons.FLAG }), diff --git a/frontend/src/InteractiveSearch/InteractiveSearchRow.css b/frontend/src/InteractiveSearch/InteractiveSearchRow.css index fd37e67366..edda17abc8 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchRow.css +++ b/frontend/src/InteractiveSearch/InteractiveSearchRow.css @@ -20,6 +20,14 @@ width: 100px; } +.customFormatScore { + composes: cell from '~Components/Table/Cells/TableRowCell.css'; + + width: 55px; + font-weight: bold; + cursor: default; +} + .rejected, .indexerFlags, .download { diff --git a/frontend/src/InteractiveSearch/InteractiveSearchRow.js b/frontend/src/InteractiveSearch/InteractiveSearchRow.js index 69d1c4ad24..6e2dfd0fcd 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchRow.js +++ b/frontend/src/InteractiveSearch/InteractiveSearchRow.js @@ -114,6 +114,7 @@ class InteractiveSearchRow extends Component { leechers, quality, customFormats, + customFormatScore, languages, indexerFlags, rejections, @@ -182,6 +183,11 @@ class InteractiveSearchRow extends Component { /> + + {customFormatScore > 0 && `+${customFormatScore}`} + {customFormatScore < 0 && customFormatScore} + + { !!indexerFlags.length && @@ -281,6 +287,7 @@ InteractiveSearchRow.propTypes = { leechers: PropTypes.number, quality: PropTypes.object.isRequired, customFormats: PropTypes.arrayOf(PropTypes.object).isRequired, + customFormatScore: PropTypes.number.isRequired, languages: PropTypes.arrayOf(PropTypes.object).isRequired, rejections: PropTypes.arrayOf(PropTypes.string).isRequired, indexerFlags: PropTypes.arrayOf(PropTypes.string).isRequired, diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js index 49f4463deb..c81b6771a4 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js @@ -94,10 +94,18 @@ class CustomFormat extends Component { return null; } + let kind = kinds.DEFAULT; + if (item.required) { + kind = kinds.SUCCESS; + } + if (item.negate) { + kind = kinds.DANGER; + } + return ( diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js index fa526a451b..fbec16ef97 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { kinds } from 'Helpers/Props'; import Alert from 'Components/Alert'; +import Link from 'Components/Link/Link'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalContent from 'Components/Modal/ModalContent'; @@ -48,8 +49,8 @@ class AddSpecificationModalContent extends Component {
-
Radarr supports custom conditions against the following release properties
-
Visit github for more details
+
Radarr supports custom conditions against the release properties below.
+
Visit GitHub for more details.
diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/Specification.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/Specification.js index 55dbec5206..9869112bce 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/Specification.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/Specification.js @@ -90,14 +90,14 @@ class Specification extends Component { { negate && -