Modération et fiabilité : signalements, blocage, signaler un bug, remontée d'erreurs, sauvegardes

- Signaler (motif + précision ≤ 500 car.) un avis ou un profil via un bouton ⋯ générique
  (ReportButton / ReportDialog, cibles review | profile | comment | list).
- Bloquer / débloquer un membre depuis son profil : abonnements retirés, plus de suivi ni de
  réaction possible, ses avis masqués côté app.
- Administration : onglets Signalements (file regroupée par cible, aperçu actuel + copie au
  moment du signalement, actions supprimer / suspendre / résolu / classer), Suspendus, Bugs,
  Erreurs ; compteurs « à traiter » dans les onglets et dans Réglages.
- Réglages > À propos : « Signaler un bug » avec infos techniques affichées avant envoi
  (sans compte : lien rdacet.fr).
- Remontée d'erreurs sans tiers : window.onerror, unhandledrejection, ErrorBoundary global
  (écran « Oups… »), nettoyage des données perso, dédoublonnage, 10 envois max par session.
- SQL (à appliquer) : 20261009160000_moderation.sql, 20261009160100_bugs_errors.sql —
  RLS partout, fonctions security definer + is_admin(), anti-abus.
- Sauvegardes : workflow Gitea planifié, deploy/backup.sh (pg_dump, contrôles, gpg AES-256,
  rotation 7/4/6), deploy/BACKUP.md et deploy/restore.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-10-09 15:25:43 +00:00
1 parent c246b16e7e
commit 586c1ec00a
42 files changed
+4983 -32

No files matched your search

+118
View File
@@ -1035,6 +1035,124 @@ const dict: Translations = {
'sync.pending_two': "تعديلان في الانتظار",
'sync.pending_few': "{count} تعديلات في الانتظار",
'sync.pending_many': "{count} تعديلًا في الانتظار",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "عذرًا… حدث خطأ ما",
"crash.text": "تعطّل العرض. بياناتك في أمان: أعد تحميل التطبيق للمتابعة.",
"crash.reload": "إعادة التحميل",
"crash.retry": "إعادة المحاولة",
"crash.privacy": "عندما يكون التطبيق متصلًا، يُبلَّغ عن المشكلة تلقائيًا دون أي بيانات شخصية.",
"bug.title": "الإبلاغ عن خطأ",
"bug.hint": "صِف المشكلة وسنتولّى الأمر",
"bug.hintLocal": "تواصل معنا عبر rdacet.fr",
"bug.intro": "اشرح ما حدث وما كنت تتوقعه. كلما كان الوصف أدق كان الإصلاح أسرع.",
"bug.description": "الوصف",
"bug.placeholder": "مثال: عند فتح مسلسل من الصفحة الرئيسية تبقى قائمة الحلقات فارغة…",
"bug.techTitle": "المعلومات التقنية المرفقة",
"bug.techPrivacy": "لا شيء شخصي: لا بريدك الإلكتروني ولا مكتبتك. يرى الفريق اسم المستخدم الخاص بك ليتمكن من الرد عليك.",
"bug.send": "إرسال",
"bug.thanks": "شكرًا!",
"bug.thanksText": "تم إرسال بلاغك. سنطّلع عليه في أقرب وقت.",
"bug.info.version": "الإصدار",
"bug.info.browser": "المتصفح",
"bug.info.os": "النظام",
"bug.info.lang": "اللغة",
"bug.info.theme": "المظهر",
"bug.info.screen": "الشاشة",
"bug.info.viewport": "النافذة",
"bug.info.route": "الصفحة",
"bug.info.standalone": "تطبيق مثبّت",
"bug.info.online": "متصل",
"report.more": "خيارات أخرى",
"report.action": "إبلاغ",
"report.titleReview": "الإبلاغ عن هذه المراجعة",
"report.titleProfile": "الإبلاغ عن هذا الملف الشخصي",
"report.titleComment": "الإبلاغ عن هذا التعليق",
"report.titleList": "الإبلاغ عن هذه القائمة",
"report.intro": "لن يعرف الشخص المعني من أبلغ عنه. سيراجع فريق الإشراف بلاغك.",
"report.reason": "السبب",
"report.reason.spoiler": "حرق أحداث دون تنبيه",
"report.reason.harassment": "تحرّش أو تنمّر",
"report.reason.hate": "خطاب كراهية",
"report.reason.sexual": "محتوى جنسي",
"report.reason.spam": "رسائل مزعجة أو إعلانات",
"report.reason.impersonation": "انتحال شخصية",
"report.reason.other": "أخرى",
"report.details": "تفاصيل (اختياري)",
"report.detailsPlaceholder": "أضف سياقًا مفيدًا للإشراف…",
"report.send": "إرسال",
"report.privacy": "قد تؤدي البلاغات الكيدية إلى تعليق حسابك.",
"report.thanks": "شكرًا على بلاغك",
"report.already": "تم الإبلاغ مسبقًا",
"report.thanksText": "سيراجعه فريق الإشراف. يمكنك أيضًا حظر هذا الحساب من ملفه الشخصي.",
"report.errRate": "بلاغات كثيرة جدًا اليوم. حاول مجددًا غدًا.",
"report.errNotFound": "هذا المحتوى لم يعد موجودًا أو لم يعد مرئيًا لك.",
"report.errUnavailable": "الإبلاغ غير متاح بعد. حاول لاحقًا.",
"block.block": "حظر",
"block.unblock": "إلغاء الحظر",
"block.done": "تم حظر الحساب: {name}",
"block.undone": "تم إلغاء حظر الحساب: {name}",
"block.notice": "لقد حظرت هذا الحساب: لم يعد بإمكانه متابعتك أو التفاعل مع مراجعاتك، ومراجعاته مخفية عنك.",
"block.confirmTitle": "حظر {name}؟",
"block.confirmText": "لن يتابع أحدكما الآخر بعد الآن. لن يتمكن هذا الحساب من متابعتك أو التفاعل مع مراجعاتك، وستُخفى مراجعاته عنك. لن يتلقى أي إشعار.",
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
"adminMod.tabReports": "Reports",
"adminMod.tabSuspended": "Suspended",
"adminMod.tabBugs": "Bugs",
"adminMod.tabErrors": "Errors",
"adminMod.adminBadge": "Admin",
"adminMod.typeReview": "Review",
"adminMod.typeProfile": "Profile",
"adminMod.typeComment": "Comment",
"adminMod.typeList": "List",
"adminMod.reportCount_one": "{count} report",
"adminMod.reportCount_other": "{count} reports",
"adminMod.repeat_one": "{count} item from this account reported",
"adminMod.repeat_other": "{count} items from this account reported",
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
"adminMod.noPreview": "No preview for this content (id {id}).",
"adminMod.editedSince": "Edited since it was reported — see the reported version",
"adminMod.reportsDetail_one": "See the report",
"adminMod.reportsDetail_other": "See the last {count} reports",
"adminMod.resetProfile": "Reset profile",
"adminMod.deleteContent": "Delete content",
"adminMod.resolve": "Mark resolved",
"adminMod.dismiss": "Dismiss",
"adminMod.statusResolved": "Resolved",
"adminMod.statusDismissed": "Dismissed",
"adminMod.open": "Open",
"adminMod.closed": "Handled",
"adminMod.actionFailed": "Action failed: {error}",
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
"adminMod.noOpen": "No pending reports",
"adminMod.noClosed": "No handled reports",
"adminMod.confirmResetTitle": "Reset this profile?",
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
"adminMod.confirm": "Confirm",
"adminMod.noSuspended": "No suspended accounts",
"adminMod.suspendedOn": "Suspended on {date}",
"adminMod.suspendedUnknown": "Suspension date unknown",
"adminMod.bugNew": "New",
"adminMod.bugInProgress": "In progress",
"adminMod.bugFixed": "Fixed",
"adminMod.all": "All",
"adminMod.noBugs": "No bugs reported",
"adminMod.srcError": "JS error",
"adminMod.srcRejection": "Unhandled rejection",
"adminMod.srcRender": "Render crash",
"adminMod.errNew": "New",
"adminMod.errFixed": "Fixed",
"adminMod.firstSeen": "First seen {date}",
"adminMod.stack": "Stack trace and browser",
"adminMod.markFixed": "Mark fixed",
"adminMod.forget": "Forget",
"adminMod.noErrors": "No errors reported",
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
"adminMod.alertReports_one": "{count} report",
"adminMod.alertReports_other": "{count} reports",
"adminMod.alertBugs_one": "{count} bug",
"adminMod.alertBugs_other": "{count} bugs",
"adminMod.alertErrors_one": "{count} new error",
"adminMod.alertErrors_other": "{count} new errors",
}
export default dict