How aymaahmed058-maker/react-chat-app works
This is an early-stage React chat UI with a mock JSON-server backend, not a production messaging service. The intended user flow is to enter the app, view a chat, send a message, and see a delayed echo-bot response; the current App keeps the static login screen active because its user flag is false. The README also documents contact-list, profile/detail, and notification UI capabilities. Edges reflect shown component calls and documented mock-database setup; unsampled implementation details are not inferred.
Main entry points: App.jsx App routing · Chat.jsx Chat view · Chatinput.jsx Message composer · List.jsx Contact list panel
Components 17
App shell
- React entry
src/main.jsx - App routing
src/App.jsx - Static login
src/Login/Login.jsx - Toast notifications
src/notification/notification.jsx
Messaging
- Chat view
src/Chat/Chat.jsx - Message display
src/Chat/message.jsx - Message composer
src/Chat/Chatinput.jsx - Emoji picker
Contacts and details
- Contact list panel
src/List/List.jsx - User profile header
src/List/Userinfo/Userinfo.jsx - Chat list
src/List/Chatlist/Chatlist.jsx - Add-user panel
src/List/Chatlist/Adduser/adduser.jsx - Chat details
src/Detail/Detail.jsx
Mock data service
- JSON Server API
- Mock message data
db.json
Other components
- User
- React Toastify
Connections 17
- User → React entry: opens app
src/main.jsx - React entry → App routing: renders
src/main.jsx - App routing → Static login: renders when signed out
src/App.jsx - App routing → Contact list panel: renders when signed in
src/App.jsx - App routing → Chat view: renders when signed in
src/App.jsx - App routing → Chat details: renders when signed in
src/App.jsx - App routing → Toast notifications: renders
src/App.jsx - Toast notifications → React Toastify: mounts container
src/notification/notification.jsx - Chat view → JSON Server API: fetches and posts messages
src/Chat/Chat.jsx - JSON Server API → Mock message data: reads and writes
README.md - Chat view → Message display: renders messages
src/Chat/Chat.jsx - Chat view → Message composer: renders composer
src/Chat/Chat.jsx - Message composer → Chat view: sends text
src/Chat/Chat.jsx - Message composer → Emoji picker: opens picker
src/Chat/Chatinput.jsx - Contact list panel → User profile header: renders
src/List/List.jsx - Contact list panel → Chat list: renders
src/List/List.jsx - Chat list → Add-user panel: shows on toggle
src/List/Chatlist/Chatlist.jsx