24 Commits

Author SHA1 Message Date
Abhinav Raut 43ebed1c3a WS rewrite: per-client subscriptions and perf improvements
Targets broadcasts via per-tab list and open subs (validated at subscribe time)
instead of broadcasting message uuid to all agents. Adds frontend list typing, throttled sound,
and many perf improvements to reduce cpu memory & database queries.
Other fixes: Enforce message-to-conversation binding in handleGetMessage
2026-05-20 23:42:07 +05:30
Abhinav Raut 2b6fd313d4 fix: S3 attachment URLs and missed conversation list updates 2026-05-19 21:27:04 +05:30
Abhinav Raut 68d1b8117f fix: attachment download through backend for S3 stores 2026-05-19 15:24:54 +05:30
Abhinav Raut 9dfcb6bc90 fix: hide Gmail forward quoted text
Gmail forwards wrap content in <div class="gmail_quote gmail_quote_container">
instead of a blockquote, so the existing detector missed them.
2026-05-19 14:56:01 +05:30
Abhinav Raut c03477a066 fix: hide Yahoo Mail quoted text
Yahoo Mail wraps replies in <div class="yahoo_quoted">, which the quoted
text handling added in bae4c23b did not detect. Add the marker to the JS
detector and an attribute-suffix selector to .hide-quoted-text so the
"Show quoted text" toggle appears and the quote is hidden by default.
2026-05-19 14:49:05 +05:30
Abhinav Raut bae4c23b01 hide outlook/hotmail quoted text correctly and fix html email whitespace 2026-05-18 00:30:13 +05:30
Abhinav Raut b72dad7cc7 Swap lightbox to lib, force-download via query param, link inline media on insert 2026-05-14 17:06:35 +05:30
Abhinav Raut 300e9b1238 Drop widget secondary color and auto-derive primary foreground for text selection. 2026-04-15 20:17:56 +05:30
Abhinav Raut e860164ad7 Add widget home screen customization with configurable backgrounds, announcements, and external links
Fix inconsistnet close button for mobile devices.
2026-04-13 04:01:07 +05:30
Abhinav Raut bb14b30121 Remove gravatar 2026-04-09 00:37:09 +05:30
Abhinav Raut 14b29a7063 Resolve inline image CID references in message API responses instead of letting the api consumer handle it.
Fix make file go run cmd
2026-04-07 16:19:19 +05:30
Abhinav Raut 235afb2b88 Play notification sound when tab is hidden and defer last-seen updates when tab is hidden
Update js template rendered to use pipe syntax for fallbacks
2026-04-05 01:51:45 +05:30
Abhinav Raut 6abb6ad017 Move continuity config and intervals to live chat inbox form from toml.
- Refactor widget.js.
- Fix possible race conditions in inbox reload logic.
- Reload only the updated inbox when an inbox is updated / created not all.
- Retain last inbox while navigatin back from admin -> inbox
2026-04-04 21:35:04 +05:30
Abhinav Raut 395a4e80df Refactor ws updates to use direct json payloads instead of prop value pattern.
Add real-time agent availability status updates to widget.

Consolidate multiple WS broadcasts into single calls
2026-03-22 19:34:21 +05:30
Abhinav Raut e7ab571c48 add reply guards, gravatar fallbacks for avatars, draft preview in conversation list, clickable agent avatars. Show sent messages immediately instead of waiting for WebSocket response. 2026-03-11 14:52:21 +05:30
Abhinav Raut 206af8a9c2 refactor move common utils to shared-ui 2026-02-11 01:15:01 +05:30
Abhinav Raut c21adfdf06 refactor: move datetime utility functions to shared-ui and update imports 2026-02-11 00:53:29 +05:30
Abhinav Raut 8ebe77a5fd - Fix copy button component usage
- Set --primary color value correct in live chat widget.
2026-01-18 11:55:43 +05:30
Abhinav Raut e2a9a00217 Live chat: add admin toggle to open widget directly into previous conversation / a new conversation
- Improve greeting and introduction messages to support template variables for user names.
2026-01-17 18:22:40 +05:30
Abhinav Raut aae8d1f793 Consider visitors and contacts same, as the only difference is that visitors are not authenticated.
Show a warning in sidebar when a conversation with a visitor is opened.

Move string.js utils to shared-ui utils

Modify user fetch queries to allow optional filter by multiple user types not just one.

Fix capitalizaiton for live chat en translations
2025-10-05 12:28:47 +05:30
Abhinav Raut f72f158cf0 - show thumbnail image in widget thread instead of the entire image
- update file imports to use shared-ui utils and remove redundant file.js
- Implement SignedURLStore interface for fs store
2025-08-19 03:01:21 +05:30
Abhinav Raut 8ee81c2d64 feat: Widget dark mode and chat reply expectation message in chat title.
feat: Add HTTP utility functions for trusted origin checks

feat: Implement typing status broadcasting for live chat clients and agents.

feat: Add support for signed URLs in media manager

fix: Update database migration to handle duplicate visitors with same email address.

feat: Add conversation subscription and typing message models for WebSocket communication

feat: Implement conversation subscription management in WebSocket hub this is used for broadcasting typing indicator.

feat: Revamp widget JavaScript to improve mobile responsiveness and show unread messages if any.
2025-07-17 01:06:54 +05:30
Abhinav Raut 61a70f6b52 clean up live chat
move last message details in the `meta` JSONB column of conversations
2025-07-06 18:46:54 +05:30
Abhinav Raut 5b6a58fba0 wip: intercom like live chat with chat widget
- new vue app for serving live chat widget, created subdirectories inside frontend dir `main` and `widget`
- vite changes for both main app and widget app.
- new backend live chat channel
- apis for live chat widget
2025-06-29 04:59:55 +05:30