github twentyhq/twenty sdk/v2.68.0

27 minutes ago

Formula fields gain first() and last() aggregates. Pass a relation field and an optional condition to get the value from the oldest or newest matching related record. Null and empty values are skipped automatically. Order follows join(): createdAt then id.

App manifests can now fully specify row-level permission predicates. New workspaceMemberRelation and workspaceMemberRelationFilter properties on predicate objects complete what the metadata API already accepted. App sync also stops exporting private views, workflows, and agents from the manifest.

workspace.accentColor and workspace.uiScale are now unconditionally available. The IS_WORKSPACE_APPEARANCE_ENABLED flag from 2.67 has been removed. The GraphQL schema is unchanged — remove any flag checks in your code.

🌟 Highlights

  • New first(relation.field, condition?) and last(relation.field, condition?) formula aggregates return the value from the oldest or newest related record matching an optional condition. (#32362)
  • App manifests now accept workspaceMemberRelation and workspaceMemberRelationFilter on rowLevelRecordPermissions predicates, completing what the metadata API already supported at runtime. (#32443)
  • workspace.accentColor and workspace.uiScale are always available now — the IS_WORKSPACE_APPEARANCE_ENABLED flag is removed; drop any guard checks in your code. (#32415)
  • App sync no longer includes private views, workflows, or agents in the manifest; predicates and nav items referencing private metadata are pruned automatically. (#32045)
  • Dashboard layouts expose a filters field on PageLayout for reading and writing widget filter bindings; pass an empty array to clear all bindings. (#32230)

✨ New features

  • A new pendingPermissions field appears on grant objects when IS_APPLICATION_GRANT_APPROVAL_ENABLED is on; upgrading a marketplace app creates a pending grant instead of copying the role immediately. (#32119) by @prastoin
  • Dashboard layouts gain a filters field on PageLayout for saving and loading widget-to-field filter bindings; pass an empty array to clear saved bindings. (#32230) by @ehconitin
  • BillingSubscriptionItem gains an applicationConnectedAccountOwners field listing each workspace member who connected an account plus their count; the field is null unless the item's price type is CONNECTED_ACCOUNT. (#32359) by @martmull
  • first(relation.field, condition?) and last(relation.field, condition?) are now valid stored-formula aggregates; null and empty values are skipped and ordering follows createdAt then id. (#32362) by @FelixMalfait
  • App manifests now support workspaceMemberRelation and workspaceMemberRelationFilter on rowLevelRecordPermissions predicate objects, letting apps declare the full relation path the server already accepted at runtime. (#32443) by @charlesBochet

💅 Improvements & UX

  • Sidebar home tab is now customizable like any other tab; no SDK export changes. (#32282) by @Bonapara
  • AvatarGroup in twenty-ui gains an overflowSize prop to control the size of the +N overflow circle. (#32318) by @Bonapara
  • workspace.accentColor and workspace.uiScale are now always available; the IS_WORKSPACE_APPEARANCE_ENABLED flag is gone — remove any guard checks in code that reads these fields. (#32415) by @thomtrp

🐛 Bug fixes

  • App sync and export now exclude private views, workflows, and agents from the manifest; nav items and predicates referencing private metadata are also pruned — manifests no longer leak member-specific state. (#32045) by @Weiko

⚡ Performance

  • Views are now fetched per object on demand rather than all at once; no SDK API changes required. (#31744) by @Weiko
Full changelog (11 PRs)

Full Changelog: sdk/v2.67.0...sdk/v2.68.0

Don't miss a new twenty release

NewReleases is sending notifications on new releases.