Files
twenty/packages/twenty-server/test/integration/constants/view-gql-fields.constants.ts
T
Weiko 6aca1dd013 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>
2026-02-11 22:02:58 +01:00

84 lines
1.1 KiB
TypeScript

export const VIEW_GQL_FIELDS = `
id
name
objectMetadataId
type
key
mainGroupByFieldMetadataId
icon
position
isCompact
openRecordIn
workspaceId
anyFieldFilterValue
createdAt
updatedAt
deletedAt
`;
export const VIEW_FIELD_GQL_FIELDS = `
id
fieldMetadataId
position
isVisible
size
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_SORT_GQL_FIELDS = `
id
fieldMetadataId
direction
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_FILTER_GQL_FIELDS = `
id
fieldMetadataId
operand
value
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_GROUP_GQL_FIELDS = `
id
fieldValue
isVisible
position
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_FILTER_GROUP_GQL_FIELDS = `
id
logicalOperator
parentViewFilterGroupId
positionInViewFilterGroup
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_FIELD_GROUP_GQL_FIELDS = `
id
name
position
isVisible
viewId
createdAt
updatedAt
deletedAt
`;