Add subscription for ask glific resposne#3886
Conversation
…ments - Updated AskMeBot component to include feedback buttons for user responses. - Added new chat functionality to reset the conversation. - Improved test cases for AskMeBot to cover new features. - Introduced a mock chat history for better user experience. - Refactored AskMeBot styles and layout for improved usability. - Added new SVG icon for AskMeBot branding. - Updated AssistantOptions and CreateAssistant components to reflect changes in vector store handling.
…onsistency and functionality
…into askglific/new-ui
…into askglific/new-ui
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis PR replaces the AskMeBot chat implementation with a new AskGlific system. The changes include removing the AskMeBot component, styles, and tests; adding a new AskGlific React container with CSS module and test suite; updating GraphQL mutations and subscriptions to support the new backend service; renaming organization service configuration flags from Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🚀 Deployed on https://deploy-preview-3886--glific-frontend.netlify.app |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 2 medium 1 minor |
| ErrorProne | 3 high |
🟢 Metrics 18 complexity
Metric Results Complexity 18
TIP This summary will be updated as you push new changes. Give us feedback
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ask-glific #3886 +/- ##
=============================================
Coverage ? 81.92%
=============================================
Files ? 313
Lines ? 13208
Branches ? 3064
=============================================
Hits ? 10820
Misses ? 1427
Partials ? 961 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced Ask Glific chat assistant with floating, sidebar, and fullscreen modes, chat history panel, and New Chat action; per-response feedback controls. * **Improvements** * Redesigned chat UI: welcome screen, suggestion cards, auto-resizing textarea, updated message styling, thinking/loading indicator, minimize/restore behavior, and improved history interactions. * **Tests** * Added/updated tests covering chat flows, suggestion-based sending, feedback controls, history, and display-mode behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
| <<<<<<< ask_glific/sse | ||
| import * as Apollo from '@apollo/client'; | ||
| import { ASK_GLIFIC } from 'graphql/mutations/AskGlific'; | ||
| ======= | ||
| import { ASK_GLIFIC, ASK_GLIFIC_FEEDBACK } from 'graphql/mutations/AskGlific'; | ||
| import { GET_ASK_GLIFIC_CONVERSATIONS, GET_ASK_GLIFIC_MESSAGES } from 'graphql/queries/AskGlific'; | ||
| >>>>>>> ask-glific |
issue: glific/glific#4950
Summary by CodeRabbit
Release Notes
New Features
Tests
Chores