Files
twenty/packages/twenty-server/test/integration/constants/page-layout-gql-fields.constants.ts
T
Raphaël Bosi f301f07e43 Convert number chart to aggregate chart allowing date aggregates (#15294)
- Convert number chart to aggregate chart 
- Allow date aggregates on all charts
- Only allow `EARLIEST` and `LATEST` on Aggregate chart and Gauge chart
- Various design fixes


https://github.com/user-attachments/assets/b5a2239d-7b11-48b5-93e6-98ceffae5cab
2025-10-24 05:48:42 +13:00

111 lines
1.9 KiB
TypeScript

export const PAGE_LAYOUT_GQL_FIELDS = `
id
name
type
objectMetadataId
createdAt
updatedAt
deletedAt
`;
export const PAGE_LAYOUT_TAB_GQL_FIELDS = `
id
title
position
pageLayoutId
createdAt
updatedAt
deletedAt
`;
export const PAGE_LAYOUT_WIDGET_CONFIGURATION_FIELDS = `
... on IframeConfiguration {
url
}
... on BarChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
primaryAxisGroupByFieldMetadataId
primaryAxisGroupBySubFieldName
primaryAxisOrderBy
secondaryAxisGroupByFieldMetadataId
secondaryAxisGroupBySubFieldName
secondaryAxisOrderBy
omitNullValues
axisNameDisplay
displayDataLabel
rangeMin
rangeMax
filter
color
description
}
... on LineChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
primaryAxisGroupByFieldMetadataId
primaryAxisGroupBySubFieldName
primaryAxisOrderBy
secondaryAxisGroupByFieldMetadataId
secondaryAxisGroupBySubFieldName
secondaryAxisOrderBy
omitNullValues
axisNameDisplay
displayDataLabel
rangeMin
rangeMax
filter
color
description
}
... on PieChartConfiguration {
graphType
groupByFieldMetadataId
aggregateFieldMetadataId
aggregateOperation
orderBy
displayDataLabel
filter
color
description
}
... on AggregateChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
description
filter
format
label
}
... on GaugeChartConfiguration {
graphType
aggregateFieldMetadataId
aggregateOperation
description
filter
}
`;
export const PAGE_LAYOUT_WIDGET_GQL_FIELDS = `
id
title
type
pageLayoutTabId
objectMetadataId
gridPosition {
row
column
rowSpan
columnSpan
}
configuration {
${PAGE_LAYOUT_WIDGET_CONFIGURATION_FIELDS}
}
createdAt
updatedAt
deletedAt
`;