{images.length > 0 ? (
) : null}
- {nonImages.map((item, i) => (
-
+ {videos.map((item, i) => (
+
))}
+ {files.length > 0 ? (
+
+ {files.map((item, i) => (
+
+ ))}
+
+ ) : null}
);
}
diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json
index 6358bcc46..6b6f990d6 100644
--- a/webui/src/i18n/locales/en/common.json
+++ b/webui/src/i18n/locales/en/common.json
@@ -2539,6 +2539,7 @@
"imageAttachment": "Image attachment",
"videoAttachment": "Video attachment",
"fileAttachment": "File attachment",
+ "downloadAttachment": "Download {{name}}",
"attachmentUnavailable": "Attachment unavailable",
"dataTable": "Data table",
"fileEditPreparing": "Preparing file edit…",
diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json
index 3ea246e84..80046cea9 100644
--- a/webui/src/i18n/locales/es/common.json
+++ b/webui/src/i18n/locales/es/common.json
@@ -2157,6 +2157,7 @@
"imageAttachment": "Imagen adjunta",
"videoAttachment": "Archivo de vídeo",
"fileAttachment": "Archivo adjunto",
+ "downloadAttachment": "Descargar {{name}}",
"attachmentUnavailable": "Adjunto no disponible",
"dataTable": "Tabla de datos",
"fileEditPreparing": "Preparando la edición del archivo…",
diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json
index 45c576676..8205ae4ab 100644
--- a/webui/src/i18n/locales/fr/common.json
+++ b/webui/src/i18n/locales/fr/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "Pièce jointe image",
"videoAttachment": "Pièce jointe vidéo",
"fileAttachment": "Pièce jointe",
+ "downloadAttachment": "Télécharger {{name}}",
"attachmentUnavailable": "Pièce jointe indisponible",
"dataTable": "Tableau de données",
"fileEditPreparing": "Préparation de la modification du fichier…",
diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json
index 7dfd64242..aff99b2ab 100644
--- a/webui/src/i18n/locales/id/common.json
+++ b/webui/src/i18n/locales/id/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "Lampiran gambar",
"videoAttachment": "Lampiran video",
"fileAttachment": "Lampiran file",
+ "downloadAttachment": "Unduh {{name}}",
"attachmentUnavailable": "Lampiran tidak tersedia",
"dataTable": "Tabel data",
"fileEditPreparing": "Menyiapkan perubahan file…",
diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json
index 30cad0c5f..f05480e57 100644
--- a/webui/src/i18n/locales/ja/common.json
+++ b/webui/src/i18n/locales/ja/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "画像の添付",
"videoAttachment": "動画の添付",
"fileAttachment": "ファイルの添付",
+ "downloadAttachment": "{{name}} をダウンロード",
"attachmentUnavailable": "添付ファイルを利用できません",
"dataTable": "データテーブル",
"fileEditPreparing": "ファイル編集を準備中…",
diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json
index 88f71ab9a..3cbafdbae 100644
--- a/webui/src/i18n/locales/ko/common.json
+++ b/webui/src/i18n/locales/ko/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "이미지 첨부",
"videoAttachment": "동영상 첨부",
"fileAttachment": "파일 첨부",
+ "downloadAttachment": "{{name}} 다운로드",
"attachmentUnavailable": "첨부 파일을 사용할 수 없음",
"dataTable": "데이터 표",
"fileEditPreparing": "파일 편집 준비 중…",
diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json
index 09c189734..afb7daede 100644
--- a/webui/src/i18n/locales/pt-BR/common.json
+++ b/webui/src/i18n/locales/pt-BR/common.json
@@ -2347,6 +2347,7 @@
"imageAttachment": "Anexo de imagem",
"videoAttachment": "Anexo de vídeo",
"fileAttachment": "Anexo de arquivo",
+ "downloadAttachment": "Baixar {{name}}",
"attachmentUnavailable": "Anexo indisponível",
"dataTable": "Tabela de dados",
"fileEditPreparing": "Preparando a edição do arquivo…",
diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json
index 9556586d0..197838ce3 100644
--- a/webui/src/i18n/locales/vi/common.json
+++ b/webui/src/i18n/locales/vi/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "Tệp hình ảnh đính kèm",
"videoAttachment": "Tệp video đính kèm",
"fileAttachment": "Tệp đính kèm",
+ "downloadAttachment": "Tải xuống {{name}}",
"attachmentUnavailable": "Tệp đính kèm không khả dụng",
"dataTable": "Bảng dữ liệu",
"fileEditPreparing": "Đang chuẩn bị sửa tệp…",
diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json
index 4260fc6d1..1f2be2185 100644
--- a/webui/src/i18n/locales/zh-CN/common.json
+++ b/webui/src/i18n/locales/zh-CN/common.json
@@ -2539,6 +2539,7 @@
"imageAttachment": "图片附件",
"videoAttachment": "视频附件",
"fileAttachment": "文件附件",
+ "downloadAttachment": "下载 {{name}}",
"attachmentUnavailable": "附件不可用",
"dataTable": "数据表",
"fileEditPreparing": "准备编辑文件…",
diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json
index a35780a22..f4fbdf5cc 100644
--- a/webui/src/i18n/locales/zh-TW/common.json
+++ b/webui/src/i18n/locales/zh-TW/common.json
@@ -2156,6 +2156,7 @@
"imageAttachment": "圖片附件",
"videoAttachment": "影片附件",
"fileAttachment": "檔案附件",
+ "downloadAttachment": "下載 {{name}}",
"attachmentUnavailable": "附件無法使用",
"dataTable": "資料表",
"fileEditPreparing": "準備編輯檔案…",
diff --git a/webui/src/tests/attachment-tile.test.tsx b/webui/src/tests/attachment-tile.test.tsx
new file mode 100644
index 000000000..5c06a4b02
--- /dev/null
+++ b/webui/src/tests/attachment-tile.test.tsx
@@ -0,0 +1,47 @@
+import { render, screen } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+
+import { AttachmentTile } from "@/components/AttachmentTile";
+
+describe("attachment download cards", () => {
+ it("keeps named download actions distinct and shows the file extension", () => {
+ render(<>
+