diff --git a/src/app/(dashboard)/jobs/[jobId]/components/job-files-panel.tsx b/src/app/(dashboard)/jobs/[jobId]/components/job-files-panel.tsx
index 646a3fb..79a1718 100644
--- a/src/app/(dashboard)/jobs/[jobId]/components/job-files-panel.tsx
+++ b/src/app/(dashboard)/jobs/[jobId]/components/job-files-panel.tsx
@@ -254,7 +254,8 @@ function FileRow({ file }: { file: JobFileWithUrl }) {
const [open, setOpen] = useState(false);
const [downloadOpen, setDownloadOpen] = useState(false);
const [viewerOpen, setViewerOpen] = useState(false);
- const isViewable = VIEWABLE_RE.test(file.name);
+ const isArchived = Boolean(file.archivedAt);
+ const isViewable = !isArchived && VIEWABLE_RE.test(file.name);
useEffect(() => {
if (state.ok) {
@@ -281,12 +282,20 @@ function FileRow({ file }: { file: JobFileWithUrl }) {
}
return (
-
+
{kindIcon(file.kind)}
{file.name}
{JOB_FILE_KIND_LABELS[file.kind] ?? file.kind} · {formatSize(file.size)}
+ {isArchived && (
+ <>
+ {" · "}
+
+ Arşivlendi {new Date(file.archivedAt!).toLocaleDateString("tr-TR")}
+
+ >
+ )}
@@ -315,7 +324,13 @@ function FileRow({ file }: { file: JobFileWithUrl }) {
)}