D
Module

Live Chat

Overview of the Live Chat module used for customer service conversations.

  • Pages/LiveChat/Index.vue is a 6.428-line god component mixing UI, state, polling, and business logic in a single file.
  • The ChatList model is backed by MongoDB, but the actual chat data also lives in MySQL tables, creating a split source of truth.
  • There is no inbound webhook endpoint — the WhatsApp engine writes messages directly into the database.
  • The CS rotator that assigns incoming chats to agents has known bugs and inconsistent assignment behavior.
  • The address parser used to extract shipping details from chat text is fragile and breaks on non-standard message formats.