From 93eb2303c7965c1312488fd71a316a5ad575c27e Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Thu, 14 May 2026 04:23:11 +0700 Subject: [PATCH] feat: add warn category for minor rule violations - Add "warn" status between "clean" and "flagged" for minor violations - Update AI analyzer system prompt with community rules and warn category - Warn: profanity, OOT, tone issues - requires warning but not deletion - Flagged: NSFW, illegal, hacking, scam, harassment, violence, SARA - requires review/deletion - Update types to support warn status in MessageRecord and AIAnalysisUpdate - Update client UI to show three panels: All Messages, Warned, Flagged - Warned messages show in right-top panel for quick review - Flagged messages show in right-bottom panel for moderation action This resolves: - Need to distinguish between minor and severe violations - Moderators can now warn users before taking action - Better moderation workflow with three-tier system Co-Authored-By: Claude Opus 4.7 --- public/index.html | 6 ++--- src/moderation/aiAnalyzer.ts | 43 +++++++++++++++++++++++++--------- src/moderation/messageStore.ts | 2 +- src/moderation/types.ts | 2 +- 4 files changed, 37 insertions(+), 16 deletions(-) diff --git a/public/index.html b/public/index.html index 0e612c8..3637536 100644 --- a/public/index.html +++ b/public/index.html @@ -47,7 +47,7 @@

Participants

speaking now
-

All Messages

all captures
Select channel to view text captures

Flagged

AI flagged only
No flagged messages
+

All Messages

all captures
Select channel to view text captures

Warned

minor violations
No warned messages

Flagged

requires review
No flagged messages