Webhook wip (#6371)

This PR introduces the following changes:
- Add the ability to filter webhooks by objectSingularName and Actions
- Refactor SettingsWebhookDetails edition to not use react-hook-form
(which will be deprecated on the whole project)
- Updating the tests with a complex set of mock (we just need to fix ~30
of them now :D)

<img width="1053" alt="image"
src="https://github.com/user-attachments/assets/4e56d972-f129-4789-8d1c-4b5797a8ffd7">
This commit is contained in:
Charles Bochet
2024-08-05 23:14:29 +02:00
committed by GitHub
parent 48f4e41148
commit 8373dfdc26
10 changed files with 14156 additions and 12287 deletions

View File

@ -42,9 +42,7 @@ describe('getFieldPreviewValue', () => {
// Then
expect(result).toBe(2000);
expect(result).toBe(
getSettingsFieldTypeConfig(FieldMetadataType.Number)?.defaultValue,
);
expect(result).toBe(getSettingsFieldTypeConfig(FieldMetadataType.Number));
});
it('returns null if the field is supported in Settings but has no pre-configured placeholder defaultValue', () => {