Serverless function UI (#6388)
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=36235-120877 Did not do the file manager part. A Function is defined using one unique file at the moment Feature protected by featureFlag `IS_FUNCTION_SETTINGS_ENABLED` ## Demo https://github.com/user-attachments/assets/0acb8291-47b4-4521-a6fa-a88b9198609b
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const settingsServerlessFunctionCodeEditorOutputParamsState =
|
||||
createState<{ language: string; height: number }>({
|
||||
key: 'settingsServerlessFunctionCodeEditorOutputParamsState',
|
||||
defaultValue: { language: 'plaintext', height: 64 },
|
||||
});
|
||||
@ -0,0 +1,6 @@
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const settingsServerlessFunctionInputState = createState<string>({
|
||||
key: 'settingsServerlessFunctionInputState',
|
||||
defaultValue: '{}',
|
||||
});
|
||||
@ -0,0 +1,6 @@
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const settingsServerlessFunctionOutputState = createState<string>({
|
||||
key: 'settingsServerlessFunctionOutputState',
|
||||
defaultValue: 'Enter an input above then press "run Function"',
|
||||
});
|
||||
Reference in New Issue
Block a user