feat(Chat): implement chat incident reporting feature

- 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 85d013f57f
commit ab30ba9df6
12 changed files with 297 additions and 8 deletions

View File

@@ -44,6 +44,11 @@
"participantsWithCount": "Participants ({count})",
"clickToSelectUser": "Click to select",
"screamColon": " shouts:",
"report": "Report",
"reportConfirmTitle": "Report chat",
"reportConfirmMessage": "Do you really want to report user {user}? The full chat history will be stored.",
"reportSent": "Report was saved successfully.",
"reportError": "Report could not be saved.",
"commandPreviewFallback": "/cr <roomname>",
"createRoom": {
"toggleShowChat": "Show chat",
@@ -157,7 +162,11 @@
"jumptonext": "End this chat",
"userleftchat": "The chat partner has left the chat.",
"startsearch": "Search next conversation",
"selfstopped": "You left the conversation."
"selfstopped": "You left the conversation.",
"report": "Report",
"reportConfirm": "Do you really want to report this chat? The full chat history will be stored.",
"reportSent": "Report was saved successfully.",
"reportError": "Report could not be saved."
}
}
}