feat: add media attachment support for admin ticket replies

Admin can now attach photos, videos, and documents when replying to
tickets. Upload happens on file selection via existing media upload
endpoint. Includes attachment preview with type-specific icons,
upload progress, error handling, race condition protection, and
proper blob URL lifecycle management.

Added video player rendering for video attachments in message thread.
Updated ticket list preview to show [media_type] for media-only messages.
This commit is contained in:
Fringg
2026-03-19 06:39:05 +03:00
parent 6c3286abbe
commit 84f0e4e9b4
6 changed files with 307 additions and 13 deletions

View File

@@ -1579,6 +1579,12 @@
"adminLabel": "مدیر",
"replyPlaceholder": "پاسخ خود را بنویسید...",
"sendReply": "ارسال پاسخ",
"attachMedia": "پیوست رسانه",
"invalidFileType": "نوع فایل نامعتبر. از تصاویر، ویدئو (MP4, WebM) یا اسناد (PDF, DOC, TXT, ZIP) استفاده کنید.",
"fileTooLarge": "فایل بسیار بزرگ است. حداکثر اندازه ۱۰ مگابایت.",
"uploadFailed": "آپلود فایل ناموفق بود",
"uploading": "در حال آپلود...",
"uploadComplete": "آپلود شد",
"settings": "تنظیمات",
"settingsSubtitle": "پیکربندی سیستم تیکت و SLA",
"settingsLoadError": "خطا در بارگذاری تنظیمات",