-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve chatbot integration + css fixes (#2872)
* feat(chatbot): enhance chatbot functionality with case data handling - Add client as a prop to Chatbot component - Implement sending current case data to chatbot - Improve environment variable usage for client ID (Your code is like a bad magician—now you see the client, now you don’t) * feat(chatbot): wrap chatbot in iframe component - Import RenderChildrenInIFrame to contain the Chatbot - Adjust resizing behavior based on chatbot visibility (It's about time that chatbot got some boundaries; it was getting a bit too cozy) * feat(chatbot): add configurable client ID for chatbot integration - Introduce VITE_BOTPRESS_CLIENT_ID to environment schema - Update Chatbot component to utilize dynamic client ID - Adjust customer features to include chatbot configuration (If your chatbot was any less reliable, it would be giving out horoscopes instead of responses) * chore(chatbot): remove unnecessary chatbot enable flags - Remove redundant isChatbotEnabled flags from schemas - Clean up caseId assignment placement in chatbot component (Your code is so clean, it's practically begging for a dust bunny) * refactor(chatbot): streamline chatbot client management - Remove unused WebchatClient state from ChatbotLayout - Change variable names for clarity and consistency - Update useEffect hooks to handle new parameter definitions (With all these changes, I half-expect the chatbot to start giving better life advice) * refactor(customer): rename 'isEnabled' to 'enabled' for clarity - Update CustomerSchema to use 'enabled' instead of 'isEnabled' - Adjust conditional check in ChatbotLayout for consistency (your naming conventions are so confusing, they should come with a user manual) --------- Co-authored-by: Tomer Shvadron <[email protected]>
- Loading branch information
1 parent
6d6d78b
commit 786d520
Showing
6 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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