swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
28 stars 135 forks source link

[Feat] Chat Functionality Between Users and Sellers #532

Closed ShivanshPlays closed 1 week ago

ShivanshPlays commented 1 week ago

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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

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