Introducing view field group syncable entity (#17867)
## Context Introduces a new viewFieldGroup entity that allows grouping view fields into sections (e.g. "General", "Additional", "Other") within a view. The page layout fields widget needs a way to organize fields into sections. Today, views have no concept of field grouping. This PR introduces the viewFieldGroup entity which sits between a view and its viewFields, enabling section-based organization. <img width="401" height="724" alt="Layout - V2 (customize visibility)" src="https://github.com/user-attachments/assets/6376e2ab-44db-42bf-9d2c-758f56f6b548" /> --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -775,6 +775,7 @@ export type CoreView = {
|
||||
shouldHideEmptyGroups: Scalars['Boolean'];
|
||||
type: ViewType;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
viewFieldGroups: Array<CoreViewFieldGroup>;
|
||||
viewFields: Array<CoreViewField>;
|
||||
viewFilterGroups: Array<CoreViewFilterGroup>;
|
||||
viewFilters: Array<CoreViewFilter>;
|
||||
@@ -799,6 +800,20 @@ export type CoreViewField = {
|
||||
workspaceId: Scalars['UUID'];
|
||||
};
|
||||
|
||||
export type CoreViewFieldGroup = {
|
||||
__typename?: 'CoreViewFieldGroup';
|
||||
createdAt: Scalars['DateTime'];
|
||||
deletedAt?: Maybe<Scalars['DateTime']>;
|
||||
id: Scalars['UUID'];
|
||||
isVisible: Scalars['Boolean'];
|
||||
name: Scalars['String'];
|
||||
position: Scalars['Float'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
viewFields: Array<CoreViewField>;
|
||||
viewId: Scalars['UUID'];
|
||||
workspaceId: Scalars['UUID'];
|
||||
};
|
||||
|
||||
export type CoreViewFilter = {
|
||||
__typename?: 'CoreViewFilter';
|
||||
createdAt: Scalars['DateTime'];
|
||||
|
||||
Reference in New Issue
Block a user