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 a21f0628b6
commit 278ed5992d
12 changed files with 297 additions and 8 deletions

View File

@@ -43,6 +43,11 @@
"participantsWithCount": "Mga partisipante ({count})",
"clickToSelectUser": "I-klik aron pilion",
"screamColon": " misinggit:",
"report": "I-report",
"reportConfirmTitle": "I-report ang chat",
"reportConfirmMessage": "Sigurado ka nga i-report nimo ang user nga {user}? Ang tibuok chat history i-save.",
"reportSent": "Malampuson nga na-save ang report.",
"reportError": "Napakyas ang pag-save sa report.",
"commandPreviewFallback": "/cr <ngalan sa lawak>",
"createRoom": {
"toggleShowChat": "Ipakita ang chat",
@@ -156,7 +161,11 @@
"jumptonext": "Tapusa kining chat",
"userleftchat": "Mibiya na ang ka-chat sa panag-istorya.",
"startsearch": "Pangita sa sunod nga panag-istorya",
"selfstopped": "Mibiya ka sa panag-istorya."
"selfstopped": "Mibiya ka sa panag-istorya.",
"report": "I-report",
"reportConfirm": "Sigurado ka nga i-report nimo kining chat? Ang tibuok chat history i-save.",
"reportSent": "Malampuson nga na-save ang report.",
"reportError": "Napakyas ang pag-save sa report."
}
}
}