From c13844e8b0a44146be12639705d9752b96f06c40 Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Fri, 27 Dec 2024 16:13:39 +0000 Subject: [PATCH] feat(lists): ui enhancements (#1898) * feat(web): remove browserslist left over * fix(web): use string on some Settings section description * fix(web): parse listType name * fix(web): lists table aligned with other tables * fix(web): fix release typo * fix(web): Lists filter limited to 1 --- web/package.json | 12 ------- web/src/domain/constants.ts | 13 +++++++ web/src/forms/settings/ReleaseForms.tsx | 4 +-- web/src/screens/settings/Lists.tsx | 46 +++++++++++-------------- web/src/screens/settings/Proxy.tsx | 6 +--- web/src/screens/settings/Releases.tsx | 4 +-- 6 files changed, 38 insertions(+), 47 deletions(-) diff --git a/web/package.json b/web/package.json index 3ad2ebc..f17edbb 100644 --- a/web/package.json +++ b/web/package.json @@ -13,18 +13,6 @@ "preview": "vite preview", "lint:watch": "pnpm run lint -- --watch" }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, "pnpm": { "overrides": { "csstype": "3.1.2", diff --git a/web/src/domain/constants.ts b/web/src/domain/constants.ts index 03a80d9..396421a 100644 --- a/web/src/domain/constants.ts +++ b/web/src/domain/constants.ts @@ -452,6 +452,19 @@ export const ListTypeOptions: OptionBasicTyped[] = [ }, ]; +export const ListTypeNameMap: Record = { + "SONARR": "Sonarr", + "RADARR": "Radarr", + "LIDARR": "Lidarr", + "READARR": "Readarr", + "WHISPARR": "Whisparr", + "MDBLIST": "MDBList", + "TRAKT": "Trakt", + "METACRITIC": "Metacritic", + "STEAM": "Steam", + "PLAINTEXT": "Plaintext", +}; + export const NotificationTypeOptions: OptionBasicTyped[] = [ { label: "Discord", diff --git a/web/src/forms/settings/ReleaseForms.tsx b/web/src/forms/settings/ReleaseForms.tsx index ac28b11..71cd912 100644 --- a/web/src/forms/settings/ReleaseForms.tsx +++ b/web/src/forms/settings/ReleaseForms.tsx @@ -71,7 +71,7 @@ export function ReleaseProfileDuplicateAddForm({ isOpen, toggle }: AddFormProps) - + @@ -171,7 +171,7 @@ export function ReleaseProfileDuplicateUpdateForm({ isOpen, toggle, data: profil - + diff --git a/web/src/screens/settings/Lists.tsx b/web/src/screens/settings/Lists.tsx index a8c505b..04b3861 100644 --- a/web/src/screens/settings/Lists.tsx +++ b/web/src/screens/settings/Lists.tsx @@ -18,6 +18,7 @@ import { EmptySimple } from "@components/emptystates"; import { ListAddForm, ListUpdateForm } from "@forms"; import { FC } from "react"; import { Link } from "@tanstack/react-router"; +import { ListTypeNameMap } from "@domain/constants"; function ListsSettings() { const [addFormIsOpen, toggleAddList] = useToggle(false); @@ -28,11 +29,7 @@ function ListsSettings() { return (
- Lists can automatically update your filters from arrs or other sources.
- - } + description="Lists can automatically update your filters from arrs or other sources." rightSide={