Lucas Bordeau
73268535dc
Added record filter hidden fields in query ( #18149 )
...
Fixes https://github.com/twentyhq/twenty/issues/17506
Hidden fields are now queried when they are in record filters, to avoid
optimistic and filtering bugs with hidden fields.
2026-03-06 16:33:09 +00:00
martmull
da064d5e88
Support define is tool logic function ( #17926 )
...
- supports isTool and timeout settings in defineLogicFunction in apps
and in setting tabs definition
- compute for all toolInputSchema for logic funciton, in settings and in
code steps
<img width="991" height="802" alt="image"
src="https://github.com/user-attachments/assets/05dc1221-cac9-45a3-87b0-3b13161446fd "
/>
2026-02-16 10:43:29 +01:00
Lucas Bordeau
04a370e043
Implemented SSE subscription mechanism on the frontend ( #17017 )
...
This PR is a follow-up of https://github.com/twentyhq/twenty/pull/16966
and implements a new mechanism to handle SSE events.
It creates only one event stream per browser tab, then use mutations to
tell the backend which query to listen to, without re-mounting the event
stream connexion.
Then each event that comes from this unique subscription is then
dispatched in a new JavaScript CustomEvent, per queryId, on which
specific hooks add an event listener.
This PR introduces the generic tooling as well as the handling of update
events on table.
2026-01-12 18:58:46 +01:00
Lucas Bordeau
e9b7ad21d2
Fix view picker small bugs ( #16987 )
...
This PR solves small bugs around the view picker.
- Couldn’t obtain optimistic update after a re-order of a view by drag
and drop, we needed to refresh the page
- Picking a new icon wouldn’t trigger optimistic update (same problem)
- Picking a new icon would change the view (difficult to understand
behavior)
- Picking a new icon would trigger left drawer collapse (z-index
problem)
Since core views are not being handled by object metadata items anymore,
and that all view logic is plugged on coreViewsState, this PR
implemented optimistic effect by upserting into this state.
Fixes https://github.com/twentyhq/twenty/issues/15422
Fixes https://github.com/twentyhq/twenty/issues/16986
# Before
https://github.com/user-attachments/assets/64099c21-df9f-4772-ab0d-9ea449aed761
# After
https://github.com/user-attachments/assets/f4e844b3-6530-4178-abdb-b7a10d2327b8
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2026-01-08 12:05:45 +01:00
Lucas Bordeau
061cc897af
Improve record group aggregate query performance ( #15828 )
...
This PR is a first step for improving the performance on boards and
table with groups.
It is related to :
https://github.com/twentyhq/core-team-issues/issues/1870
Here we implement only a groupBy query for aggregate values in the group
section.
This also allows to improve the DX of aggregate computing and group by
query creation and parsing.
## Demo
Main :
https://github.com/user-attachments/assets/5d2a8077-5322-4928-a551-f03583bcfb87
This PR :
https://github.com/user-attachments/assets/d0e82b28-72c3-40f0-b5cb-045f1a736ffb
## Aggregate update bug fix
This PR also solves a bug with aggregate update that was already present
on main.
The bug is linked to core views not being updated properly during a
modification of the aggregate operation on a view.
We should probably improve the view lifecycle and state management
because it is a bit too complex right now.
Main :
https://github.com/user-attachments/assets/10dbfb8b-dfa0-4f21-8698-d222871a43e7
This PR :
https://github.com/user-attachments/assets/bac41890-5191-4e4c-b82b-19b1039e9ab5
## Miscellaneous
- Fixed optimistic rendering of group by queries, when adding a new
record, the aggregate recomputes well.
## TODO
- We might want to improve the optimistic for group by queries that
don't have records nor more than one dimension.
2025-11-23 20:40:23 +01:00