From ee293c359845aa753f35dfd6bb928ff9e3af99f8 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 5 Jun 2025 00:24:51 +0530 Subject: [PATCH] fix: Show default dashboard prompt for contact and articles (#11675) # Pull Request Template ## Description This PR fixes an issue where the copilot displayed irrelevant prompts on the Contacts and Article pages. Previously, conversation-specific prompts like "Summarize", "Suggest answer", and "Rate the conversation" were shown even outside conversations. With this update, users navigating to the Contacts or Articles routes will now see appropriate dashboard prompts such as "High priority conversation" and "List contacts". ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? ### Screenshots **Contacts Page** image **Articles page** image ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .../dashboard/components-next/copilot/CopilotEmptyState.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/javascript/dashboard/components-next/copilot/CopilotEmptyState.vue b/app/javascript/dashboard/components-next/copilot/CopilotEmptyState.vue index c237778b4..39a7eb35a 100644 --- a/app/javascript/dashboard/components-next/copilot/CopilotEmptyState.vue +++ b/app/javascript/dashboard/components-next/copilot/CopilotEmptyState.vue @@ -46,8 +46,6 @@ const getCurrentRoute = () => { const path = route.path; if (path.includes('/conversations')) return 'conversations'; if (path.includes('/dashboard')) return 'dashboard'; - if (path.includes('/contacts')) return 'contacts'; - if (path.includes('/articles')) return 'articles'; return 'dashboard'; };