Skip to content

CPW-207 Assignment 2 Alex#27

Open
SuperGamer001 wants to merge 4 commits intomainfrom
CPW-207-Assignment-2-Alex
Open

CPW-207 Assignment 2 Alex#27
SuperGamer001 wants to merge 4 commits intomainfrom
CPW-207-Assignment-2-Alex

Conversation

@SuperGamer001
Copy link
Member

My PR for CPW 207 Assignment 2: CRC Cards

Copilot AI review requested due to automatic review settings January 27, 2026 23:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@SuperGamer001 SuperGamer001 added the assignment Issue/PR is for a school assignment label Jan 29, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

@rachelkingCPTC rachelkingCPTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work


**Responsibilities**
- Represents a friendship relationship between users
- Stores friendship status and metadata (for example, when the friendship was created)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch that Friend represents the relationship itself, including data about that friendship


**Collaborators**
- User
- Notification (Inbox)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would friend collaborate with notifications, or would the conversation do that? Or are you referring to the friend request itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assignment Issue/PR is for a school assignment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants