feat: CommandMenuItem entity and FrontComponent support in command menu (#17555)

https://github.com/user-attachments/assets/6f172ffc-d43d-42fd-a26b-94f591fb767e
This commit is contained in:
Abdul Rahman
2026-01-30 22:05:06 +05:30
committed by GitHub
parent 6462ff6c5f
commit 51a2a90b0a
45 changed files with 899 additions and 34 deletions
@@ -18,6 +18,8 @@ export const useMatchingCommandMenuActions = ({
actionGlobalActions,
workflowRunRecordSelectionActions,
workflowRunGlobalActions,
frontComponentGlobalActions,
frontComponentRecordSelectionActions,
fallbackActions,
createRelatedRecordActions,
} = useCommandMenuActions();
@@ -41,6 +43,12 @@ export const useMatchingCommandMenuActions = ({
workflowRunGlobalActions,
);
const matchingFrontComponentGlobalActions =
filterActionsWithCommandMenuSearch(frontComponentGlobalActions);
const matchingFrontComponentRecordSelectionActions =
filterActionsWithCommandMenuSearch(frontComponentRecordSelectionActions);
const matchingCreateRelatedRecordActions = filterActionsWithCommandMenuSearch(
createRelatedRecordActions,
);
@@ -48,8 +56,10 @@ export const useMatchingCommandMenuActions = ({
const noResults =
!matchingStandardActionRecordSelectionActions.length &&
!matchingWorkflowRunRecordSelectionActions.length &&
!matchingFrontComponentRecordSelectionActions.length &&
!matchingStandardActionGlobalActions.length &&
!matchingWorkflowRunGlobalActions.length &&
!matchingFrontComponentGlobalActions.length &&
!matchingStandardActionObjectActions.length &&
!matchingNavigateActions.length &&
!matchingCreateRelatedRecordActions.length;
@@ -59,8 +69,10 @@ export const useMatchingCommandMenuActions = ({
matchingStandardActionRecordSelectionActions,
matchingStandardActionObjectActions,
matchingWorkflowRunRecordSelectionActions,
matchingFrontComponentRecordSelectionActions,
matchingStandardActionGlobalActions,
matchingWorkflowRunGlobalActions,
matchingFrontComponentGlobalActions,
matchingNavigateActions,
matchingCreateRelatedRecordActions,
fallbackActions: noResults ? fallbackActions : [],