Feature Request: Chat Functionality Between Users and Sellers
Summary
Develop a chat feature that allows users to initiate a conversation with sellers on a dedicated chat page. Users should be able to search for and select a seller, and sellers should be able to view and respond to messages from users. This feature will enhance communication and improve the user experience by providing direct interactions between users and sellers.
Description
The chat feature will be implemented in stages across multiple pull requests. Users will have the ability to search and choose any seller to start a conversation, while sellers will be able to view and respond to user messages. This feature will be introduced in a series of PRs, starting with frontend UI design using dummy data and gradually moving to backend integration with dynamic data.
PR Series:
Frontend: User/Seller Selection Page
Implement a fully responsive and attractively designed frontend page where users and sellers can search and select who to chat with.
Dummy data will be used initially to simulate the list of sellers for users and vice versa.
Ensure design consistency and usability across both user and seller views.
Frontend: Specific Chat Page
Design a fully responsive chat interface where users can view their conversation with a specific seller, and sellers can view messages from users.
Use dummy data to simulate messages between users and sellers.
Prioritize an engaging, user-friendly UI that is consistent with the rest of the site.
Backend: Dynamic User/Seller Selection
Implement necessary server actions and modify the schema to dynamically populate the "select who to chat with" page for both users and sellers.
Connect dynamic data to the frontend, replacing the dummy data for a functional search and selection experience.
Backend: Dynamic Chat Functionality
Implement server actions and schema modifications to dynamically populate the specific chat page for both users and sellers.
Integrate real-time messaging or refreshable data to keep the chat experience responsive and engaging.
Connect dynamic data to the frontend, replacing dummy data to support actual message exchanges.
Requirements
UI/UX: All chat pages must be responsive, visually engaging, and easy to navigate on both user and seller sides.
Real-time Updates (optional for final PR): Consider adding real-time messaging or periodic refreshes for a seamless chat experience.
Search Functionality: Implement search capabilities to help users find specific sellers to chat with easily.
Backend Integration: Support real user-seller interactions by dynamically fetching and storing chat data.
Schema Modifications: Modify database schema as needed to support chat sessions between users and sellers.
Acceptance Criteria
[ ] Fully responsive and well-designed user/seller selection page with dummy data (PR 1).
[ ] Fully responsive and well-designed specific chat page with dummy data (PR 2).
[ ] Dynamic user/seller selection functionality integrated with the backend (PR 3).
[ ] Dynamic chat functionality with backend integration on specific chat pages (PR 4).
[ ] Optional: Real-time messaging or periodic data refreshes for live chat interactions.
Additional Notes
Break down each stage into separate PRs to ensure modular, testable code at each stage.
Ensure all schema and server actions are well-documented for future extensibility.
Consider security measures and privacy of chat data between users and sellers.
This series of PRs will introduce an intuitive and feature-rich chat experience between users and sellers on the platform.
Description
Feature Request: Chat Functionality Between Users and Sellers
Summary
Develop a chat feature that allows users to initiate a conversation with sellers on a dedicated chat page. Users should be able to search for and select a seller, and sellers should be able to view and respond to messages from users. This feature will enhance communication and improve the user experience by providing direct interactions between users and sellers.
Description
The chat feature will be implemented in stages across multiple pull requests. Users will have the ability to search and choose any seller to start a conversation, while sellers will be able to view and respond to user messages. This feature will be introduced in a series of PRs, starting with frontend UI design using dummy data and gradually moving to backend integration with dynamic data.
PR Series:
Frontend: User/Seller Selection Page
Frontend: Specific Chat Page
Backend: Dynamic User/Seller Selection
Backend: Dynamic Chat Functionality
Requirements
Acceptance Criteria
Additional Notes
This series of PRs will introduce an intuitive and feature-rich chat experience between users and sellers on the platform.
Screenshots
No response
Checklist