mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): add disclaimer for advanced filters (#411)
* feat(web): help users with accurate filtering.
This commit is contained in:
parent
b50688159e
commit
61741064c9
2 changed files with 23 additions and 6 deletions
|
@ -292,7 +292,7 @@ export default function FilterDetails() {
|
||||||
external_webhook_enabled: filter.external_webhook_enabled || false,
|
external_webhook_enabled: filter.external_webhook_enabled || false,
|
||||||
external_webhook_host: filter.external_webhook_host || "",
|
external_webhook_host: filter.external_webhook_host || "",
|
||||||
external_webhook_data: filter.external_webhook_data ||"",
|
external_webhook_data: filter.external_webhook_data ||"",
|
||||||
external_webhook_expect_status: filter.external_webhook_expect_status || 0,
|
external_webhook_expect_status: filter.external_webhook_expect_status || 0
|
||||||
} as Filter}
|
} as Filter}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
@ -466,10 +466,27 @@ export function Advanced() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<CollapsableSection title="Releases" subtitle="Match only certain release names and/or ignore other release names">
|
<CollapsableSection title="Releases" subtitle="Match only certain release names and/or ignore other release names">
|
||||||
<TextField name="match_releases" label="Match releases" columns={6} placeholder="eg. *some?movie*,*some?show*s01*" />
|
<div className="grid col-span-12 gap-6">
|
||||||
<TextField name="except_releases" label="Except releases" columns={6} placeholder="" />
|
<div
|
||||||
<div className="col-span-6">
|
className="col-span-12 flex p-4 text-sm text-yellow-700 bg-yellow-100 rounded-lg dark:bg-yellow-200 dark:text-yellow-800"
|
||||||
<SwitchGroup name="use_regex" label="Use Regex" />
|
role="alert">
|
||||||
|
<svg aria-hidden="true" className="flex-shrink-0 inline w-5 h-5 mr-3" fill="currentColor"
|
||||||
|
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fillRule="evenodd"
|
||||||
|
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
|
||||||
|
clipRule="evenodd"></path>
|
||||||
|
</svg>
|
||||||
|
<span className="sr-only">Info</span>
|
||||||
|
<div>
|
||||||
|
<span className="font-bold">Warning!</span> autobrr has extensive filtering built-in - only use this if nothing else works. If you need help please ask.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<TextField name="match_releases" label="Match releases" columns={6} placeholder="eg. *some?movie*,*some?show*s01*" />
|
||||||
|
<TextField name="except_releases" label="Except releases" columns={6} placeholder="" />
|
||||||
|
<div className="col-span-6">
|
||||||
|
<SwitchGroup name="use_regex" label="Use Regex" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CollapsableSection>
|
</CollapsableSection>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ const ImplementationBadgeIRC = () => (
|
||||||
<span
|
<span
|
||||||
className="mr-2 inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-green-200 dark:bg-green-400 text-green-800 dark:text-green-800"
|
className="mr-2 inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-green-200 dark:bg-green-400 text-green-800 dark:text-green-800"
|
||||||
>
|
>
|
||||||
IRC
|
IRC
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue