Issue Details
Description: Allow the referral poster and applicants to exchange messages to clarify details before accepting.
Proposed plan:
Backend: Add ReferralMessage model with referralId, sender, recipient, body, createdAt.
API: Add endpoints:
POST /api/referrals/:id/messages (send)
GET /api/referrals/:id/messages (fetch conversation)
Real-time (optional): If you want live chat, use existing socket setup (there is backend/utils/socket.js) for message events.
Frontend: Add a message panel in ReferralDetail.jsx with message list + composer.
Issue Details
Description: Allow the referral poster and applicants to exchange messages to clarify details before accepting.
Proposed plan:
Backend: Add ReferralMessage model with referralId, sender, recipient, body, createdAt.
API: Add endpoints:
POST /api/referrals/:id/messages (send)
GET /api/referrals/:id/messages (fetch conversation)
Real-time (optional): If you want live chat, use existing socket setup (there is backend/utils/socket.js) for message events.
Frontend: Add a message panel in ReferralDetail.jsx with message list + composer.