From 876df945e459621a63f0190f9bd2e4c93ed2230f Mon Sep 17 00:00:00 2001 From: Samuel Chau Date: Sat, 14 Jun 2025 04:03:50 +0930 Subject: [PATCH] style: consistent import modal (#206) * style(import-modal): design similar to new media management sync modal * chore(docker): change dev build to beta --- docker-compose.prod.yml | 2 +- frontend/src/components/ui/ImportModal.jsx | 106 +++++++++++++-------- 2 files changed, 68 insertions(+), 40 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index c166b56..6349b08 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -2,7 +2,7 @@ version: '3.8' services: profilarr: - image: santiagosayshey/profilarr:latest + image: santiagosayshey/profilarr:beta container_name: profilarr ports: - 6868:6868 diff --git a/frontend/src/components/ui/ImportModal.jsx b/frontend/src/components/ui/ImportModal.jsx index 3aeb70b..69e4cfa 100644 --- a/frontend/src/components/ui/ImportModal.jsx +++ b/frontend/src/components/ui/ImportModal.jsx @@ -1,5 +1,6 @@ import React, {useState, useEffect} from 'react'; import PropTypes from 'prop-types'; +import {Loader, Check, Upload} from 'lucide-react'; import Modal from './Modal'; import {getArrConfigs} from '@api/arr'; @@ -58,53 +59,80 @@ const ImportModal = ({isOpen, onClose, onImport, type}) => { isOpen={isOpen} onClose={onClose} title={`Import ${type}`} + width='xl' footer={ -
- +
}> -
-
- - {isLoading ? ( -
- ) : arrs.length > 0 ? ( - - ) : ( -
- No arr instances configured. Please add one in - settings. -
- )} + {isLoading ? ( +
+ + Loading...
- - {error &&

{error}

} -
+ ) : arrs.length === 0 ? ( +
+

No arr instances configured

+
+ ) : ( +
+ + + + + + + + + + {arrs.map((arr, index) => ( + setSelectedArr(arr.id)} + > + + + + + ))} + +
NameTypeSelect
+ {arr.name} + + {arr.type} + +
+
+ {selectedArr === arr.id && ( + + )} +
+
+
+
+ )} + {error &&

{error}

} ); };