From b1b4070867ccccc29d96dcb81e0e6e89272a4a68 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 18 Mar 2022 09:35:26 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=F0=9F=8F=BD=20Beautifying=20the=20?= =?UTF-8?q?import=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/actions/comicinfo.actions.tsx | 2 +- src/client/assets/img/comicinfoxml.svg | 6 +++ .../components/Dashboard/RecentlyImported.tsx | 6 +++ src/client/components/Import.tsx | 37 ++++++++++++++++--- 4 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 src/client/assets/img/comicinfoxml.svg diff --git a/src/client/actions/comicinfo.actions.tsx b/src/client/actions/comicinfo.actions.tsx index 818a7c9..6829c6b 100644 --- a/src/client/actions/comicinfo.actions.tsx +++ b/src/client/actions/comicinfo.actions.tsx @@ -43,7 +43,7 @@ export const getWeeklyPullList = (options) => async (dispatch) => { url: `${COMICVINE_SERVICE_URI}/getWeeklyPullList`, method: "get", params: { - startDate: "2022-3-7", + startDate: "2022-3-21", pageSize: "15", currentPage: "1", }, diff --git a/src/client/assets/img/comicinfoxml.svg b/src/client/assets/img/comicinfoxml.svg new file mode 100644 index 0000000..68c93bb --- /dev/null +++ b/src/client/assets/img/comicinfoxml.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/client/components/Dashboard/RecentlyImported.tsx b/src/client/components/Dashboard/RecentlyImported.tsx index 00137ab..605d33c 100644 --- a/src/client/components/Dashboard/RecentlyImported.tsx +++ b/src/client/components/Dashboard/RecentlyImported.tsx @@ -80,6 +80,12 @@ export const RecentlyImported = ({ )} + {/* ComicInfo.xml presence */} + {!isNil(sourcedMetadata.comicInfo) && ( + + + + )} {/* Issue type */} {isComicBookMetadataAvailable && !isNil( diff --git a/src/client/components/Import.tsx b/src/client/components/Import.tsx index 9411c0b..1a28cb2 100644 --- a/src/client/components/Import.tsx +++ b/src/client/components/Import.tsx @@ -51,7 +51,16 @@ export const Import = (props: IProps): ReactElement => { dispatch(toggleImportQueueStatus({ action: "pause" })); } }, [isImportQueuePaused]); - + const pauseIconText = ( + <> + Pause Import + + ); + const playIconText = ( + <> + Resume Import + + ); return (
@@ -96,11 +105,27 @@ export const Import = (props: IProps): ReactElement => { Import and Tag

- -
{JSON.stringify(libraryQueueResults, null, 2)}
- +
+
+
+ + {JSON.stringify(libraryQueueResults, null, 2)} + +
+
+
+
+ +
+
+
+
+
);