The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Migrate copilot to command menu (#9522)
Raphaël Bosi739611afa8c3
diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuPages.ts b/packages/twenty-front/src/modules/command-menu/components/CommandMenuPages.tsindex b06286450b6..7959680de27 100644--- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuPages.ts+++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuPages.ts@@ -3,6 +3,7 @@ export enum CommandMenuPages {ViewRecord = 'view-record',ViewEmailThread = 'view-email-thread',ViewCalendarEvent = 'view-calendar-event',+ Copilot = 'copilot',WorkflowStepSelectTriggerType = 'workflow-step-select-trigger-type',WorkflowStepSelectAction = 'workflow-step-select-action',WorkflowStepView = 'workflow-step-view',diff --git a/packages/twenty-front/src/modules/command-menu/constants/CommandMenuPagesConfig.tsx b/packages/twenty-front/src/modules/command-menu/constants/CommandMenuPagesConfig.tsxindex dc1ac1f4f52..dbb14d854bb 100644--- a/packages/twenty-front/src/modules/command-menu/constants/CommandMenuPagesConfig.tsx+++ b/packages/twenty-front/src/modules/command-menu/constants/CommandMenuPagesConfig.tsx@@ -1,4 +1,5 @@import { RightDrawerCalendarEvent } from '@/activities/calendar/right-drawer/components/RightDrawerCalendarEvent';+import { RightDrawerAIChat } from '@/activities/copilot/right-drawer/components/RightDrawerAIChat';import { RightDrawerEmailThread } from '@/activities/emails/right-drawer/components/RightDrawerEmailThread';import { CommandMenu } from '@/command-menu/components/CommandMenu';import { CommandMenuPages } from '@/command-menu/components/CommandMenuPages';@@ -16,6 +17,7 @@ export const COMMAND_MENU_PAGES_CONFIG = new Map<[CommandMenuPages.ViewRecord, <RightDrawerRecord />],[CommandMenuPages.ViewEmailThread, <RightDrawerEmailThread />],[CommandMenuPages.ViewCalendarEvent, <RightDrawerCalendarEvent />],+ [CommandMenuPages.Copilot, <RightDrawerAIChat />],[CommandMenuPages.WorkflowStepSelectTriggerType,<RightDrawerWorkflowSelectTriggerType />,diff --git a/packages/twenty-front/src/modules/ui/layout/right-drawer/utils/mapRightDrawerPageToCommandMenuPage.ts b/packages/twenty-front/src/modules/ui/layout/right-drawer/utils/mapRightDrawerPageToCommandMenuPage.tsindex 76532961ceb..c5e56420c2e 100644--- a/packages/twenty-front/src/modules/ui/layout/right-drawer/utils/mapRightDrawerPageToCommandMenuPage.ts+++ b/packages/twenty-front/src/modules/ui/layout/right-drawer/utils/mapRightDrawerPageToCommandMenuPage.ts@@ -11,6 +11,8 @@ export const mapRightDrawerPageToCommandMenuPage = (return CommandMenuPages.ViewEmailThread;case RightDrawerPages.ViewCalendarEvent:return CommandMenuPages.ViewCalendarEvent;+ case RightDrawerPages.Copilot:+ return CommandMenuPages.Copilot;case RightDrawerPages.WorkflowStepSelectTriggerType:return CommandMenuPages.WorkflowStepSelectTriggerType;case RightDrawerPages.WorkflowStepSelectAction: