-
Notifications
You must be signed in to change notification settings - Fork 126
WIP: Live chat with chat widget #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
abhinavxd
wants to merge
49
commits into
main
Choose a base branch
from
feat/live-chat-channel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+12,625
−1,766
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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
move last message details in the `meta` JSONB column of conversations
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.
- show arrow down when when widget is open
…dget iframe. feat: more methods to toggle wiget visibility
Update user and inbox models, queries, and migrations
…er header instead of origin. - Removed the widgetOrigin middleware as it would have same origin as the iFrame URL, changed this to use `Referrer` header on initial iFrame load. - Feat(agent-view): Added external_user_id display in the conversation sidebar.
…TTP headers
- Add widgetAuth middleware to handle JWT and inbox validation consistently
- Move authentication logic from request body to standard HTTP headers:
* JWT: Authorization: Bearer <token>
* Inbox ID: X-Libredesk-Inbox-ID: <id>
- Refactor all widget handlers to use middleware context instead of duplicate auth code
- Frontend now sends auth headers via HTTP interceptor for all widget requests
…starting chat. fix: Chat initialization failing due to the JWT authenticated user doesn't exist in the DB yet. fix: Always upsert custom attribues instead of replacing.
- update file imports to use shared-ui utils and remove redundant file.js - Implement SignedURLStore interface for fs store
…-chat form. - Deleted the VisitorInfoForm.vue component and its associated schema. - Introduced a new preChatFormSchema.js to handle dynamic form validation. - Updated ChatView.vue to conditionally display the PreChatForm based on user session and conversation state. - Enhanced chat store to manage current conversation updates. - Implemented WebSocket event handling for conversation updates. - Updated localization files to include new terms related to the pre-chat form. - Modified conversation management logic to support broadcasting updates to widget clients. - Updated SQL queries to accommodate custom attributes for visitors.
update shadows for iframe and widget
…f they have a temporary ID
…ist, simplify chat conversation SQL queries. - add indexes to make conversation unread message count faster
… widget. Make the start conversation button a floating button and add a gradient fade overlay
hide admin help text on smaller devices
|
any updates? |
…ontact has not seen a conversation for configured amount of time, instead of sending a single message immediately when contact is disconnected on websocket. Make the batching interval and time threshold for unread messages configurable
…ts with a 4-hour expiration
…message being typed by agent
Owner
Author
Still being worked upon, maybe in a month this should be out. |
…isitors 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
New common CopyButton component for copying text to clipboard
Owner
Author
|
This is a WIP. It needed encryption and a few other pieces before going live. That’s now in place, so it should be up soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
mainandwidgetRef - #110