The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
598 remove favorites actions from pinned actions on workflows and add see runs (#10946)
Raphaël Bosi428499e222ae
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.ts b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.tsindex b25010e6227..8eb1d76f755 100644--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.ts+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.ts@@ -130,7 +130,7 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<key: WorkflowSingleRecordActionKeys.SEE_RUNS,label: msg`See runs`,shortLabel: msg`See runs`,- isPinned: false,+ isPinned: true,position: 5,Icon: IconHistoryToggle,type: ActionMenuEntryType.Standard,@@ -198,7 +198,7 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<label: msg`Add to favorites`,shortLabel: msg`Add to favorites`,position: 10,- isPinned: true,+ isPinned: false,Icon: IconHeart,availableOn: [ActionViewType.INDEX_PAGE_SINGLE_RECORD_SELECTION,@@ -212,7 +212,7 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,label: msg`Remove from favorites`,shortLabel: msg`Remove from favorites`,- isPinned: true,+ isPinned: false,position: 11,Icon: IconHeartOff,availableOn: [diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.ts b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.tsindex 782b5e5940c..410559e7196 100644--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.ts+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.ts@@ -32,12 +32,12 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<> = {addToFavoritesSingleRecord: {type: ActionMenuEntryType.Standard,- scope: ActionMenuEntryScope.Object,+ scope: ActionMenuEntryScope.RecordSelection,key: SingleRecordActionKeys.ADD_TO_FAVORITES,label: msg`Add to favorites`,shortLabel: msg`Add to favorites`,position: 0,- isPinned: true,+ isPinned: false,Icon: IconHeart,availableOn: [ActionViewType.INDEX_PAGE_SINGLE_RECORD_SELECTION,@@ -51,7 +51,7 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,label: msg`Remove from favorites`,shortLabel: msg`Remove from favorites`,- isPinned: true,+ isPinned: false,position: 1,Icon: IconHeartOff,availableOn: [@@ -82,13 +82,29 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<availableOn: [ActionViewType.SHOW_PAGE],useAction: useNavigateToNextRecordSingleRecordAction,},+ exportSingleRecord: {+ type: ActionMenuEntryType.Standard,+ scope: ActionMenuEntryScope.RecordSelection,+ key: SingleRecordActionKeys.EXPORT,+ label: msg`Export run`,+ shortLabel: msg`Export`,+ position: 4,+ Icon: IconDatabaseExport,+ accent: 'default',+ isPinned: false,+ availableOn: [+ ActionViewType.SHOW_PAGE,+ ActionViewType.INDEX_PAGE_SINGLE_RECORD_SELECTION,+ ],+ useAction: useExportMultipleRecordsAction,+ },exportMultipleRecords: {type: ActionMenuEntryType.Standard,scope: ActionMenuEntryScope.RecordSelection,key: MultipleRecordsActionKeys.EXPORT,label: msg`Export runs`,shortLabel: msg`Export`,- position: 4,+ position: 5,Icon: IconDatabaseExport,accent: 'default',isPinned: false,@@ -101,7 +117,7 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<key: NoSelectionRecordActionKeys.EXPORT_VIEW,label: msg`Export view`,shortLabel: msg`Export`,- position: 5,+ position: 6,Icon: IconDatabaseExport,accent: 'default',isPinned: false,@@ -114,7 +130,7 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<key: NoSelectionRecordActionKeys.SEE_DELETED_RECORDS,label: msg`See deleted runs`,shortLabel: msg`Deleted runs`,- position: 6,+ position: 7,Icon: IconRotate2,accent: 'default',isPinned: false,diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowVersionsActionsConfig.ts b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowVersionsActionsConfig.tsindex 79ec73894fa..ed40e859cd3 100644--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowVersionsActionsConfig.ts+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/WorkflowVersionsActionsConfig.ts@@ -130,13 +130,29 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<],useAction: useRemoveFromFavoritesSingleRecordAction,},+ exportSingleRecord: {+ type: ActionMenuEntryType.Standard,+ scope: ActionMenuEntryScope.RecordSelection,+ key: SingleRecordActionKeys.EXPORT,+ label: msg`Export version`,+ shortLabel: msg`Export`,+ position: 8,+ Icon: IconDatabaseExport,+ accent: 'default',+ isPinned: false,+ availableOn: [+ ActionViewType.SHOW_PAGE,+ ActionViewType.INDEX_PAGE_SINGLE_RECORD_SELECTION,+ ],+ useAction: useExportMultipleRecordsAction,+ },exportMultipleRecords: {type: ActionMenuEntryType.Standard,scope: ActionMenuEntryScope.RecordSelection,key: MultipleRecordsActionKeys.EXPORT,label: msg`Export versions`,shortLabel: msg`Export`,- position: 8,+ position: 9,Icon: IconDatabaseExport,accent: 'default',isPinned: false,@@ -149,7 +165,7 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<key: NoSelectionRecordActionKeys.EXPORT_VIEW,label: msg`Export view`,shortLabel: msg`Export`,- position: 9,+ position: 10,Icon: IconDatabaseExport,accent: 'default',isPinned: false,@@ -162,7 +178,7 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<key: NoSelectionRecordActionKeys.SEE_DELETED_RECORDS,label: msg`See deleted versions`,shortLabel: msg`Deleted versions`,- position: 10,+ position: 11,Icon: IconRotate2,accent: 'default',isPinned: false,