[COMMAND MENU ITEMS] Remove deprecated code (#19199)
This PR is the first one of a cleanup after upgrading command menu items to V2.
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
import {
|
||||
CommandMenuItemAvailabilityType,
|
||||
type CommandMenuItemFieldsFragment,
|
||||
EngineComponentKey,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
export const mockedBackendCommandMenuItems: CommandMenuItemFieldsFragment[] = [
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-go-to-people',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.GO_TO_PEOPLE,
|
||||
label: 'Go to People',
|
||||
icon: 'IconUser',
|
||||
shortLabel: 'People',
|
||||
position: 23,
|
||||
isPinned: false,
|
||||
hotKeys: ['G', 'P'],
|
||||
conditionalAvailabilityExpression: 'targetObjectReadPermissions.person',
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-go-to-opportunities',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.GO_TO_OPPORTUNITIES,
|
||||
label: 'Go to Opportunities',
|
||||
icon: 'IconTargetArrow',
|
||||
shortLabel: 'Opportunities',
|
||||
position: 26,
|
||||
isPinned: false,
|
||||
hotKeys: ['G', 'O'],
|
||||
conditionalAvailabilityExpression:
|
||||
'targetObjectReadPermissions.opportunity',
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-go-to-settings',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.GO_TO_SETTINGS,
|
||||
label: 'Go to Settings',
|
||||
icon: 'IconSettings',
|
||||
shortLabel: 'Settings',
|
||||
position: 27,
|
||||
isPinned: false,
|
||||
hotKeys: ['G', 'S'],
|
||||
conditionalAvailabilityExpression: null,
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-go-to-tasks',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.GO_TO_TASKS,
|
||||
label: 'Go to Tasks',
|
||||
icon: 'IconCheckbox',
|
||||
shortLabel: 'Tasks',
|
||||
position: 28,
|
||||
isPinned: false,
|
||||
hotKeys: ['G', 'T'],
|
||||
conditionalAvailabilityExpression: 'targetObjectReadPermissions.task',
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-go-to-notes',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.GO_TO_NOTES,
|
||||
label: 'Go to Notes',
|
||||
icon: 'IconCheckbox',
|
||||
shortLabel: 'Notes',
|
||||
position: 29,
|
||||
isPinned: false,
|
||||
hotKeys: ['G', 'N'],
|
||||
conditionalAvailabilityExpression: 'targetObjectReadPermissions.note',
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-search-records',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.SEARCH_RECORDS,
|
||||
label: 'Search ${capitalize(objectMetadataItem.labelPlural)}',
|
||||
icon: 'IconSearch',
|
||||
shortLabel: 'Search',
|
||||
position: 60,
|
||||
isPinned: false,
|
||||
hotKeys: ['/'],
|
||||
conditionalAvailabilityExpression: null,
|
||||
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
{
|
||||
__typename: 'CommandMenuItem',
|
||||
id: 'mock-search-records-fallback',
|
||||
workflowVersionId: null,
|
||||
frontComponentId: null,
|
||||
frontComponent: null,
|
||||
engineComponentKey: EngineComponentKey.SEARCH_RECORDS_FALLBACK,
|
||||
label: 'Search ${capitalize(objectMetadataItem.labelPlural)}',
|
||||
icon: 'IconSearch',
|
||||
shortLabel: 'Search',
|
||||
position: 61,
|
||||
isPinned: false,
|
||||
hotKeys: ['/'],
|
||||
conditionalAvailabilityExpression: null,
|
||||
availabilityType: CommandMenuItemAvailabilityType.FALLBACK,
|
||||
availabilityObjectMetadataId: null,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user