diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..671a084 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,6 @@ +{ + "attribution": { + "commit": "", + "pr": "" + } +} diff --git a/src/components/import/ImportJobDetailDialog.tsx b/src/components/import/ImportJobDetailDialog.tsx new file mode 100644 index 0000000..e1abd74 --- /dev/null +++ b/src/components/import/ImportJobDetailDialog.tsx @@ -0,0 +1,164 @@ +import React from "react"; +import { useQuery } from "@tanstack/react-query"; +import { ExternalLink, Loader2 } from "lucide-react"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; +import { getImportJob } from "@/handlers/api/import-jobs.handler"; +import { useConfig } from "@/contexts/ConfigContext"; + +const InfoRow = ({ label, value }: { label: string; value: React.ReactNode }) => ( +
{label}
+{value ?? "โ"}
++ {albumName || job.url} +
++ {job.uploadedCount} uploaded + {job.skippedCount > 0 && `, ${job.skippedCount} skipped`} + {job.failedCount > 0 && `, ${job.failedCount} failed`} + {" ยท "} + {formatDate(job.createdAt)} +
+