-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
BackendIssue is primarily backend relatedIssue is primarily backend relatedFrontendIssue is primarily frontend relatedIssue is primarily frontend relatedMessaging System
Description
Feature Request
Refactor messaging frontend to make it ready for backend integration. This includes separating data, adding prop types/interfaces, and preparing for future API/sockets.
Is your feature request related to a problem?
Frontend is currently running on mock state. For backend to hook in cleanly, we need message/user/convo data structures clearly defined and logic isolated.
Describe the solution you'd like
β Refactor component logic:
- Extract mock data into separate file/hooks
- Define TypeScript types (or PropTypes) for
User,Message,Conversation - Add placeholders (
useEffect,TODO) for future WebSocket/API hooks - Structure the
ChatInputpayload to match expected backend schema - Modularize state logic so it can be replaced with backend sync later
Describe alternatives you've considered
π‘ Waited to refactor until backend was live, but this can cause rework. We'd rather design for clean plug-in from the start.
Additional Context
- Example message type:
type Message = {
id: string;
senderId: string;
receiverId: string;
content: string;
timestamp: string;
read: boolean;
} - Targeting frontend branch:
messaging-frontend
Tasks Breakdown (if applicable)
π
- Create
types.tsor prop types for key objects - Refactor mock data to external file
- Add TODOs where sockets/API will hook in
- Restructure
ChatInputto emit message object - Prepare for real-time state updates
Resources
π
- Messaging Feature Discussion: π¬ Messaging System β Team Discussion ThreadΒ #119
Priority & Impact
β‘ High (unblocks backend integration)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BackendIssue is primarily backend relatedIssue is primarily backend relatedFrontendIssue is primarily frontend relatedIssue is primarily frontend relatedMessaging System