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

@@ -2428,6 +2428,12 @@
"adminLabel": "Админ",
"replyPlaceholder": "Введите ваш ответ...",
"sendReply": "Отправить",
"attachMedia": "Прикрепить медиа",
"invalidFileType": "Неверный тип файла. Используйте изображения, видео (MP4, WebM) или документы (PDF, DOC, TXT, ZIP).",
"fileTooLarge": "Файл слишком большой. Максимальный размер 10МБ.",
"uploadFailed": "Не удалось загрузить файл",
"uploading": "Загрузка...",
"uploadComplete": "Загружено",
"settings": "Настройки",
"settingsSubtitle": "Настройка тикетной системы и SLA",
"settingsLoadError": "Не удалось загрузить настройки",