Make upsert action body common with create record instead of update record (#15442)

We do not want the fields to update multiselect for upsert record
action. We want all available fields displayed by default.
This makes upsert record action closer to create record than update
record.

This PR: 
- deletes WorkflowUpdateRecordBody that was common between update and
upsert and put back content into update
- creates WorkflowCreateRecordBody that is now common between create and
upsert
- simplifies shouldDisplayFormField

Before - using fields to update as update record action
<img width="546" height="823" alt="Capture d’écran 2025-10-30 à 10 00
24"
src="https://github.com/user-attachments/assets/9206bc8b-75c2-40fa-a8de-e708b6b2cd05"
/>

After - displaying all fields as create record action
<img width="546" height="823" alt="Capture d’écran 2025-10-30 à 10 00
04"
src="https://github.com/user-attachments/assets/87141a47-946f-4604-be55-f4c21ff4a3d8"
/>
This commit is contained in:
Thomas Trompette
2025-10-30 13:36:16 +01:00
committed by GitHub
parent 8edb2c5520
commit a82b74c1ff
12 changed files with 526 additions and 545 deletions
@@ -95,10 +95,13 @@ export const WorkflowEditTriggerWebhookForm = ({
return;
}
triggerOptions.onTriggerUpdate({
...trigger,
name: newName,
});
triggerOptions.onTriggerUpdate(
{
...trigger,
name: newName,
},
{ computeOutputSchema: false },
);
}}
Icon={getIcon(headerIcon)}
iconColor={getTriggerIconColor({ theme, triggerType: trigger.type })}