diff --git a/src/client/components/ComicDetail.tsx b/src/client/components/ComicDetail.tsx
index 43bf883..2132a62 100644
--- a/src/client/components/ComicDetail.tsx
+++ b/src/client/components/ComicDetail.tsx
@@ -134,23 +134,50 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
content: isComicBookMetadataAvailable ? (
) : null,
+ include: isComicBookMetadataAvailable,
},
{
id: 2,
- icon: ,
- name: "Archive Operations",
- content: ,
+ name: "ComicInfo.xml",
+ icon: ,
+ content: (
+
+
+ {!isNil(comicBookDetailData.sourcedMetadata) &&
+ !isNil(comicBookDetailData.sourcedMetadata.comicInfo) && (
+
+ {JSON.stringify(
+ comicBookDetailData.sourcedMetadata.comicInfo,
+ null,
+ 2,
+ )}
+
+ )}
+
+
+ ),
+ include:
+ !isNil(comicBookDetailData.sourcedMetadata) &&
+ !isEmpty(comicBookDetailData.sourcedMetadata.comicInfo),
},
{
id: 3,
- icon: ,
- name: "Acquisition",
- content: (
-
- ),
+ icon: ,
+ name: "Archive Operations",
+ content: ,
+ include: !isNil(comicBookDetailData.rawFileDetails),
},
{
id: 4,
+ icon: ,
+ name: "Acquisition",
+ content: (
+
+ ),
+ include: !isNil(comicBookDetailData.rawFileDetails),
+ },
+ {
+ id: 5,
icon: null,
name:
!isNil(comicBookDetailData) && !isEmpty(comicBookDetailData) ? (
@@ -162,18 +189,21 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
),
+ include: !isNil(comicBookDetailData.rawFileDetails),
},
];
// Tabs
const MetadataTabGroup = () => {
+ const filteredTabs = tabGroup.filter((tab) => tab.include);
+ console.log("filter:m", filteredTabs);
return (
<>
- {tabGroup.map(({ id, name, icon }) => (
+ {filteredTabs.map(({ id, name, icon }) => (
- {
))}
- {tabGroup.map(({ id, content }) => {
+ {filteredTabs.map(({ id, content }) => {
return active === id ? content : null;
})}
>
@@ -254,15 +284,6 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
inferredMetadata: comicBookDetailData.inferredMetadata,
}}
/>
- {!isNil(comicBookDetailData.sourcedMetadata.comicInfo) && (
-
-
- {JSON.stringify(
- comicBookDetailData.sourcedMetadata, null, 2
- )}
-
-
- )}
>
)}
{/* comic vine scraped metadata */}
@@ -275,7 +296,7 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => {
- {isComicBookMetadataAvailable ? : null}
+ {}
{
{/* inferred metadata */}
-
- Inferred Issue Metadata
+ Inferred Issue Metadata
+
diff --git a/src/client/components/Dashboard/Dashboard.tsx b/src/client/components/Dashboard/Dashboard.tsx
index bf842ef..5b3a19c 100644
--- a/src/client/components/Dashboard/Dashboard.tsx
+++ b/src/client/components/Dashboard/Dashboard.tsx
@@ -92,16 +92,16 @@ export const Dashboard = (): ReactElement => {
!isEmpty(libraryStatistics.statistics[0].fileTypes) &&
map(
libraryStatistics.statistics[0].fileTypes,
- (fileType) => {
+ (fileType, idx) => {
return (
- <>
+
{fileType.data.length}
{fileType._id}
- >
+
);
},
)}