Add Create related records to Record standard actions (#13095)

#12924 Add Create related records to Record standard actions
- add the "Create related records" option to the standard Record actions
in the command menu.
- apply to one-to-many relations.
- command should open a side panel with an empty record for the selected
object.

<img width="518" alt="Screenshot"
src="https://github.com/user-attachments/assets/0388aaf9-b974-4ae1-85bf-2966d89cbbec"
/>

---------

Co-authored-by: Raphaël Bosi <71827178+bosiraphael@users.noreply.github.com>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
Jeremy Lim
2025-07-18 21:17:29 +08:00
committed by GitHub
parent 6e5487ed76
commit 56812cce53
21 changed files with 547 additions and 40 deletions
@@ -32,6 +32,7 @@ export const CommandMenu = () => {
matchingWorkflowRunGlobalActions,
matchingNavigateActions,
fallbackActions,
matchingCreateRelatedRecordActions,
} = useMatchingCommandMenuActions({
commandMenuSearch,
});
@@ -56,6 +57,10 @@ export const CommandMenu = () => {
matchingWorkflowRunRecordSelectionActions,
),
},
{
heading: t`Create Related Record`,
items: matchingCreateRelatedRecordActions,
},
{
heading: currentObjectMetadataItem?.labelPlural ?? t`Object`,
items: matchingStandardActionObjectActions,