diff --git a/src/pages/assets/import-shared.tsx b/src/pages/assets/import-shared.tsx index f307371..e6ddb98 100644 --- a/src/pages/assets/import-shared.tsx +++ b/src/pages/assets/import-shared.tsx @@ -471,7 +471,7 @@ export default function ImportSharedPage() {

Import a shared album

- Paste a public shared link from Immich or Nextcloud to import its assets into your Immich instance. + Paste a public shared link from Immich or Nextcloud to import its assets into your Immich instance.

@@ -524,24 +524,31 @@ export default function ImportSharedPage() {

Previous imports

-
+
{importHistory.jobs.map((job) => { let jobImportData: Record = {}; try { jobImportData = JSON.parse(job.importData); } catch { /* ignore */ } const albumOpts = jobImportData.albumOptions as { albumName?: string } | undefined; const albumName = albumOpts?.albumName; + + const borderColor = job.status === "completed" + ? "border-l-emerald-500" + : job.status === "failed" + ? "border-l-destructive" + : "border-l-amber-400"; + const statusIcon = job.status === "completed" ? ( ) : job.status === "failed" ? ( ) : ( - + ); return (
setDetailJobId(job.id)} > {statusIcon} @@ -549,11 +556,21 @@ export default function ImportSharedPage() {

{albumName || job.url}

-

- {job.uploadedCount} imported - {job.skippedCount > 0 && ` · ${job.skippedCount} skipped`} - {job.failedCount > 0 && ` · ${job.failedCount} failed`} -

+
+ + {job.uploadedCount} imported + + {job.skippedCount > 0 && ( + + {job.skippedCount} skipped + + )} + {job.failedCount > 0 && ( + + {job.failedCount} failed + + )} +
{formatDateOnly(job.createdAt)}