Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds CRC (Class-Responsibility-Collaborator) cards documentation for Assignment 2 of CPW-207. The document defines four classes involved in a messaging/chat system: Conversation, InterWebSocket, Message, and Notification (Inbox), along with their responsibilities and collaborators.
Changes:
- Added new CRC cards documentation file defining the design of a messaging system with four main classes and their interactions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| **Collaborators** | ||
| - User | ||
| - Conversation | ||
| - Notification (Inbox) |
There was a problem hiding this comment.
The collaborator "Notification (Inbox)" references a class that doesn't have its own CRC card defined in this document. However, the codebase has a "Mail" table (DatabaseSetup.js lines 60-70) that appears to serve this purpose. Consider either adding a CRC card for Mail/Notification or removing this collaborator reference if it's not part of the messaging system being documented.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
|
||
| **Responsibilities** | ||
| - Represents a friendship relationship between users | ||
| - Stores friendship status and metadata (for example, when the friendship was created) |
There was a problem hiding this comment.
Nice touch that Friend represents the relationship itself, including data about that friendship
|
|
||
| **Collaborators** | ||
| - User | ||
| - Notification (Inbox) |
There was a problem hiding this comment.
Would friend collaborate with notifications, or would the conversation do that? Or are you referring to the friend request itself?
My PR for CPW 207 Assignment 2: CRC Cards