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:
martmull
2024-07-29 13:03:09 +02:00
committed by GitHub
parent 936279f895
commit 00fea17920
100 changed files with 2283 additions and 121 deletions
@@ -2,6 +2,7 @@ import { SettingsPath } from '@/types/SettingsPath';
import { isDefined } from '~/utils/isDefined';
type PathParams = {
id?: string;
objectSlug?: string;
};
@@ -15,5 +16,9 @@ export const getSettingsPagePath = <Path extends SettingsPath>(
resultPath = resultPath.replace(':objectSlug', params.objectSlug);
}
if (isDefined(params?.id)) {
resultPath = `${resultPath}/${params?.id}`;
}
return resultPath;
};