Description
Enable users to share links, images, PDFs, and code snippets in community chat to improve collaboration and discussion.
Features
-
Link Detection
- Auto-detect URLs in messages.
- YouTube → show preview.
- GitHub / articles / job posts → clickable links.
-
Image Upload
- Users can share screenshots, UI designs, diagrams, etc.
-
PDF Upload
- Share resumes, documentation, notes, or research papers.
-
Code Snippets
- Display formatted code blocks for developer discussions.
Backend Changes
Extend the message model:
message: String
type: "text" | "image" | "pdf" | "link"
fileUrl: String
Tech Suggestion
- Cloudinary → image storage
- Cloudinary / S3 → PDF storage
- Frontend regex → URL detection
Acceptance Criteria
- Links are automatically detected and clickable.
- Users can upload and view images and PDFs.
- Code snippets render in formatted blocks.
- Messages sync in real-time across community members.
Description
Enable users to share links, images, PDFs, and code snippets in community chat to improve collaboration and discussion.
Features
Link Detection
Image Upload
PDF Upload
Code Snippets
Backend Changes
Extend the message model:
Tech Suggestion
Acceptance Criteria