feat(Chat): implement chat incident reporting feature
All checks were successful
Deploy to production / deploy (push) Successful in 1m57s

- Added reportChatIncident method in ChatController to handle reporting of chat incidents.
- Introduced a new API route for reporting incidents in chatRouter.
- Implemented chatService methods to ensure the chat report table is created and to handle incident data storage.
- Enhanced frontend components to allow users to report incidents in both multi and random chat dialogs.
- Updated internationalization files to include new strings for reporting functionality in multiple languages.
This commit is contained in:
Torsten Schulz (local)
2026-04-27 15:00:52 +02:00
parent 90e1c0496a
commit ff68fb72c4
12 changed files with 297 additions and 8 deletions

View File

@@ -43,6 +43,11 @@
"participantsWithCount": "Participantes ({count})",
"clickToSelectUser": "Clic para seleccionar",
"screamColon": " grita:",
"report": "Reportar",
"reportConfirmTitle": "Reportar chat",
"reportConfirmMessage": "¿Quieres reportar de verdad al usuario {user}? Se guardará todo el historial del chat.",
"reportSent": "El reporte se guardó correctamente.",
"reportError": "No se pudo guardar el reporte.",
"commandPreviewFallback": "/cr <nombre de sala>",
"createRoom": {
"toggleShowChat": "Mostrar chat",
@@ -156,7 +161,11 @@
"jumptonext": "Finalizar este chat",
"userleftchat": "La otra persona ha salido del chat.",
"startsearch": "Buscar la siguiente charla",
"selfstopped": "Has salido de la conversación."
"selfstopped": "Has salido de la conversación.",
"report": "Reportar",
"reportConfirm": "¿Quieres reportar de verdad este chat? Se guardará todo el historial del chat.",
"reportSent": "El reporte se guardó correctamente.",
"reportError": "No se pudo guardar el reporte."
}
}
}