mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:31:07 -05:00
1.6 KiB
1.6 KiB
Change Commenting System Implementation Plan
Core Requirements
- Threaded comment conversations
- @mention functionality
- File/line anchoring
- Notification system
- Comment resolution tracking
Technical Integration
-
Model Relationships
ExtendHistoricalRecord(line 31):class HistoricalRecord(models.Model): comments = GenericRelation('CommentThread') # Enables change comments -
Collaboration System
Enhance interface (line 85):interface CollaborationSystem { createCommentThread( changeId: string, anchor: LineRange, initialComment: string ): Promise<CommentThread>; } -
UI Components
NewInlineCommentPanelcomponent:interface CommentProps { thread: CommentThread; canResolve: boolean; onReply: (content: string) => void; onResolve: () => void; }
Notification Matrix
| Event Type | Notification Channel | Escalation Path |
|---|---|---|
| New comment | In-app, Email | After 24hrs → Slack DM |
| @mention | Mobile push, Email | After 12hrs → SMS |
| Resolution | In-app | None |
Phase Plan
- Week 1: Comment storage infrastructure
- Week 2: Anchoring system & UI
- Week 3: Notification pipeline
- Week 4: Moderation tools & audit