8b345c9fd2
- Update step endpoint now supports the case where node type is updated - Added a new page for edition that re-uses the existing select action component Additional work: - moved submitForm function to workflow runner service https://github.com/user-attachments/assets/1fcb0adc-fe17-41f9-b2ea-4f84318db860
56 lines
3.7 KiB
TypeScript
56 lines
3.7 KiB
TypeScript
import { CommandMenu } from '@/command-menu/components/CommandMenu';
|
|
import { CommandMenuAIChatThreadsPage } from '@/command-menu/pages/AIChatThreads/components/CommandMenuAIChatThreadsPage';
|
|
import { CommandMenuAskAIPage } from '@/command-menu/pages/ask-ai/components/CommandMenuAskAIPage';
|
|
import { CommandMenuCalendarEventPage } from '@/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage';
|
|
import { CommandMenuMessageThreadPage } from '@/command-menu/pages/message-thread/components/CommandMenuMessageThreadPage';
|
|
import { CommandMenuPageLayoutGraphTypeSelect } from '@/command-menu/pages/page-layout/components/CommandMenuPageLayoutGraphTypeSelect';
|
|
import { CommandMenuPageLayoutIframeConfig } from '@/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeConfig';
|
|
import { CommandMenuPageLayoutWidgetTypeSelect } from '@/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect';
|
|
import { CommandMenuMergeRecordPage } from '@/command-menu/pages/record-page/components/CommandMenuMergeRecordPage';
|
|
import { CommandMenuRecordPage } from '@/command-menu/pages/record-page/components/CommandMenuRecordPage';
|
|
import { CommandMenuEditRichTextPage } from '@/command-menu/pages/rich-text-page/components/CommandMenuEditRichTextPage';
|
|
import { CommandMenuSearchRecordsPage } from '@/command-menu/pages/search/components/CommandMenuSearchRecordsPage';
|
|
import { CommandMenuWorkflowCreateStep } from '@/command-menu/pages/workflow/step/create/components/CommandMenuWorkflowCreateStep';
|
|
import { CommandMenuWorkflowEditStep } from '@/command-menu/pages/workflow/step/edit/components/CommandMenuWorkflowEditStep';
|
|
import { CommandMenuWorkflowEditStepType } from '@/command-menu/pages/workflow/step/edit/components/CommandMenuWorkflowEditStepType';
|
|
import { CommandMenuWorkflowRunViewStep } from '@/command-menu/pages/workflow/step/view-run/components/CommandMenuWorkflowRunViewStep';
|
|
import { CommandMenuWorkflowViewStep } from '@/command-menu/pages/workflow/step/view/components/CommandMenuWorkflowViewStep';
|
|
import { CommandMenuWorkflowSelectTriggerType } from '@/command-menu/pages/workflow/trigger-type/components/CommandMenuWorkflowSelectTriggerType';
|
|
import { CommandMenuPages } from '@/command-menu/types/CommandMenuPages';
|
|
|
|
export const COMMAND_MENU_PAGES_CONFIG = new Map<
|
|
CommandMenuPages,
|
|
React.ReactNode
|
|
>([
|
|
[CommandMenuPages.Root, <CommandMenu />],
|
|
[CommandMenuPages.ViewRecord, <CommandMenuRecordPage />],
|
|
[CommandMenuPages.MergeRecords, <CommandMenuMergeRecordPage />],
|
|
[CommandMenuPages.ViewEmailThread, <CommandMenuMessageThreadPage />],
|
|
[CommandMenuPages.ViewCalendarEvent, <CommandMenuCalendarEventPage />],
|
|
[CommandMenuPages.EditRichText, <CommandMenuEditRichTextPage />],
|
|
[
|
|
CommandMenuPages.WorkflowStepSelectTriggerType,
|
|
<CommandMenuWorkflowSelectTriggerType />,
|
|
],
|
|
[CommandMenuPages.WorkflowStepCreate, <CommandMenuWorkflowCreateStep />],
|
|
[CommandMenuPages.WorkflowStepEditType, <CommandMenuWorkflowEditStepType />],
|
|
[CommandMenuPages.WorkflowStepEdit, <CommandMenuWorkflowEditStep />],
|
|
[CommandMenuPages.WorkflowStepView, <CommandMenuWorkflowViewStep />],
|
|
[CommandMenuPages.WorkflowRunStepView, <CommandMenuWorkflowRunViewStep />],
|
|
[CommandMenuPages.SearchRecords, <CommandMenuSearchRecordsPage />],
|
|
[CommandMenuPages.AskAI, <CommandMenuAskAIPage />],
|
|
[CommandMenuPages.ViewPreviousAIChats, <CommandMenuAIChatThreadsPage />],
|
|
[
|
|
CommandMenuPages.PageLayoutWidgetTypeSelect,
|
|
<CommandMenuPageLayoutWidgetTypeSelect />,
|
|
],
|
|
[
|
|
CommandMenuPages.PageLayoutGraphTypeSelect,
|
|
<CommandMenuPageLayoutGraphTypeSelect />,
|
|
],
|
|
[
|
|
CommandMenuPages.PageLayoutIframeConfig,
|
|
<CommandMenuPageLayoutIframeConfig />,
|
|
],
|
|
]);
|