5ba3c09b14
[CHORE] Prepare twenty-serverfor twenty-shared multi barrel refactor ( #11022 )
...
# Introduction
While running https://github.com/twentyhq/twenty/pull/10960 scripts
discovers few issues:
- Invalid named folder `pre-hooks.ts`
- Mock consuming outbound imported module resulting in consumed before
initialization
2025-03-19 11:26:42 +00:00
0ce91d84c1
Allow to add and delete fields ( #10990 )
...
- Allow to add a new field
- On field click, display a delete button
- Use id instead of names for fields
https://github.com/user-attachments/assets/4ebffe22-225a-4bae-aa49-99e66170181a
2025-03-18 17:24:52 +01:00
f4a362b53a
Add base form action without logic ( #10811 )
...
<img width="1298" alt="Capture d’écran 2025-03-12 à 15 32 27"
src="https://github.com/user-attachments/assets/8a3140e5-e165-445e-a718-748aa76b525c "
/>
2025-03-12 17:05:31 +00:00
d151b1329c
Generate fake form from metadata ( #10641 )
...
- add name to form field metadata
- extract field generation from object record schema
- use field generation to generate field from metadata
- add tests
2025-03-04 13:25:29 +01:00
a29c26c8d7
Add submit form step endpoint ( #10538 )
...
- add endpoint to submit form step
- update context and output of workflow run
- resume workflow execution
2025-02-28 10:03:45 +01:00
83930551d8
Move workflow versions and steps building to workflow-builder folder ( #10523 )
...
We are starting to put too many services in common folder. Version and
step building should be separated into different services and go to the
builder folder. Today builder folder only manage schema.
We should:
- keep services responsible for only one action
- keep modules based on the actual action these provide rather than
having common module
This PR:
- creates a service for workflow version builder
- moves version and step builders to workflow builder folder rather than
commun
- creates separated folders for schema, version and steps
No logic has been added. Only modules created and functions moved.
2025-02-27 10:39:48 +01:00
6da9976193
Fix readonly in some steps ( #10121 )
...
- readonly in titles
- readonly in code step
- update a few icons
- update event label
2025-02-11 14:22:18 +00:00
ead626c2ec
360 workflow implement workflow cron triggers frontend 2 ( #10051 )
...
as title, closes https://github.com/twentyhq/core-team-issues/issues/360
## Cron Setting behavior
https://github.com/user-attachments/assets/0de3a8b9-d899-4455-a945-20c7541c3053
## Cron running behavior
https://github.com/user-attachments/assets/4c33f167-857c-4fcb-9dbe-0f9b661c9e61
2025-02-07 17:15:03 +01:00
7fd89678b7
[CHORE] Avoid isDefined duplicated reference, move it to twenty-shared ( #9967 )
...
# Introduction
Avoid having multiple `isDefined` definition across our pacakges
Also avoid importing `isDefined` from `twenty-ui` which exposes a huge
barrel for a such little util function
## In a nutshell
Removed own `isDefined.ts` definition from `twenty-ui` `twenty-front`
and `twenty-server` to move it to `twenty-shared`.
Updated imports for each packages, and added explicit dependencies to
`twenty-shared` if not already in place
Related PR https://github.com/twentyhq/twenty/pull/9941
2025-02-01 12:10:10 +01:00
afed36ef5b
Remove before-after + fix header label ( #9932 )
...
- Fix header label on step
Before
<img width="224" alt="Capture d’écran 2025-01-30 à 12 11 27"
src="https://github.com/user-attachments/assets/e04e2d83-2414-4a92-a307-159e1ca16c64 "
/> <img width="224" alt="Capture d’écran 2025-01-30 à 13 27 40"
src="https://github.com/user-attachments/assets/72e2c567-7ee0-43ff-9ae2-898e46d677c1 "
/>
After
<img width="224" alt="Capture d’écran 2025-01-30 à 13 29 00"
src="https://github.com/user-attachments/assets/e7e458ab-458d-4e84-98a2-63596f44e0e7 "
/> <img width="224" alt="Capture d’écran 2025-01-30 à 13 29 25"
src="https://github.com/user-attachments/assets/df1b0cbd-c8f2-44f6-b2f6-944e5ec8e14f "
/>
- Remove before - after when there is only one of them
2025-01-30 16:19:47 +00:00
07dec36976
Tt fast follows 24/01 ( #9843 )
...
- Add icons on steps
- Add search input on object selection
- Improve event label
<img width="503" alt="Capture d’écran 2025-01-24 à 17 59 34"
src="https://github.com/user-attachments/assets/4e5d31d6-6fe5-4f78-9112-3fbd6ee66743 "
/>
<img width="503" alt="Capture d’écran 2025-01-24 à 17 59 54"
src="https://github.com/user-attachments/assets/7f37402f-3d1a-4bea-9082-05f50a711f35 "
/>
<img width="503" alt="Capture d’écran 2025-01-24 à 18 00 08"
src="https://github.com/user-attachments/assets/fffabaff-9d5d-4584-9297-e21434333de0 "
/>
2025-01-24 17:25:01 +00:00
29df6e64a0
Fix icon matching + small other fixes on workflows ( #9814 )
...
- Record Fields label
- body height fix
- Icons on object picker
- Fix icon matching between nodes and right drawer
<img width="1296" alt="Capture d’écran 2025-01-23 à 18 51 12"
src="https://github.com/user-attachments/assets/ecd5fb00-49cd-416e-96af-9200418294e0 "
/>
2025-01-24 15:47:09 +01:00
e893c4dcce
Workflow fast follows batch ( #9587 )
...
- Add icon chevron on select
- Fix event step label
- Fix generate function output
2025-01-13 18:31:15 +01:00
92c119ed43
Add suggested values for variable dropdown ( #9437 )
...
<img width="378" alt="Capture d’écran 2025-01-07 à 15 37 20"
src="https://github.com/user-attachments/assets/c15abcac-684a-4c3b-ad12-62cf91afe927 "
/>
Here is a first version:
- simple fields have a suggested value
- composite do not, but sub values of composite do
- json, arrays or complex values do not
2025-01-10 16:18:37 +01:00
71a4593ba4
Move FieldMetadataType to twenty-shared ( #9482 )
...
Co-authored-by: Charles Bochet <charles@twenty.com >
2025-01-09 18:43:30 +01:00
5dfcc413cf
9024 workflow test serverless function follow up ( #9066 )
...
- Fix Tablist style
- Fix dropdown style (wrong grey background)
- Update dropdown variable when no outputSchema is available
https://github.com/user-attachments/assets/56698fe8-8dd3-404a-b2b2-f1eca6f5fa28
2024-12-17 10:35:38 +01:00
b10d831371
8726 workflow add a test button in workflow code step ( #9016 )
...
- add test button to workflow code step
- add test tab to workflow code step
https://github.com/user-attachments/assets/e180a827-7321-49a2-8026-88490c557da2


2024-12-13 10:16:29 +00:00
e1a0259154
Split record crud actions ( #8930 )
...
Having a global record crud action adds complex logic.
We decided to split those actions. I only kept a common folder / module
in backend.
⚠️ this may break existing workflows if these were using previous
actions!
2024-12-06 16:58:57 +01:00
455e548bea
8839 workflow follow up code step ( #8856 )
...
- add readonly mode
- fix falsy stepOutput computation
2024-12-05 13:26:28 +00:00
36e4357bb1
Select full record in variable dropdown ( #8851 )
...
Output schema is now separated in two sections:
- object, that gather all informations on the selectable object
- fields, that display object fields in a record context, or simply the
available fields from the previous steps
The dropdown variable has now a new mode:
- if objectNameSingularToSelect is defined, it goes into an object mode.
Only objects of the right type will be shown
- if not set, it will use the already existing mode, to select a field
When an object is selected, it actually set the id of the object
https://github.com/user-attachments/assets/1c95f8fd-10f0-4c1c-aeb7-c7d847e89536
2024-12-05 09:48:34 +00:00
9b2853bb01
Fix variable dropdown ( #8521 )
...
- fixed dropdown width
- add icons
- handle composite fields
## After



2024-11-15 18:08:03 +00:00
a2a272fed4
Add crud actions ( #8500 )
...
Adding update / delete / find actions
Update and delete are not really different than creation.
Find uses the same logique as for graphql filters.
Expected formats are:
Filter
```
{
"and": [
{
"name": {
"eq": "salut"
}
},
{
"employees": {
"eq": "0"
}
}
]
}
```
Order
`[ { "name": 'AscNullsFirst' } ]`
2024-11-15 10:10:00 +01:00
a799370483
Aggregated queries #1 ( #8345 )
...
First step of https://github.com/twentyhq/twenty/issues/6868
Adds min.., max.. queries for DATETIME fields
adds min.., max.., avg.., sum.. queries for NUMBER fields
(count distinct operation and composite fields such as CURRENCY handling
will be dealt with in a future PR)
<img width="1422" alt="Capture d’écran 2024-11-06 à 15 48 46"
src="https://github.com/user-attachments/assets/4bcdece0-ad3e-4536-9720-fe4044a36719 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: Weiko <corentin@twenty.com >
2024-11-14 18:05:05 +01:00
faeea2b887
Create record action ( #8460 )
...
- Add create record action
- Migrate all step name => action in a common folder
- Separate types
2024-11-13 15:21:40 +01:00
354ee86cb9
8311 serverless function functions can be executed with any input ( #8380 )
...
- remove ts-morph
- update inputSchema shape

https://github.com/user-attachments/assets/913cd305-9e7c-48da-b20f-c974a8ac7cea
## TODO
- have inputTypes to match the inputSchema type (string, number,
boolean, etc...), only string for now
- handle required/optional inputs
- handle case when inputSchema changes, fix data reset when switching
function
2024-11-08 16:15:27 +00:00
117e502e80
Clean available fields in variable dropdown ( #8371 )
...
As title
We do not want relations yet in picker
2024-11-06 16:54:23 +01:00
be8141ce5e
Infer function input in workflow step ( #8308 )
...
- add `inputSchema` column in serverless function. This is an array of
parameters, with their name and type
- on serverless function id update, get the `inputSchema` + store empty
settings in step
- from step settings, build the form
TODO in next PR:
- use field type to decide what kind of form should be printed
- have a strategy to handle object as input
https://github.com/user-attachments/assets/ed96f919-24b5-4baf-a051-31f76f45e575
2024-11-05 14:57:06 +01:00
695991881f
6071 return only updated fields of records in zapier update trigger ( #8193 )
...
- move webhook triggers into `entity-events-to-db.listener.ts`
- refactor event management
- add a `@OnDatabaseEvent` decorator to manage database events
- add updatedFields in updated events
- update openApi webhooks docs
- update zapier integration
2024-11-04 17:44:36 +01:00
409def8431
Fix manual trigger output schema ( #8150 )
...
- add schema for manual trigger
- split into sub functions
- handle case with no variables
2024-10-28 17:42:09 +00:00
1aa961dedf
101 featch available variables from previous steps ( #8062 )
...
- add outputSchema in workflow step settings
- use outputSchemas to compute step available variables
https://github.com/user-attachments/assets/6b851d8e-625c-49ff-b29c-074cd86cbfee
2024-10-28 11:25:29 +00:00