Skip to content

The open alternative to Salesforce, designed for AI.

Add record table widget to dashboards (#18747)

Lucas Bordeau96f3ff0e9051
diff --git a/.claude/settings.json b/.claude/settings.json
deleted file mode 100644
index d636552bd2b..00000000000
--- a/.claude/settings.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "permissions": {
- "allow": [
- "Bash(git stash:*)"
- ]
- }
-}
diff --git a/.gitignore b/.gitignore
index 8fa872d300e..5d42fe9cace 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
**/**/.env
.DS_Store
/.idea
+.claude/settings.json
**/**/node_modules/
.cache
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index ced462f7fb7..6474817584e 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -4770,6 +4770,12 @@ export type RecordIdentifier = {
labelIdentifier: Scalars['String'];
};
+export type RecordTableConfiguration = {
+ __typename?: 'RecordTableConfiguration';
+ configurationType: WidgetConfigurationType;
+ viewId?: Maybe<Scalars['String']>;
+};
+
export type Relation = {
__typename?: 'Relation';
sourceFieldMetadata: Field;
@@ -5928,7 +5934,7 @@ export type Webhook = {
updatedAt: Scalars['DateTime'];
};
-export type WidgetConfiguration = AggregateChartConfiguration | BarChartConfiguration | CalendarConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | FrontComponentConfiguration | GaugeChartConfiguration | IframeConfiguration | LineChartConfiguration | NotesConfiguration | PieChartConfiguration | StandaloneRichTextConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration;
+export type WidgetConfiguration = AggregateChartConfiguration | BarChartConfiguration | CalendarConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | FrontComponentConfiguration | GaugeChartConfiguration | IframeConfiguration | LineChartConfiguration | NotesConfiguration | PieChartConfiguration | RecordTableConfiguration | StandaloneRichTextConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration;
export enum WidgetConfigurationType {
AGGREGATE_CHART = 'AGGREGATE_CHART',
@@ -5945,6 +5951,7 @@ export enum WidgetConfigurationType {
LINE_CHART = 'LINE_CHART',
NOTES = 'NOTES',
PIE_CHART = 'PIE_CHART',
+ RECORD_TABLE = 'RECORD_TABLE',
STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT',
TASKS = 'TASKS',
TIMELINE = 'TIMELINE',
@@ -5965,6 +5972,7 @@ export enum WidgetType {
GRAPH = 'GRAPH',
IFRAME = 'IFRAME',
NOTES = 'NOTES',
+ RECORD_TABLE = 'RECORD_TABLE',
STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT',
TASKS = 'TASKS',
TIMELINE = 'TIMELINE',
@@ -6582,9 +6590,9 @@ export type FindManyCommandMenuItemsQueryVariables = Exact<{ [key: string]: neve
export type FindManyCommandMenuItemsQuery = { __typename?: 'Query', commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, workflowVersionId?: string | null, frontComponentId?: string | null, engineComponentKey: EngineComponentKey, label: string, icon?: string | null, shortLabel?: string | null, position: number, isPinned: boolean, hotKeys?: Array<string> | null, conditionalAvailabilityExpression?: string | null, availabilityType: CommandMenuItemAvailabilityType, availabilityObjectMetadataId?: string | null, frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, isHeadless: boolean } | null }> };
-export type PageLayoutFragmentFragment = { __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null };
+export type PageLayoutFragmentFragment = { __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null };
-export type PageLayoutTabFragmentFragment = { __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null };
+export type PageLayoutTabFragmentFragment = { __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null };
export type DuplicateDashboardMutationVariables = Exact<{
id: Scalars['UUID'];
@@ -6598,7 +6606,7 @@ export type FindOnePageLayoutQueryVariables = Exact<{
}>;
-export type FindOnePageLayoutQuery = { __typename?: 'Query', getPageLayout?: { __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null } | null };
+export type FindOnePageLayoutQuery = { __typename?: 'Query', getPageLayout?: { __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null } | null };
export type UploadFilesFieldFileMutationVariables = Exact<{
file: Scalars['Upload'];
@@ -6823,7 +6831,7 @@ export type SkipSyncEmailOnboardingStepMutationVariables = Exact<{ [key: string]
export type SkipSyncEmailOnboardingStepMutation = { __typename?: 'Mutation', skipSyncEmailOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } };
-export type PageLayoutWidgetFragmentFragment = { __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } };
+export type PageLayoutWidgetFragmentFragment = { __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } };
export type UpdatePageLayoutWithTabsAndWidgetsMutationVariables = Exact<{
id: Scalars['String'];
@@ -6831,7 +6839,7 @@ export type UpdatePageLayoutWithTabsAndWidgetsMutationVariables = Exact<{
}>;
-export type UpdatePageLayoutWithTabsAndWidgetsMutation = { __typename?: 'Mutation', updatePageLayoutWithTabsAndWidgets: { __typename?: 'PageLayout', id: string, name: string, type: PageLayoutType, objectMetadataId?: string | null, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, deletedAt?: string | null, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null } };
+export type UpdatePageLayoutWithTabsAndWidgetsMutation = { __typename?: 'Mutation', updatePageLayoutWithTabsAndWidgets: { __typename?: 'PageLayout', id: string, name: string, type: PageLayoutType, objectMetadataId?: string | null, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, deletedAt?: string | null, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null } };
export type UpsertFieldsWidgetMutationVariables = Exact<{
input: UpsertFieldsWidgetInput;
@@ -6843,12 +6851,12 @@ export type UpsertFieldsWidgetMutation = { __typename?: 'Mutation', upsertFields
export type FindAllPageLayoutsQueryVariables = Exact<{ [key: string]: never; }>;
-export type FindAllPageLayoutsQuery = { __typename?: 'Query', getPageLayouts: Array<{ __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null }> };
+export type FindAllPageLayoutsQuery = { __typename?: 'Query', getPageLayouts: Array<{ __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null }> };
export type FindAllRecordPageLayoutsQueryVariables = Exact<{ [key: string]: never; }>;
-export type FindAllRecordPageLayoutsQuery = { __typename?: 'Query', getPageLayouts: Array<{ __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null }> };
+export type FindAllRecordPageLayoutsQuery = { __typename?: 'Query', getPageLayouts: Array<{ __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null }> };
export type BarChartDataQueryVariables = Exact<{
input: BarChartDataInput;
@@ -8067,9 +8075,9 @@ export const AuthTokenFragmentFragmentDoc = {"kind":"Document","definitions":[{"
export const AuthTokenPairFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenPairFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthTokenPair"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessOrWorkspaceAgnosticToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenPairFragmentFragment, unknown>;
export const AvailableSsoIdentityProvidersFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableSSOIdentityProvidersFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FindAvailableSSOIDP"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<AvailableSsoIdentityProvidersFragmentFragment, unknown>;
export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<CommandMenuItemFieldsFragment, unknown>;
-export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;
-export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;
-export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;
+export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;
+export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;
+export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;
export const MarketplaceAppFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MarketplaceAppFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MarketplaceApp"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"screenshots"}},{"kind":"Field","name":{"kind":"Name","value":"aboutDescription"}},{"kind":"Field","name":{"kind":"Name","value":"providers"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"termsUrl"}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourcePackage"}},{"kind":"Field","name":{"kind":"Name","value":"isFeatured"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"fieldUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}}]}}]}}]} as unknown as DocumentNode<MarketplaceAppFieldsFragment, unknown>;
export const NavigationMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemFieldsFragment, unknown>;
export const NavigationMenuItemQueryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemQueryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NavigationMenuItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordIdentifier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifier"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NavigationMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NavigationMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"targetRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"folderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<NavigationMenuItemQueryFieldsFragment, unknown>;
@@ -8157,7 +8165,7 @@ export const GetPublicWorkspaceDataByDomainDocument = {"kind":"Document","defini
export const ValidatePasswordResetTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidatePasswordResetToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validatePasswordResetToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"passwordResetToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}}]}}]}}]} as unknown as DocumentNode<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>;
export const FindManyCommandMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCommandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<FindManyCommandMenuItemsQuery, FindManyCommandMenuItemsQueryVariables>;
export const DuplicateDashboardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DuplicateDashboard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"duplicateDashboard"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<DuplicateDashboardMutation, DuplicateDashboardMutationVariables>;
-export const FindOnePageLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutQuery, FindOnePageLayoutQueryVariables>;
+export const FindOnePageLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutQuery, FindOnePageLayoutQueryVariables>;
export const UploadFilesFieldFileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadFilesFieldFile"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Upload"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadFilesFieldFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}},{"kind":"Argument","name":{"kind":"Name","value":"fieldMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode<UploadFilesFieldFileMutation, UploadFilesFieldFileMutationVariables>;
export const UploadWorkflowFileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadWorkflowFile"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Upload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadWorkflowFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode<UploadWorkflowFileMutation, UploadWorkflowFileMutationVariables>;
export const RenewApplicationTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RenewApplicationToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"renewApplicationToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRefreshToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRefreshToken"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationAccessToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicationRefreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]}}]} as unknown as DocumentNode<RenewApplicationTokenMutation, RenewApplicationTokenMutationVariables>;
@@ -8190,10 +8198,10 @@ export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"k
export const ObjectRecordCountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectNamePlural"}},{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}}]}}]} as unknown as DocumentNode<ObjectRecordCountsQuery, ObjectRecordCountsQueryVariables>;
export const SkipBookOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SkipBookOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skipBookOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
export const SkipSyncEmailOnboardingStepDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SkipSyncEmailOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skipSyncEmailOnboardingStep"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
-export const UpdatePageLayoutWithTabsAndWidgetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsAndWidgets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWithTabsAndWidgets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWithTabsAndWidgetsMutation, UpdatePageLayoutWithTabsAndWidgetsMutationVariables>;
+export const UpdatePageLayoutWithTabsAndWidgetsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsAndWidgets"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdatePageLayoutWithTabsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePageLayoutWithTabsAndWidgets"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdatePageLayoutWithTabsAndWidgetsMutation, UpdatePageLayoutWithTabsAndWidgetsMutationVariables>;
export const UpsertFieldsWidgetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertFieldsWidget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertFieldsWidgetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertFieldsWidget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewField"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFieldGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFieldGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilter"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFilterGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewFilterGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentViewFilterGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInViewFilterGroup"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewSortFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewSort"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isVisible"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"View"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isCompact"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"kanbanAggregateOperationFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"mainGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shouldHideEmptyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarLayout"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"viewFields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFieldGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewFilterGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFilterGroupFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewSorts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewSortFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertFieldsWidgetMutation, UpsertFieldsWidgetMutationVariables>;
-export const FindAllPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllPageLayoutsQuery, FindAllPageLayoutsQueryVariables>;
-export const FindAllRecordPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordPageLayoutsQuery, FindAllRecordPageLayoutsQueryVariables>;
+export const FindAllPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllPageLayoutsQuery, FindAllPageLayoutsQueryVariables>;
+export const FindAllRecordPageLayoutsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindAllRecordPageLayouts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayouts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageLayoutType"},"value":{"kind":"EnumValue","value":"RECORD_PAGE"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindAllRecordPageLayoutsQuery, FindAllRecordPageLayoutsQueryVariables>;
export const BarChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BarChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"barChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"indexBy"}},{"kind":"Field","name":{"kind":"Name","value":"keys"}},{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<BarChartDataQuery, BarChartDataQueryVariables>;
export const LineChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LineChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lineChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"series"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"x"}},{"kind":"Field","name":{"kind":"Name","value":"y"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"xAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"yAxisLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<LineChartDataQuery, LineChartDataQueryVariables>;
export const PieChartDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PieChartData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartDataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pieChartData"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"showLegend"}},{"kind":"Field","name":{"kind":"Name","value":"showDataLabels"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"hasTooManyGroups"}},{"kind":"Field","name":{"kind":"Name","value":"formattedToRawLookup"}}]}}]}}]} as unknown as DocumentNode<PieChartDataQuery, PieChartDataQueryVariables>;
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
index 5bd3744f845..5ba5463e31e 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
@@ -1,6 +1,7 @@
import { HeadlessEngineCommandWrapperEffect } from '@/command-menu-item/engine-command/components/HeadlessEngineCommandWrapperEffect';
import { useHeadlessCommandContextApi } from '@/command-menu-item/engine-command/hooks/useHeadlessCommandContextApi';
import { useSavePageLayout } from '@/page-layout/hooks/useSavePageLayout';
+import { useSavePageLayoutWidgetsData } from '@/page-layout/hooks/useSavePageLayoutWidgetsData';
import { useSetIsPageLayoutInEditMode } from '@/page-layout/hooks/useSetIsPageLayoutInEditMode';
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
import { isDefined } from 'twenty-shared/utils';
@@ -17,6 +18,8 @@ export const SaveDashboardSingleRecordCommand = () => {
const { savePageLayout } = useSavePageLayout(pageLayoutId);
+ const { savePageLayoutWidgetsData } = useSavePageLayoutWidgetsData();
+
const { setIsPageLayoutInEditMode } =
useSetIsPageLayoutInEditMode(pageLayoutId);
@@ -26,6 +29,7 @@ export const SaveDashboardSingleRecordCommand = () => {
const result = await savePageLayout();
if (result.status === 'successful') {
+ await savePageLayoutWidgetsData(pageLayoutId);
closeSidePanelMenu();
setIsPageLayoutInEditMode(false);
}
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/record-page-layout/components/SaveRecordPageLayoutSingleRecordCommand.tsx b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/record-page-layout/components/SaveRecordPageLayoutSingleRecordCommand.tsx
index 0c7758208b3..77330eeba7c 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/record-page-layout/components/SaveRecordPageLayoutSingleRecordCommand.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/single-record/record-page-layout/components/SaveRecordPageLayoutSingleRecordCommand.tsx
@@ -1,8 +1,8 @@
import { HeadlessEngineCommandWrapperEffect } from '@/command-menu-item/engine-command/components/HeadlessEngineCommandWrapperEffect';
import { useHeadlessCommandContextApi } from '@/command-menu-item/engine-command/hooks/useHeadlessCommandContextApi';
import { useRecordPageLayoutIdFromRecordStoreOrThrow } from '@/page-layout/hooks/useRecordPageLayoutIdFromRecordStoreOrThrow';
-import { useSaveFieldsWidgetGroups } from '@/page-layout/hooks/useSaveFieldsWidgetGroups';
import { useSavePageLayout } from '@/page-layout/hooks/useSavePageLayout';
+import { useSavePageLayoutWidgetsData } from '@/page-layout/hooks/useSavePageLayoutWidgetsData';
import { useSetIsPageLayoutInEditMode } from '@/page-layout/hooks/useSetIsPageLayoutInEditMode';
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
import { isDefined } from 'twenty-shared/utils';
@@ -22,7 +22,7 @@ export const SaveRecordPageLayoutSingleRecordCommand = () => {
const { savePageLayout } = useSavePageLayout(pageLayoutId);
- const { saveFieldsWidgetGroups } = useSaveFieldsWidgetGroups();
+ const { savePageLayoutWidgetsData } = useSavePageLayoutWidgetsData();
const { setIsPageLayoutInEditMode } =
useSetIsPageLayoutInEditMode(pageLayoutId);
@@ -33,7 +33,7 @@ export const SaveRecordPageLayoutSingleRecordCommand = () => {
const result = await savePageLayout();
if (result.status === 'successful') {
- await saveFieldsWidgetGroups(pageLayoutId);
+ await savePageLayoutWidgetsData(pageLayoutId);
closeSidePanelMenu();
setIsPageLayoutInEditMode(false);
diff --git a/packages/twenty-front/src/modules/command-menu-item/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx b/packages/twenty-front/src/modules/command-menu-item/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
index cd49d80d1a2..5cb840e64cf 100644
--- a/packages/twenty-front/src/modules/command-menu-item/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/record/single-record/dashboard/components/SaveDashboardSingleRecordCommand.tsx
@@ -3,6 +3,7 @@ import { useSelectedRecordIdOrThrow } from '@/command-menu-item/record/single-re
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
import { useSavePageLayout } from '@/page-layout/hooks/useSavePageLayout';
+import { useSavePageLayoutWidgetsData } from '@/page-layout/hooks/useSavePageLayoutWidgetsData';
import { useSetIsPageLayoutInEditMode } from '@/page-layout/hooks/useSetIsPageLayoutInEditMode';
import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
@@ -15,6 +16,8 @@ export const SaveDashboardSingleRecordCommand = () => {
const { savePageLayout } = useSavePageLayout(pageLayoutId);
+ const { savePageLayoutWidgetsData } = useSavePageLayoutWidgetsData();
+
const { setIsPageLayoutInEditMode } =
useSetIsPageLayoutInEditMode(pageLayoutId);
@@ -24,6 +27,7 @@ export const SaveDashboardSingleRecordCommand = () => {
const result = await savePageLayout();
if (result.status === 'successful') {
+ await savePageLayoutWidgetsData(pageLayoutId);
closeSidePanelMenu();
setIsPageLayoutInEditMode(false);
}
diff --git a/packages/twenty-front/src/modules/command-menu-item/server-items/hooks/useConvertBackendItemToCommandMenuItemConfig.tsx b/packages/twenty-front/src/modules/command-menu-item/server-items/hooks/useConvertBackendItemToCommandMenuItemConfig.tsx
index 057a28b8d0d..e4f4da4cba6 100644
--- a/packages/twenty-front/src/modules/command-menu-item/server-items/hooks/useConvertBackendItemToCommandMenuItemConfig.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/server-items/hooks/useConvertBackendItemToCommandMenuItemConfig.tsx
@@ -82,9 +82,13 @@ export const useConvertBackendItemToCommandMenuItemConfig = () => {
return null;
}
+ const isEditModeItem =
+ item.conditionalAvailabilityExpression?.includes('isPageInEditMode') ??
+ false;
+
const isPinned =
item.availabilityType !== CommandMenuItemAvailabilityType.FALLBACK &&
- !contextStoreIsPageInEditMode &&
+ (!contextStoreIsPageInEditMode || isEditModeItem) &&
item.isPinned;
const Icon = getIcon(item.icon, COMMAND_MENU_DEFAULT_ICON);
diff --git a/packages/twenty-front/src/modules/layout-customization/hooks/useSaveLayoutCustomization.ts b/packages/twenty-front/src/modules/layout-customization/hooks/useSaveLayoutCustomization.ts
index dd4dda31fc7..7ba51eced0d 100644
--- a/packages/twenty-front/src/modules/layout-customization/hooks/useSaveLayoutCustomization.ts
+++ b/packages/twenty-front/src/modules/layout-customization/hooks/useSaveLayoutCustomization.ts
@@ -4,7 +4,7 @@ import { navigationMenuItemsDraftState } from '@/navigation-menu-item/common/sta
import { navigationMenuItemsSelector } from '@/navigation-menu-item/common/states/navigationMenuItemsSelector';
import { filterWorkspaceNavigationMenuItems } from '@/navigation-menu-item/common/utils/filterWorkspaceNavigationMenuItems';
import { useSaveNavigationMenuItemsDraft } from '@/navigation-menu-item/edit/hooks/useSaveNavigationMenuItemsDraft';
-import { useSaveFieldsWidgetGroups } from '@/page-layout/hooks/useSaveFieldsWidgetGroups';
+import { useSavePageLayoutWidgetsData } from '@/page-layout/hooks/useSavePageLayoutWidgetsData';
import { useUpdatePageLayoutWithTabsAndWidgets } from '@/page-layout/hooks/useUpdatePageLayoutWithTabsAndWidgets';
import { pageLayoutCurrentLayoutsComponentState } from '@/page-layout/states/pageLayoutCurrentLayoutsComponentState';
import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDraftComponentState';
@@ -35,7 +35,7 @@ export const useSaveLayoutCustomization = () => {
const { updatePageLayoutWithTabsAndWidgets } =
useUpdatePageLayoutWithTabsAndWidgets();
const { exitLayoutCustomizationMode } = useExitLayoutCustomizationMode();
- const { saveFieldsWidgetGroups } = useSaveFieldsWidgetGroups();
+ const { savePageLayoutWidgetsData } = useSavePageLayoutWidgetsData();
const featureFlags = useFeatureFlagsMap();
const isRecordPageLayoutEditingEnabled =
@@ -143,7 +143,7 @@ export const useSaveLayoutCustomization = () => {
}
}
- await saveFieldsWidgetGroups(pageLayoutId);
+ await savePageLayoutWidgetsData(pageLayoutId);
}
if (hasAnyFailure) {
@@ -165,7 +165,7 @@ export const useSaveLayoutCustomization = () => {
}, [
saveDraft,
updatePageLayoutWithTabsAndWidgets,
- saveFieldsWidgetGroups,
+ savePageLayoutWidgetsData,
exitLayoutCustomizationMode,
enqueueErrorSnackBar,
isRecordPageLayoutEditingEnabled,
diff --git a/packages/twenty-front/src/modules/object-metadata/utils/filterReadableActiveObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/utils/filterReadableActiveObjectMetadataItems.ts
new file mode 100644
index 00000000000..23d9b08a9e4
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-metadata/utils/filterReadableActiveObjectMetadataItems.ts
@@ -0,0 +1,21 @@
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { type ObjectPermissions } from 'twenty-shared/types';
+import { isDefined } from 'twenty-shared/utils';
+
+export const filterReadableActiveObjectMetadataItems = (
+ objectMetadataItems: EnrichedObjectMetadataItem[],
+ objectPermissionsByObjectMetadataId: Record<
+ string,
+ ObjectPermissions & { objectMetadataId: string }
+ >,
+): EnrichedObjectMetadataItem[] =>
+ objectMetadataItems.filter((objectMetadataItem) => {
+ const objectPermissions =
+ objectPermissionsByObjectMetadataId[objectMetadataItem.id];
+
+ return (
+ isDefined(objectPermissions) &&
+ objectPermissions.canReadObjectRecords &&
+ objectMetadataItem.isActive
+ );
+ });
diff --git a/packages/twenty-front/src/modules/object-metadata/utils/mapObjectMetadataToGraphQLQuery.ts b/packages/twenty-front/src/modules/object-metadata/utils/mapObjectMetadataToGraphQLQuery.ts
index ba017222e01..b63dcafdb92 100644
--- a/packages/twenty-front/src/modules/object-metadata/utils/mapObjectMetadataToGraphQLQuery.ts
+++ b/packages/twenty-front/src/modules/object-metadata/utils/mapObjectMetadataToGraphQLQuery.ts
@@ -65,9 +65,7 @@ export const mapObjectMetadataToGraphQLQuery = ({
}
if (!isDefined(fieldMetadata.morphRelations)) {
- throw new Error(
- `Field ${fieldMetadata.name} is missing, please refresh the page. If the problem persists, please contact support.`,
- );
+ return [];
}
return fieldMetadata.morphRelations.map((morphRelation) => ({
@@ -100,9 +98,7 @@ export const mapObjectMetadataToGraphQLQuery = ({
}
if (!isDefined(fieldMetadata.morphRelations)) {
- throw new Error(
- `Field ${fieldMetadata.name} is missing, please refresh the page. If the problem persists, please contact support.`,
- );
+ return [];
}
return fieldMetadata.morphRelations.map((morphRelation) => ({
diff --git a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexTableContainer.tsx b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexTableContainer.tsx
index c272c9eccbc..8e73bc24a3c 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexTableContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexTableContainer.tsx
@@ -1,6 +1,5 @@
-import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord';
-import { type RecordUpdateHookParams } from '@/object-record/record-field/ui/contexts/FieldContext';
import { RecordIndexRemoveSortingModal } from '@/object-record/record-index/components/RecordIndexRemoveSortingModal';
+import { RecordIndexTableContainerEffect } from '@/object-record/record-index/components/RecordIndexTableContainerEffect';
import { RECORD_INDEX_REMOVE_SORTING_MODAL_ID } from '@/object-record/record-index/constants/RecordIndexRemoveSortingModalId';
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers';
@@ -22,23 +21,13 @@ export const RecordIndexTableContainer = ({
RECORD_INDEX_REMOVE_SORTING_MODAL_ID,
);
- const { updateOneRecord } = useUpdateOneRecord();
-
- const updateEntity = ({ variables }: RecordUpdateHookParams) => {
- updateOneRecord({
- objectNameSingular,
- idToUpdate: variables.where.id as string,
- updateOneRecordInput: variables.updateOneRecordInput,
- });
- };
-
return (
<>
+ <RecordIndexTableContainerEffect />
<RecordTableWithWrappers
recordTableId={recordTableId}
objectNameSingular={objectNameSingular}
viewBarId={viewBarInstanceId}
- updateRecordMutation={updateEntity}
/>
{isModalOpened && <RecordIndexRemoveSortingModal />}
</>
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useLoadRecordIndexStates.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useLoadRecordIndexStates.ts
index 143f720eb7b..19444dc84bc 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useLoadRecordIndexStates.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useLoadRecordIndexStates.ts
@@ -7,6 +7,7 @@ import { formatFieldMetadataItemAsColumnDefinition } from '@/object-metadata/uti
import { isHiddenSystemField } from '@/object-metadata/utils/isHiddenSystemField';
import { currentRecordFieldsComponentState } from '@/object-record/record-field/states/currentRecordFieldsComponentState';
import { type FieldMetadata } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { currentRecordFilterGroupsComponentState } from '@/object-record/record-filter-group/states/currentRecordFilterGroupsComponentState';
import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
import { useSetRecordGroups } from '@/object-record/record-group/hooks/useSetRecordGroups';
import { recordIndexGroupFieldMetadataItemComponentState } from '@/object-record/record-index/states/recordIndexGroupFieldMetadataComponentState';
@@ -32,6 +33,7 @@ import { type View } from '@/views/types/View';
import { getFilterableFields } from '@/views/utils/getFilterableFields';
import { mapViewFieldToRecordField } from '@/views/utils/mapViewFieldToRecordField';
import { mapViewFieldsToColumnDefinitions } from '@/views/utils/mapViewFieldsToColumnDefinitions';
+import { mapViewFilterGroupsToRecordFilterGroups } from '@/views/utils/mapViewFilterGroupsToRecordFilterGroups';
import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters';
import { atom, useStore } from 'jotai';
import { useCallback } from 'react';
@@ -132,6 +134,10 @@ export const useLoadRecordIndexStates = () => {
allFilterableFields,
);
+ const recordFilterGroups = mapViewFilterGroupsToRecordFilterGroups(
+ view.viewFilterGroups ?? [],
+ );
+
const contextStoreFilters = mapViewFiltersToFilters(
view.viewFilters,
filterableFieldMetadataItems,
@@ -172,6 +178,10 @@ export const useLoadRecordIndexStates = () => {
currentRecordFiltersComponentState.atomFamily({
instanceId: recordIndexId,
});
+ const currentRecordFilterGroupsAtom =
+ currentRecordFilterGroupsComponentState.atomFamily({
+ instanceId: recordIndexId,
+ });
const currentRecordSortsAtom =
currentRecordSortsComponentState.atomFamily({
instanceId: recordIndexId,
@@ -237,6 +247,7 @@ export const useLoadRecordIndexStates = () => {
batchSet(hasInitializedFieldsAtom, true);
batchSet(currentRecordFiltersAtom, recordFilters);
+ batchSet(currentRecordFilterGroupsAtom, recordFilterGroups);
batchSet(hasInitializedFiltersAtom, true);
batchSet(currentRecordSortsAtom, view.viewSorts);
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidget.tsx b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidget.tsx
new file mode 100644
index 00000000000..809695bd414
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidget.tsx
@@ -0,0 +1,21 @@
+import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
+import { RecordTableWidgetSetReadOnlyColumnHeadersEffect } from '@/object-record/record-table-widget/components/RecordTableWidgetSetReadOnlyColumnHeadersEffect';
+import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers';
+
+export const RecordTableWidget = () => {
+ const { objectNameSingular, recordIndexId, viewBarInstanceId } =
+ useRecordIndexContextOrThrow();
+
+ return (
+ <>
+ <RecordTableWidgetSetReadOnlyColumnHeadersEffect
+ recordTableId={recordIndexId}
+ />
+ <RecordTableWithWrappers
+ recordTableId={recordIndexId}
+ objectNameSingular={objectNameSingular}
+ viewBarId={viewBarInstanceId}
+ />
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetContextStoreInitEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetContextStoreInitEffect.tsx
new file mode 100644
index 00000000000..15f54305d77
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetContextStoreInitEffect.tsx
@@ -0,0 +1,42 @@
+import { contextStoreCurrentObjectMetadataItemIdComponentState } from '@/context-store/states/contextStoreCurrentObjectMetadataItemIdComponentState';
+import { contextStoreCurrentViewIdComponentState } from '@/context-store/states/contextStoreCurrentViewIdComponentState';
+import { contextStoreCurrentViewTypeComponentState } from '@/context-store/states/contextStoreCurrentViewTypeComponentState';
+import { ContextStoreViewType } from '@/context-store/types/ContextStoreViewType';
+import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
+import { useEffect } from 'react';
+
+type RecordTableWidgetContextStoreInitEffectProps = {
+ objectMetadataItemId: string;
+ viewId: string;
+};
+
+export const RecordTableWidgetContextStoreInitEffect = ({
+ objectMetadataItemId,
+ viewId,
+}: RecordTableWidgetContextStoreInitEffectProps) => {
+ const setContextStoreCurrentObjectMetadataItemId = useSetAtomComponentState(
+ contextStoreCurrentObjectMetadataItemIdComponentState,
+ );
+
+ const setContextStoreCurrentViewId = useSetAtomComponentState(
+ contextStoreCurrentViewIdComponentState,
+ );
+
+ const setContextStoreCurrentViewType = useSetAtomComponentState(
+ contextStoreCurrentViewTypeComponentState,
+ );
+
+ useEffect(() => {
+ setContextStoreCurrentObjectMetadataItemId(objectMetadataItemId);
+ setContextStoreCurrentViewId(viewId);
+ setContextStoreCurrentViewType(ContextStoreViewType.Table);
+ }, [
+ objectMetadataItemId,
+ viewId,
+ setContextStoreCurrentObjectMetadataItemId,
+ setContextStoreCurrentViewId,
+ setContextStoreCurrentViewType,
+ ]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetProvider.tsx b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetProvider.tsx
new file mode 100644
index 00000000000..77f613f5879
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetProvider.tsx
@@ -0,0 +1,109 @@
+import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext';
+import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
+import { getObjectPermissionsForObject } from '@/object-metadata/utils/getObjectPermissionsForObject';
+import { RecordComponentInstanceContextsWrapper } from '@/object-record/components/RecordComponentInstanceContextsWrapper';
+import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions';
+import { RecordIndexContextProvider } from '@/object-record/record-index/contexts/RecordIndexContext';
+import { useRecordIndexFieldMetadataDerivedStates } from '@/object-record/record-index/hooks/useRecordIndexFieldMetadataDerivedStates';
+import { RecordTableWidgetContextStoreInitEffect } from '@/object-record/record-table-widget/components/RecordTableWidgetContextStoreInitEffect';
+import { RecordTableWidgetViewLoadEffect } from '@/object-record/record-table-widget/components/RecordTableWidgetViewLoadEffect';
+import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
+import { ViewComponentInstanceContext } from '@/views/states/contexts/ViewComponentInstanceContext';
+import { type PropsWithChildren, useCallback } from 'react';
+import { AppPath } from 'twenty-shared/types';
+import { getAppPath } from 'twenty-shared/utils';
+
+type RecordTableWidgetProviderProps = PropsWithChildren<{
+ objectNameSingular: string;
+ viewId: string;
+ widgetId: string;
+}>;
+
+export const RecordTableWidgetProvider = ({
+ objectNameSingular,
+ viewId,
+ widgetId,
+ children,
+}: RecordTableWidgetProviderProps) => {
+ const { objectMetadataItem } = useObjectMetadataItem({
+ objectNameSingular,
+ });
+
+ const recordIndexId = getRecordIndexIdFromObjectNamePluralAndViewId(
+ objectMetadataItem.namePlural,
+ viewId,
+ );
+
+ const { objectPermissionsByObjectMetadataId } = useObjectPermissions();
+ const objectPermissions = getObjectPermissionsForObject(
+ objectPermissionsByObjectMetadataId,
+ objectMetadataItem.id,
+ );
+
+ const {
+ fieldDefinitionByFieldMetadataItemId,
+ fieldMetadataItemByFieldMetadataItemId,
+ labelIdentifierFieldMetadataItem,
+ recordFieldByFieldMetadataItemId,
+ } = useRecordIndexFieldMetadataDerivedStates(
+ objectMetadataItem,
+ recordIndexId,
+ );
+
+ const indexIdentifierUrl = useCallback(
+ (recordId: string) => {
+ return getAppPath(AppPath.RecordShowPage, {
+ objectNameSingular,
+ objectRecordId: recordId,
+ });
+ },
+ [objectNameSingular],
+ );
+
+ const handleIndexRecordsLoaded = useCallback(() => {}, []);
+
+ if (!objectPermissions.canReadObjectRecords) {
+ return null;
+ }
+
+ return (
+ <ContextStoreComponentInstanceContext.Provider
+ value={{ instanceId: `record-table-widget-${widgetId}` }}
+ >
+ <RecordTableWidgetContextStoreInitEffect
+ objectMetadataItemId={objectMetadataItem.id}
+ viewId={viewId}
+ />
+ <RecordIndexContextProvider
+ value={{
+ objectPermissionsByObjectMetadataId,
+ recordIndexId,
+ viewBarInstanceId: recordIndexId,
+ objectNamePlural: objectMetadataItem.namePlural,
+ objectNameSingular,
+ objectMetadataItem,
+ onIndexRecordsLoaded: handleIndexRecordsLoaded,
+ indexIdentifierUrl,
+ recordFieldByFieldMetadataItemId,
+ labelIdentifierFieldMetadataItem,
+ fieldMetadataItemByFieldMetadataItemId,
+ fieldDefinitionByFieldMetadataItemId,
+ }}
+ >
+ <ViewComponentInstanceContext.Provider
+ value={{ instanceId: recordIndexId }}
+ >
+ <RecordComponentInstanceContextsWrapper
+ componentInstanceId={recordIndexId}
+ >
+ <RecordTableWidgetViewLoadEffect
+ viewId={viewId}
+ objectMetadataItem={objectMetadataItem}
+ />
+ {children}
+ </RecordComponentInstanceContextsWrapper>
+ </ViewComponentInstanceContext.Provider>
+ </RecordIndexContextProvider>
+ </ContextStoreComponentInstanceContext.Provider>
+ );
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetSetReadOnlyColumnHeadersEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetSetReadOnlyColumnHeadersEffect.tsx
new file mode 100644
index 00000000000..49092a4e70c
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetSetReadOnlyColumnHeadersEffect.tsx
@@ -0,0 +1,56 @@
+import { useIsPageLayoutInEditMode } from '@/page-layout/hooks/useIsPageLayoutInEditMode';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
+import { isRecordTableCellsNonEditableComponentState } from '@/object-record/record-table/states/isRecordTableCellsNonEditableComponentState';
+import { isRecordTableColumnHeadersReadOnlyComponentState } from '@/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState';
+import { isRecordTableColumnResizableComponentState } from '@/object-record/record-table/states/isRecordTableColumnResizableComponentState';
+import { useStore } from 'jotai';
+import { useEffect } from 'react';
+
+export const RecordTableWidgetSetReadOnlyColumnHeadersEffect = ({
+ recordTableId,
+}: {
+ recordTableId: string;
+}) => {
+ const store = useStore();
+ const isPageLayoutInEditMode = useIsPageLayoutInEditMode();
+
+ useEffect(() => {
+ store.set(
+ isRecordTableColumnHeadersReadOnlyComponentState.atomFamily({
+ instanceId: recordTableId,
+ }),
+ true,
+ );
+
+ store.set(
+ isRecordTableDragColumnHiddenComponentState.atomFamily({
+ instanceId: recordTableId,
+ }),
+ true,
+ );
+
+ store.set(
+ isRecordTableCheckboxColumnHiddenComponentState.atomFamily({
+ instanceId: recordTableId,
+ }),
+ true,
+ );
+
+ store.set(
+ isRecordTableColumnResizableComponentState.atomFamily({
+ instanceId: recordTableId,
+ }),
+ isPageLayoutInEditMode,
+ );
+
+ store.set(
+ isRecordTableCellsNonEditableComponentState.atomFamily({
+ instanceId: recordTableId,
+ }),
+ true,
+ );
+ }, [store, recordTableId, isPageLayoutInEditMode]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetViewLoadEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetViewLoadEffect.tsx
new file mode 100644
index 00000000000..e1406c5ca57
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/components/RecordTableWidgetViewLoadEffect.tsx
@@ -0,0 +1,70 @@
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { useLoadRecordIndexStates } from '@/object-record/record-index/hooks/useLoadRecordIndexStates';
+import { lastLoadedRecordTableWidgetViewIdComponentState } from '@/object-record/record-table-widget/states/lastLoadedRecordTableWidgetViewIdComponentState';
+import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentState';
+import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
+import { viewFromViewIdFamilySelector } from '@/views/states/selectors/viewFromViewIdFamilySelector';
+import { useEffect } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+
+type RecordTableWidgetViewLoadEffectProps = {
+ viewId: string;
+ objectMetadataItem: EnrichedObjectMetadataItem;
+};
+
+export const RecordTableWidgetViewLoadEffect = ({
+ viewId,
+ objectMetadataItem,
+}: RecordTableWidgetViewLoadEffectProps) => {
+ const { loadRecordIndexStates } = useLoadRecordIndexStates();
+
+ const [
+ lastLoadedRecordTableWidgetViewId,
+ setLastLoadedRecordTableWidgetViewId,
+ ] = useAtomComponentState(lastLoadedRecordTableWidgetViewIdComponentState);
+
+ const viewFromViewId = useAtomFamilySelectorValue(
+ viewFromViewIdFamilySelector,
+ {
+ viewId,
+ },
+ );
+
+ const viewHasFields =
+ isDefined(viewFromViewId) && viewFromViewId.viewFields.length > 0;
+
+ useEffect(() => {
+ if (!isDefined(viewFromViewId)) {
+ return;
+ }
+
+ if (!viewHasFields) {
+ return;
+ }
+
+ if (
+ viewId === lastLoadedRecordTableWidgetViewId?.viewId &&
+ objectMetadataItem.updatedAt ===
+ lastLoadedRecordTableWidgetViewId?.objectMetadataItemUpdatedAt
+ ) {
+ return;
+ }
+
+ loadRecordIndexStates(viewFromViewId, objectMetadataItem);
+
+ setLastLoadedRecordTableWidgetViewId({
+ viewId,
+ objectMetadataItemUpdatedAt: objectMetadataItem.updatedAt,
+ });
+ }, [
+ viewId,
+ lastLoadedRecordTableWidgetViewId,
+ setLastLoadedRecordTableWidgetViewId,
+ viewFromViewId,
+ viewHasFields,
+ objectMetadataItem,
+ loadRecordIndexStates,
+ ]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table-widget/states/lastLoadedRecordTableWidgetViewIdComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table-widget/states/lastLoadedRecordTableWidgetViewIdComponentState.ts
new file mode 100644
index 00000000000..884a3e896ca
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table-widget/states/lastLoadedRecordTableWidgetViewIdComponentState.ts
@@ -0,0 +1,12 @@
+import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const lastLoadedRecordTableWidgetViewIdComponentState =
+ createAtomComponentState<{
+ viewId: string;
+ objectMetadataItemUpdatedAt: string;
+ } | null>({
+ key: 'lastLoadedRecordTableWidgetViewIdComponentState',
+ defaultValue: null,
+ componentInstanceContext: ContextStoreComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableColumnWidthEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableColumnWidthEffect.tsx
index 390101294aa..ce7a8e33580 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableColumnWidthEffect.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableColumnWidthEffect.tsx
@@ -6,6 +6,8 @@ import { RECORD_TABLE_COLUMN_MIN_WIDTH } from '@/object-record/record-table/cons
import { RECORD_TABLE_COLUMN_WITH_GROUP_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME } from '@/object-record/record-table/constants/RecordTableColumnWithGroupLastEmptyColumnWidthVariableName';
import { RECORD_TABLE_LABEL_IDENTIFIER_COLUMN_WIDTH_ON_MOBILE } from '@/object-record/record-table/constants/RecordTableLabelIdentifierColumnWidthOnMobile';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { recordTableWidthComponentState } from '@/object-record/record-table/states/recordTableWidthComponentState';
import { resizedFieldMetadataIdComponentState } from '@/object-record/record-table/states/resizedFieldMetadataIdComponentState';
import { shouldCompactRecordTableFirstColumnComponentState } from '@/object-record/record-table/states/shouldCompactRecordTableFirstColumnComponentState';
@@ -25,7 +27,7 @@ export const RecordTableColumnWidthEffect = () => {
resizedFieldMetadataIdComponentState,
);
- const { visibleRecordFields } = useRecordTableContextOrThrow();
+ const { visibleRecordFields, recordTableId } = useRecordTableContextOrThrow();
const shouldCompactRecordTableFirstColumn = useAtomComponentStateValue(
shouldCompactRecordTableFirstColumnComponentState,
@@ -35,6 +37,14 @@ export const RecordTableColumnWidthEffect = () => {
recordTableWidthComponentState,
);
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
useEffect(() => {
if (isDefined(resizedFieldMetadataId)) {
return;
@@ -44,6 +54,8 @@ export const RecordTableColumnWidthEffect = () => {
recordFields: visibleRecordFields,
shouldCompactFirstColumn: shouldCompactRecordTableFirstColumn,
tableWidth: recordTableWidth,
+ isDragColumnHidden: isRecordTableDragColumnHidden,
+ isCheckboxColumnHidden: isRecordTableCheckboxColumnHidden,
});
const { visibleRecordFieldsWidth } = computeVisibleRecordFieldsWidthOnTable(
@@ -53,31 +65,44 @@ export const RecordTableColumnWidthEffect = () => {
},
);
+ const dragColumnWidth = isRecordTableDragColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH;
+
+ const checkboxColumnWidth = isRecordTableCheckboxColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_CHECKBOX_WIDTH;
+
+ const leftColumnsWidth = dragColumnWidth + checkboxColumnWidth;
+
const totalTableBodyWidth =
visibleRecordFieldsWidth +
- RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH +
- RECORD_TABLE_COLUMN_CHECKBOX_WIDTH +
+ leftColumnsWidth +
RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH +
lastColumnWidth +
visibleRecordFields.length;
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_VIRTUALIZATION_BODY_PLACEHOLDER_WIDTH_CSS_VARIABLE_NAME,
`${totalTableBodyWidth}px`,
);
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME,
`${lastColumnWidth}px`,
);
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_COLUMN_WITH_GROUP_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME,
`${lastColumnWidth}px`,
);
for (const [index, recordField] of visibleRecordFields.entries()) {
updateRecordTableCSSVariable(
+ recordTableId,
getRecordTableColumnFieldWidthCSSVariableName(index),
`${recordField.size}px`,
);
@@ -85,6 +110,7 @@ export const RecordTableColumnWidthEffect = () => {
if (shouldCompactRecordTableFirstColumn) {
updateRecordTableCSSVariable(
+ recordTableId,
getRecordTableColumnFieldWidthCSSVariableName(0),
`${RECORD_TABLE_LABEL_IDENTIFIER_COLUMN_WIDTH_ON_MOBILE}px`,
);
@@ -93,6 +119,7 @@ export const RecordTableColumnWidthEffect = () => {
visibleRecordFields[0]?.size ?? RECORD_TABLE_COLUMN_MIN_WIDTH;
updateRecordTableCSSVariable(
+ recordTableId,
getRecordTableColumnFieldWidthCSSVariableName(0),
`${firstColumnWidth}px`,
);
@@ -102,6 +129,9 @@ export const RecordTableColumnWidthEffect = () => {
visibleRecordFields,
recordTableWidth,
shouldCompactRecordTableFirstColumn,
+ isRecordTableDragColumnHidden,
+ isRecordTableCheckboxColumnHidden,
+ recordTableId,
]);
return null;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContent.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContent.tsx
index 4353eedb8a8..7c4b091701e 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContent.tsx
@@ -4,8 +4,10 @@ import {
getRecordTableColumnWidthInlineStyles,
RecordTableStyleWrapper,
} from '@/object-record/record-table/components/RecordTableStyleWrapper';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { RecordTableWidthEffect } from '@/object-record/record-table/components/RecordTableWidthEffect';
-import { RECORD_TABLE_HTML_ID } from '@/object-record/record-table/constants/RecordTableHtmlId';
+import { getRecordTableHtmlId } from '@/object-record/record-table/utils/getRecordTableHtmlId';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { RecordTableNoRecordGroupBody } from '@/object-record/record-table/record-table-body/components/RecordTableNoRecordGroupBody';
import { RecordTableRecordGroupsBody } from '@/object-record/record-table/record-table-body/components/RecordTableRecordGroupsBody';
@@ -18,6 +20,7 @@ import { RECORD_INDEX_DRAG_SELECT_BOUNDARY_CLASS } from '@/ui/utilities/drag-sel
import { useAtomComponentFamilyStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateCallbackState';
import { useAtomComponentSelectorCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorCallbackState';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { styled } from '@linaria/react';
import { useStore } from 'jotai';
import { useCallback, useMemo, useRef, useState } from 'react';
@@ -128,9 +131,26 @@ export const RecordTableContent = ({
[store, isSomeCellInEditMode, recordTableHoverPositionCallbackState],
);
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
const columnWidthStyles = useMemo(
- () => getRecordTableColumnWidthInlineStyles(visibleRecordFields),
- [visibleRecordFields],
+ () =>
+ getRecordTableColumnWidthInlineStyles({
+ visibleRecordFields,
+ isDragColumnHidden: isRecordTableDragColumnHidden,
+ isCheckboxColumnHidden: isRecordTableCheckboxColumnHidden,
+ }),
+ [
+ visibleRecordFields,
+ isRecordTableDragColumnHidden,
+ isRecordTableCheckboxColumnHidden,
+ ],
);
return (
@@ -139,7 +159,7 @@ export const RecordTableContent = ({
ref={tableBodyRef}
isDragging={isDragging}
style={columnWidthStyles}
- id={RECORD_TABLE_HTML_ID}
+ id={getRecordTableHtmlId(recordTableId)}
onMouseMove={handleDelegatedMouseMove}
onMouseLeave={handleMouseLeave}
>
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
index 9d2ea77cabe..aa125f12fa3 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
@@ -1,15 +1,18 @@
-import { type ReactNode } from 'react';
+import { type ReactNode, useCallback } from 'react';
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
import { RecordTableContextProvider as RecordTableContextInternalProvider } from '@/object-record/record-table/contexts/RecordTableContext';
import { useObjectPermissionsForObject } from '@/object-record/hooks/useObjectPermissionsForObject';
+import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord';
import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-list/contexts/RecordFieldsScopeContext';
import { visibleRecordFieldsComponentSelector } from '@/object-record/record-field/states/visibleRecordFieldsComponentSelector';
+import { type RecordUpdateHookParams } from '@/object-record/record-field/ui/contexts/FieldContext';
import { recordIndexOpenRecordInState } from '@/object-record/record-index/states/recordIndexOpenRecordInState';
import { RECORD_TABLE_CELL_INPUT_ID_PREFIX } from '@/object-record/record-table/constants/RecordTableCellInputIdPrefix';
import { RECORD_TABLE_COLUMN_MIN_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnMinWidth';
+import { RecordTableUpdateContext } from '@/object-record/record-table/contexts/RecordTableUpdateContext';
import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { ViewOpenRecordIn } from '~/generated-metadata/graphql';
@@ -43,6 +46,19 @@ export const RecordTableContextProvider = ({
visibleRecordFieldsComponentSelector,
);
+ const { updateOneRecord } = useUpdateOneRecord();
+
+ const updateRecord = useCallback(
+ ({ variables }: RecordUpdateHookParams) => {
+ updateOneRecord({
+ objectNameSingular,
+ idToUpdate: variables.where.id as string,
+ updateOneRecordInput: variables.updateOneRecordInput,
+ });
+ },
+ [objectNameSingular, updateOneRecord],
+ );
+
const recordIndexOpenRecordIn = useAtomStateValue(
recordIndexOpenRecordInState,
);
@@ -71,7 +87,9 @@ export const RecordTableContextProvider = ({
triggerEvent,
}}
>
- {children}
+ <RecordTableUpdateContext.Provider value={updateRecord}>
+ {children}
+ </RecordTableUpdateContext.Provider>
</RecordTableContextInternalProvider>
</RecordFieldsScopeContextProvider>
);
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableEmpty.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableEmpty.tsx
index bb59e4313a2..b2f30304bac 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableEmpty.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableEmpty.tsx
@@ -7,7 +7,9 @@ import { RecordTableWidthEffect } from '@/object-record/record-table/components/
import { RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnAddColumnButtonWidth';
import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';
import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';
-import { RECORD_TABLE_HTML_ID } from '@/object-record/record-table/constants/RecordTableHtmlId';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
+import { getRecordTableHtmlId } from '@/object-record/record-table/utils/getRecordTableHtmlId';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { RecordTableEmptyState } from '@/object-record/record-table/empty-state/components/RecordTableEmptyState';
import { RecordTableHeader } from '@/object-record/record-table/record-table-header/components/RecordTableHeader';
@@ -33,7 +35,15 @@ export interface RecordTableEmptyProps {
}
export const RecordTableEmpty = ({ tableBodyRef }: RecordTableEmptyProps) => {
- const { visibleRecordFields } = useRecordTableContextOrThrow();
+ const { visibleRecordFields, recordTableId } = useRecordTableContextOrThrow();
+
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
const recordTableWidth = useAtomComponentStateValue(
recordTableWidthComponentState,
@@ -66,10 +76,19 @@ export const RecordTableEmpty = ({ tableBodyRef }: RecordTableEmptyProps) => {
visibleRecordFields,
});
+ const dragColumnWidth = isRecordTableDragColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH;
+
+ const checkboxColumnWidth = isRecordTableCheckboxColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_CHECKBOX_WIDTH;
+
+ const leftColumnsWidth = dragColumnWidth + checkboxColumnWidth;
+
const emptyTableContainerComputedWidth =
visibleRecordFieldsWidth +
- RECORD_TABLE_COLUMN_CHECKBOX_WIDTH +
- RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH +
+ leftColumnsWidth +
RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH +
totalColumnsBorderWidth +
resizeOffsetToAddOnlyIfItMakesTableContainerGrow;
@@ -80,7 +99,7 @@ export const RecordTableEmpty = ({ tableBodyRef }: RecordTableEmptyProps) => {
);
const columnWidthStyles = useMemo(
- () => getRecordTableColumnWidthInlineStyles(visibleRecordFields),
+ () => getRecordTableColumnWidthInlineStyles({ visibleRecordFields }),
[visibleRecordFields],
);
@@ -89,7 +108,7 @@ export const RecordTableEmpty = ({ tableBodyRef }: RecordTableEmptyProps) => {
<RecordTableStyleWrapper
ref={tableBodyRef}
style={columnWidthStyles}
- id={RECORD_TABLE_HTML_ID}
+ id={getRecordTableHtmlId(recordTableId)}
>
<RecordTableHeader />
</RecordTableStyleWrapper>
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableNoRecordGroupAddNew.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableNoRecordGroupAddNew.tsx
index 8a8c90f4773..5a18a31b7a6 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableNoRecordGroupAddNew.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableNoRecordGroupAddNew.tsx
@@ -3,6 +3,7 @@ import { hasAnySoftDeleteFilterOnViewComponentSelector } from '@/object-record/r
import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { useCreateNewIndexRecord } from '@/object-record/record-table/hooks/useCreateNewIndexRecord';
+import { isRecordTableCellsNonEditableComponentState } from '@/object-record/record-table/states/isRecordTableCellsNonEditableComponentState';
import { RecordTableActionRow } from '@/object-record/record-table/record-table-row/components/RecordTableActionRow';
import { isRecordTableCreateDisabled } from '@/object-record/record-table/utils/isRecordTableCreateDisabled';
import { useLoadRecordsToVirtualRows } from '@/object-record/record-table/virtualization/hooks/useLoadRecordsToVirtualRows';
@@ -17,6 +18,10 @@ import { IconPlus } from 'twenty-ui/display';
export const RecordTableNoRecordGroupAddNew = () => {
const { objectMetadataItem } = useRecordTableContextOrThrow();
+ const isRecordTableCellsNonEditable = useAtomComponentStateValue(
+ isRecordTableCellsNonEditableComponentState,
+ );
+
const { createNewIndexRecord } = useCreateNewIndexRecord({
objectMetadataItem,
});
@@ -58,6 +63,10 @@ export const RecordTableNoRecordGroupAddNew = () => {
totalNumberOfRecordsToVirtualize,
]);
+ if (isRecordTableCellsNonEditable) {
+ return null;
+ }
+
if (hasAnySoftDeleteFilterOnView) {
return null;
}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollAndZIndexEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollAndZIndexEffect.tsx
index c14edcd1156..3a342e74120 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollAndZIndexEffect.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollAndZIndexEffect.tsx
@@ -1,6 +1,7 @@
import { shouldCompactRecordIndexLabelIdentifierComponentState } from '@/object-record/record-index/states/shouldCompactRecordIndexLabelIdentifierComponentState';
import { RECORD_TABLE_HORIZONTAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME } from '@/object-record/record-table/constants/RecordTableHorizontalScrollShadowVisibilityCssVariableName';
import { RECORD_TABLE_VERTICAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME } from '@/object-record/record-table/constants/RecordTableVerticalScrollShadowVisibilityCssVariableName';
+import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { isRecordTableScrolledHorizontallyComponentState } from '@/object-record/record-table/states/isRecordTableScrolledHorizontallyComponentState';
import { isRecordTableScrolledVerticallyComponentState } from '@/object-record/record-table/states/isRecordTableScrolledVerticallyComponentState';
import { shouldCompactRecordTableFirstColumnComponentState } from '@/object-record/record-table/states/shouldCompactRecordTableFirstColumnComponentState';
@@ -15,6 +16,7 @@ import { isDefined } from 'twenty-shared/utils';
import { useIsMobile } from 'twenty-ui/utilities';
export const RecordTableScrollAndZIndexEffect = () => {
+ const { recordTableId } = useRecordTableContextOrThrow();
const { scrollWrapperHTMLElement } = useScrollWrapperHTMLElement();
const isMobile = useIsMobile();
const [
@@ -51,6 +53,7 @@ export const RecordTableScrollAndZIndexEffect = () => {
: 'hidden';
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_VERTICAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME,
newVisibilityOfShadows,
);
@@ -66,6 +69,7 @@ export const RecordTableScrollAndZIndexEffect = () => {
: 'hidden';
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_HORIZONTAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME,
newVisibilityOfShadows,
);
@@ -88,6 +92,7 @@ export const RecordTableScrollAndZIndexEffect = () => {
scrollWrapperHTMLElement?.removeEventListener('scroll', handleScroll);
};
}, [
+ recordTableId,
scrollWrapperHTMLElement,
isRecordTableScrolledVertically,
isRecordTableScrolledHorizontally,
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx
index 4040db18920..928f9c1bdb4 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx
@@ -2,6 +2,7 @@ import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { isRecordTableCellFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableCellFocusActiveComponentState';
import { recordTableFocusPositionComponentState } from '@/object-record/record-table/states/recordTableFocusPositionComponentState';
+import { getRecordTableCellId } from '@/object-record/record-table/utils/getRecordTableCellId';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useEffect } from 'react';
import { isDefined } from 'twenty-shared/utils';
@@ -19,7 +20,6 @@ export const RecordTableScrollToFocusedCellEffect = () => {
recordTableId,
);
- // Handle cell focus
useEffect(() => {
if (!isRecordTableCellFocusActive) {
return;
@@ -30,7 +30,11 @@ export const RecordTableScrollToFocusedCellEffect = () => {
}
const focusElement = document.getElementById(
- `record-table-cell-${recordTableFocusPosition.column}-${recordTableFocusPosition.row}`,
+ getRecordTableCellId(
+ recordTableId,
+ recordTableFocusPosition.column,
+ recordTableFocusPosition.row,
+ ),
);
if (!focusElement) {
@@ -41,9 +45,11 @@ export const RecordTableScrollToFocusedCellEffect = () => {
if (isSecondColumn) {
const checkBoxColumnCell = document.getElementById(
- `record-table-cell-0-0`,
+ getRecordTableCellId(recordTableId, 0, 0),
+ );
+ const firstColumnCell = document.getElementById(
+ getRecordTableCellId(recordTableId, 1, 0),
);
- const firstColumnCell = document.getElementById(`record-table-cell-1-0`);
if (isDefined(checkBoxColumnCell) && isDefined(firstColumnCell)) {
const checkBoxColumnWidth = checkBoxColumnCell.offsetWidth;
@@ -63,7 +69,7 @@ export const RecordTableScrollToFocusedCellEffect = () => {
focusElement.style.scrollMarginBottom = '';
}
};
- }, [recordTableFocusPosition, isRecordTableCellFocusActive]);
+ }, [recordTableId, recordTableFocusPosition, isRecordTableCellFocusActive]);
return null;
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx
index 58bbbc9b08c..0f89f530879 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx
@@ -1,6 +1,7 @@
import { recordIndexAllRecordIdsComponentSelector } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';
import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { getRecordTableCellId } from '@/object-record/record-table/utils/getRecordTableCellId';
import { focusedRecordTableRowIndexComponentState } from '@/object-record/record-table/states/focusedRecordTableRowIndexComponentState';
import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
@@ -42,7 +43,7 @@ export const RecordTableScrollToFocusedRowEffect = () => {
}
const focusElement = document.getElementById(
- `record-table-cell-0-${focusedRecordTableRowIndex}`,
+ getRecordTableCellId(recordTableId, 0, focusedRecordTableRowIndex),
);
if (!focusElement) {
@@ -59,7 +60,12 @@ export const RecordTableScrollToFocusedRowEffect = () => {
focusElement.style.scrollMarginBottom = '';
}
};
- }, [focusedRecordTableRowIndex, isRecordTableRowFocusActive, allRecordIds]);
+ }, [
+ recordTableId,
+ focusedRecordTableRowIndex,
+ isRecordTableRowFocusActive,
+ allRecordIds,
+ ]);
return null;
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx
index 9db9c90dd24..77e36433401 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx
@@ -19,6 +19,11 @@ import { themeCssVariables } from 'twenty-ui/theme-constants';
export { HorizontalScrollBoxShadowCSS, VerticalScrollBoxShadowCSS };
+export const RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR =
+ '--record-table-drag-drop-width';
+export const RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR =
+ '--record-table-checkbox-width';
+
const MAX_COLUMNS = 100;
const columnFieldWidthRules = Array.from(
@@ -31,9 +36,15 @@ const columnFieldWidthRules = Array.from(
}`,
).join('\n');
-export const getRecordTableColumnWidthInlineStyles = (
- visibleRecordFields: RecordField[],
-): Record<string, string> => {
+export const getRecordTableColumnWidthInlineStyles = ({
+ visibleRecordFields,
+ isDragColumnHidden,
+ isCheckboxColumnHidden,
+}: {
+ visibleRecordFields: RecordField[];
+ isDragColumnHidden?: boolean;
+ isCheckboxColumnHidden?: boolean;
+}): Record<string, string> => {
const style: Record<string, string> = {};
for (let i = 0; i < visibleRecordFields.length; i++) {
@@ -41,6 +52,14 @@ export const getRecordTableColumnWidthInlineStyles = (
`${visibleRecordFields[i].size}px`;
}
+ style[RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR] = isDragColumnHidden
+ ? '0px'
+ : `${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px`;
+
+ style[RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR] = isCheckboxColumnHidden
+ ? '0px'
+ : `${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`;
+
return style;
};
@@ -58,64 +77,65 @@ const StyledTable = styled.div<{
width: 100%;
- div.header-cell:nth-of-type(n + 5) {
+ div.header-cell {
z-index: ${TABLE_Z_INDEX.headerColumns.headerColumnsNormal};
}
- div.header-cell:nth-of-type(1) {
+ div.header-cell.${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME} {
background-color: ${themeCssVariables.background.primary};
-
left: 0px;
-
position: sticky;
-
z-index: ${TABLE_Z_INDEX.headerColumns.headerColumnsSticky};
}
- div.header-cell:nth-of-type(2) {
+ div.header-cell.${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME} {
background-color: ${themeCssVariables.background.primary};
-
- left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
+ left: var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR});
position: sticky;
-
top: 0;
-
z-index: ${TABLE_Z_INDEX.headerColumns.headerColumnsSticky};
}
- div.header-cell:nth-of-type(3) {
+ div.header-cell.${getRecordTableColumnFieldWidthClassName(0)} {
background-color: ${themeCssVariables.background.primary};
- left: ${`${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`};
+ left: calc(
+ var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR}) +
+ var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR})
+ );
position: sticky;
-
right: 0;
-
z-index: ${TABLE_Z_INDEX.headerColumns.headerColumnsSticky};
${HorizontalScrollBoxShadowCSS}
}
- div.table-cell:nth-of-type(1) {
+ div.table-cell.${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME} {
left: 0px;
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
}
- div.table-cell:nth-of-type(2) {
- left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
+ div.table-cell.${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME} {
+ left: var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR});
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
}
div.table-cell-0-0 {
- left: ${`${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`};
+ left: calc(
+ var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR}) +
+ var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR})
+ );
position: sticky;
${HorizontalScrollBoxShadowCSS}
}
- div.table-cell:nth-of-type(3) {
- left: ${`${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`};
+ div.table-cell.${getRecordTableColumnFieldWidthClassName(0)} {
+ left: calc(
+ var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR}) +
+ var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR})
+ );
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
@@ -123,15 +143,15 @@ const StyledTable = styled.div<{
}
div.${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME} {
- max-width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
- min-width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
- width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
+ max-width: var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR});
+ min-width: var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR});
+ width: var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR});
}
div.${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME} {
- max-width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;
- min-width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;
- width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;
+ max-width: var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR});
+ min-width: var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR});
+ width: var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR});
}
div.${RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH_CLASS_NAME} {
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
index 0ec5366e89b..59d6eb40cfa 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
@@ -1,5 +1,4 @@
import { useDeleteOneRecord } from '@/object-record/hooks/useDeleteOneRecord';
-import { RecordIndexTableContainerEffect } from '@/object-record/record-index/components/RecordIndexTableContainerEffect';
import { useOpenRecordFromIndexView } from '@/object-record/record-index/hooks/useOpenRecordFromIndexView';
import { RecordTable } from '@/object-record/record-table/components/RecordTable';
import { RecordTableComponentInstance } from '@/object-record/record-table/components/RecordTableComponentInstance';
@@ -11,17 +10,14 @@ import { useFocusedRecordTableRow } from '@/object-record/record-table/hooks/use
import { PageFocusId } from '@/types/PageFocusId';
import { useHotkeysOnFocusedElement } from '@/ui/utilities/hotkey/hooks/useHotkeysOnFocusedElement';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
-import { RecordUpdateContext } from '@/object-record/record-table/contexts/EntityUpdateMutationHookContext';
type RecordTableWithWrappersProps = {
objectNameSingular: string;
recordTableId: string;
viewBarId: string;
- updateRecordMutation: (params: any) => void;
};
export const RecordTableWithWrappers = ({
- updateRecordMutation,
objectNameSingular,
recordTableId,
viewBarId,
@@ -66,10 +62,7 @@ export const RecordTableWithWrappers = ({
<ScrollWrapper
componentInstanceId={`record-table-scroll-${recordTableId}`}
>
- <RecordUpdateContext.Provider value={updateRecordMutation}>
- <RecordTable />
- <RecordIndexTableContainerEffect />
- </RecordUpdateContext.Provider>
+ <RecordTable />
</ScrollWrapper>
</EntityDeleteContext.Provider>
</RecordTableContextProvider>
diff --git a/packages/twenty-front/src/modules/object-record/record-table/contexts/EntityUpdateMutationHookContext.ts b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableUpdateContext.ts
similarity index 52%
rename from packages/twenty-front/src/modules/object-record/record-table/contexts/EntityUpdateMutationHookContext.ts
rename to packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableUpdateContext.ts
index 7400936b0b4..d0d2a6d5190 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/contexts/EntityUpdateMutationHookContext.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableUpdateContext.ts
@@ -2,6 +2,6 @@ import { createContext } from 'react';
import { type RecordUpdateHookParams } from '@/object-record/record-field/ui/contexts/FieldContext';
-export const RecordUpdateContext = createContext<
- (params: RecordUpdateHookParams) => void
->({} as any);
+export const RecordTableUpdateContext = createContext<
+ ((params: RecordUpdateHookParams) => void) | undefined
+>(undefined);
diff --git a/packages/twenty-front/src/modules/object-record/record-table/hooks/useRecordTableLastColumnWidthToFill.ts b/packages/twenty-front/src/modules/object-record/record-table/hooks/useRecordTableLastColumnWidthToFill.ts
index a28cfb5013a..b2c3667c1c5 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/hooks/useRecordTableLastColumnWidthToFill.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/hooks/useRecordTableLastColumnWidthToFill.ts
@@ -1,4 +1,6 @@
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { recordTableWidthComponentState } from '@/object-record/record-table/states/recordTableWidthComponentState';
import { shouldCompactRecordTableFirstColumnComponentState } from '@/object-record/record-table/states/shouldCompactRecordTableFirstColumnComponentState';
import { computeLastRecordTableColumnWidth } from '@/object-record/record-table/utils/computeLastRecordTableColumnWidth';
@@ -15,10 +17,20 @@ export const useRecordTableLastColumnWidthToFill = () => {
shouldCompactRecordTableFirstColumnComponentState,
);
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
const { lastColumnWidth } = computeLastRecordTableColumnWidth({
recordFields: visibleRecordFields,
tableWidth: recordTableWidth,
shouldCompactFirstColumn: shouldCompactRecordTableFirstColumn,
+ isDragColumnHidden: isRecordTableDragColumnHidden,
+ isCheckboxColumnHidden: isRecordTableCheckboxColumnHidden,
});
return {
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx
index 0e0e8084529..0d46b1535a2 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx
@@ -4,6 +4,9 @@ import { RecordTableRowDraggableContextProvider } from '@/object-record/record-t
import { RecordTableBody } from '@/object-record/record-table/record-table-body/components/RecordTableBody';
import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';
import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { RecordTableCellLoading } from '@/object-record/record-table/record-table-cell/components/RecordTableCellLoading';
import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';
import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';
@@ -12,6 +15,14 @@ import { RecordTableTr } from '@/object-record/record-table/record-table-row/com
export const RecordTableBodyLoading = () => {
const { visibleRecordFields } = useRecordTableContextOrThrow();
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
return (
<RecordTableBody>
{Array.from({ length: 80 }).map((_, rowIndex) => (
@@ -38,8 +49,10 @@ export const RecordTableBodyLoading = () => {
data-testid={`row-id-${rowIndex}`}
data-selectable-id={`row-id-${rowIndex}`}
>
- <RecordTableCellDragAndDrop />
- <RecordTableCellCheckbox />
+ {!isRecordTableDragColumnHidden && <RecordTableCellDragAndDrop />}
+ {!isRecordTableCheckboxColumnHidden && (
+ <RecordTableCellCheckbox />
+ )}
{visibleRecordFields.map((recordField, index) => (
<RecordTableCellLoading
key={recordField.fieldMetadataItemId}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyVirtualizedDraggableClone.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyVirtualizedDraggableClone.tsx
index acdb247dece..b43e62056e5 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyVirtualizedDraggableClone.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyVirtualizedDraggableClone.tsx
@@ -65,13 +65,13 @@ const cloneColumnFieldWidthRules = Array.from(
).join('\n');
const StyledRowDraggableCloneCSSBridge = styled.div`
- div.table-cell:nth-of-type(1) {
+ div.table-cell.${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME} {
left: 0px;
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
}
- div.table-cell:nth-of-type(2) {
+ div.table-cell.${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME} {
left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
@@ -84,7 +84,7 @@ const StyledRowDraggableCloneCSSBridge = styled.div`
${HorizontalScrollBoxShadowCSS}
}
- div.table-cell:nth-of-type(3) {
+ div.table-cell.${getRecordTableColumnFieldWidthClassName(0)} {
left: ${`${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`};
position: sticky;
z-index: ${TABLE_Z_INDEX.cell.sticky};
@@ -147,7 +147,7 @@ export const RecordTableBodyVirtualizedDraggableClone = ({
const columnWidthStyles = useMemo(() => {
const styles: Record<string, string> =
- getRecordTableColumnWidthInlineStyles(visibleRecordFields);
+ getRecordTableColumnWidthInlineStyles({ visibleRecordFields });
styles[RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME] =
`${lastColumnWidth}px`;
styles[
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx
index f6edb380784..79de3b6b5f0 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx
@@ -5,7 +5,9 @@ import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldCont
import { isFieldIdentifierDisplay } from '@/object-record/record-field/ui/meta-types/display/utils/isFieldIdentifierDisplay';
import { RECORD_CHIP_CLICK_OUTSIDE_ID } from '@/object-record/record-table/constants/RecordChipClickOutsideId';
import { RecordTableCellContext } from '@/object-record/record-table/contexts/RecordTableCellContext';
+import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { useOpenRecordTableCellFromCell } from '@/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCellFromCell';
+import { getRecordTableCellId } from '@/object-record/record-table/utils/getRecordTableCellId';
import { ThemeContext } from 'twenty-ui/theme-constants';
const StyledBaseContainer = styled.div<{
@@ -57,6 +59,7 @@ export const RecordTableCellBaseContainer = ({
const { theme } = useContext(ThemeContext);
const { cellPosition } = useContext(RecordTableCellContext);
+ const { recordTableId } = useRecordTableContextOrThrow();
const isChipDisplay = isFieldIdentifierDisplay(
fieldDefinition,
@@ -74,7 +77,11 @@ export const RecordTableCellBaseContainer = ({
fontColorSecondary={theme.font.color.secondary}
fontColorMedium={theme.border.color.medium}
isReadOnly={isReadOnly ?? false}
- id={`record-table-cell-${cellPosition.column}-${cellPosition.row}`}
+ id={getRecordTableCellId(
+ recordTableId,
+ cellPosition.column,
+ cellPosition.row,
+ )}
data-record-table-col={cellPosition.column}
data-record-table-row={cellPosition.row}
data-click-outside-id={
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckboxPlaceholder.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckboxPlaceholder.tsx
index b111317a0fe..1ce388fb73f 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckboxPlaceholder.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckboxPlaceholder.tsx
@@ -19,24 +19,18 @@ const StyledContainer = styled.div`
width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH};
`;
-const StyledRecordTableTdContainer = styled.div`
- border-left: 1px solid transparent;
-`;
-
export const RecordTableCellCheckboxPlaceholder = () => {
const { hasUserSelectedAllRows } = useRecordTableBodyContextOrThrow();
return (
- <StyledRecordTableTdContainer>
- <RecordTableCellStyleWrapper
- isSelected={hasUserSelectedAllRows}
- hasRightBorder={false}
- widthClassName={RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME}
- >
- <StyledContainer data-select-disable>
- <Checkbox hoverable checked={hasUserSelectedAllRows === true} />
- </StyledContainer>
- </RecordTableCellStyleWrapper>
- </StyledRecordTableTdContainer>
+ <RecordTableCellStyleWrapper
+ isSelected={hasUserSelectedAllRows}
+ hasRightBorder={false}
+ widthClassName={RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME}
+ >
+ <StyledContainer data-select-disable>
+ <Checkbox hoverable checked={hasUserSelectedAllRows === true} />
+ </StyledContainer>
+ </RecordTableCellStyleWrapper>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextGeneric.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextGeneric.tsx
index df76c93c0e7..5dd7d715c0f 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextGeneric.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextGeneric.tsx
@@ -9,9 +9,11 @@ import { getJunctionConfig } from '@/object-record/record-field/ui/utils/junctio
import { getTargetObjectMetadataIdsFromField } from '@/object-record/record-field/ui/utils/junction/getTargetObjectMetadataIdsFromField';
import { hasJunctionConfig } from '@/object-record/record-field/ui/utils/junction/hasJunctionConfig';
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
-import { RecordUpdateContext } from '@/object-record/record-table/contexts/EntityUpdateMutationHookContext';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { useRecordTableRowContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowContext';
+import { RecordTableUpdateContext } from '@/object-record/record-table/contexts/RecordTableUpdateContext';
+import { isRecordTableCellsNonEditableComponentState } from '@/object-record/record-table/states/isRecordTableCellsNonEditableComponentState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useContext, type ReactNode } from 'react';
import { isDefined } from 'twenty-shared/utils';
type RecordTableCellFieldContextGenericProps = {
@@ -25,6 +27,10 @@ export const RecordTableCellFieldContextGeneric = ({
}: RecordTableCellFieldContextGenericProps) => {
const { recordId, isRecordReadOnly } = useRecordTableRowContextOrThrow();
+ const isRecordTableCellsNonEditable = useAtomComponentStateValue(
+ isRecordTableCellsNonEditableComponentState,
+ );
+
const { objectMetadataItem, objectMetadataItems, objectPermissions } =
useRecordTableContextOrThrow();
@@ -36,7 +42,7 @@ export const RecordTableCellFieldContextGeneric = ({
const fieldDefinition =
fieldDefinitionByFieldMetadataItemId[recordField.fieldMetadataItemId];
- const updateRecord = useContext(RecordUpdateContext);
+ const updateRecord = useContext(RecordTableUpdateContext);
let hasObjectReadPermissions = objectPermissions.canReadObjectRecords;
@@ -90,7 +96,7 @@ export const RecordTableCellFieldContextGeneric = ({
fieldMetadataItemId: recordField.fieldMetadataItemId,
recordId,
fieldDefinition: fieldDefinition,
- useUpdateRecord: () => [updateRecord, {}],
+ useUpdateRecord: updateRecord ? () => [updateRecord, {}] : undefined,
isLabelIdentifier: isLabelIdentifierField({
fieldMetadataItem: {
id: fieldDefinition.fieldMetadataId,
@@ -99,16 +105,18 @@ export const RecordTableCellFieldContextGeneric = ({
objectMetadataItem,
}),
displayedMaxRows: 1,
- isRecordFieldReadOnly: isRecordFieldReadOnly({
- isRecordReadOnly: isRecordReadOnly ?? false,
- isSystemObject: objectMetadataItem.isSystem,
- objectPermissions,
- fieldMetadataItem: {
- id: fieldDefinition.fieldMetadataId,
- isUIReadOnly: fieldDefinition.metadata.isUIReadOnly ?? false,
- isCustom: fieldDefinition.metadata.isCustom ?? false,
- },
- }),
+ isRecordFieldReadOnly:
+ isRecordTableCellsNonEditable ||
+ isRecordFieldReadOnly({
+ isRecordReadOnly: isRecordReadOnly ?? false,
+ isSystemObject: objectMetadataItem.isSystem,
+ objectPermissions,
+ fieldMetadataItem: {
+ id: fieldDefinition.fieldMetadataId,
+ isUIReadOnly: fieldDefinition.metadata.isUIReadOnly ?? false,
+ isCustom: fieldDefinition.metadata.isCustom ?? false,
+ },
+ }),
isForbidden: !hasObjectReadPermissions,
}}
>
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextLabelIdentifier.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextLabelIdentifier.tsx
index 164814144d5..3f676f9fec9 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextLabelIdentifier.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFieldContextLabelIdentifier.tsx
@@ -3,10 +3,11 @@ import { isRecordFieldReadOnly } from '@/object-record/read-only/utils/isRecordF
import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext';
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
import { shouldCompactRecordIndexLabelIdentifierComponentState } from '@/object-record/record-index/states/shouldCompactRecordIndexLabelIdentifierComponentState';
-import { RecordUpdateContext } from '@/object-record/record-table/contexts/EntityUpdateMutationHookContext';
import { RecordTableCellContext } from '@/object-record/record-table/contexts/RecordTableCellContext';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { useRecordTableRowContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowContext';
+import { RecordTableUpdateContext } from '@/object-record/record-table/contexts/RecordTableUpdateContext';
+import { isRecordTableCellsNonEditableComponentState } from '@/object-record/record-table/states/isRecordTableCellsNonEditableComponentState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useContext, type ReactNode } from 'react';
@@ -24,6 +25,10 @@ export const RecordTableCellFieldContextLabelIdentifier = ({
const { recordId, isRecordReadOnly, rowIndex } =
useRecordTableRowContextOrThrow();
+ const isRecordTableCellsNonEditable = useAtomComponentStateValue(
+ isRecordTableCellsNonEditableComponentState,
+ );
+
const { recordField } = useContext(RecordTableCellContext);
const { objectMetadataItem, onRecordIdentifierClick, triggerEvent } =
useRecordTableContextOrThrow();
@@ -39,7 +44,7 @@ export const RecordTableCellFieldContextLabelIdentifier = ({
const hasObjectReadPermissions = objectPermissions.canReadObjectRecords;
- const updateRecord = useContext(RecordUpdateContext);
+ const updateRecord = useContext(RecordTableUpdateContext);
const fieldDefinition =
fieldDefinitionByFieldMetadataItemId[recordField.fieldMetadataItemId];
@@ -53,20 +58,22 @@ export const RecordTableCellFieldContextLabelIdentifier = ({
value={{
recordId,
fieldDefinition,
- useUpdateRecord: () => [updateRecord, {}],
+ useUpdateRecord: updateRecord ? () => [updateRecord, {}] : undefined,
isLabelIdentifier: true,
isLabelIdentifierCompact: shouldCompactRecordIndexLabelIdentifier,
displayedMaxRows: 1,
- isRecordFieldReadOnly: isRecordFieldReadOnly({
- isRecordReadOnly: isRecordReadOnly ?? false,
- isSystemObject: objectMetadataItem.isSystem,
- objectPermissions,
- fieldMetadataItem: {
- id: recordField.fieldMetadataItemId,
- isUIReadOnly: fieldDefinition.metadata.isUIReadOnly ?? false,
- isCustom: fieldDefinition.metadata.isCustom ?? false,
- },
- }),
+ isRecordFieldReadOnly:
+ isRecordTableCellsNonEditable ||
+ isRecordFieldReadOnly({
+ isRecordReadOnly: isRecordReadOnly ?? false,
+ isSystemObject: objectMetadataItem.isSystem,
+ objectPermissions,
+ fieldMetadataItem: {
+ id: recordField.fieldMetadataItemId,
+ isUIReadOnly: fieldDefinition.metadata.isUIReadOnly ?? false,
+ isCustom: fieldDefinition.metadata.isCustom ?? false,
+ },
+ }),
maxWidth: recordField.size,
onRecordChipClick: handleChipClick,
isForbidden: !hasObjectReadPermissions,
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx
index 7834d8b8f01..e4429d1ab8c 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx
@@ -59,7 +59,7 @@ export const RecordTableCellHoveredPortalContent = () => {
const { isRecordFieldReadOnly: isReadOnly } = useContext(FieldContext);
- const isFieldInputOnly = useIsFieldInputOnly();
+ const isFieldInputOnly = useIsFieldInputOnly() && !isReadOnly;
const showButton =
!isFieldInputOnly &&
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellPortalWrapper.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellPortalWrapper.tsx
index f31f8e6c865..66ddde2d392 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellPortalWrapper.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellPortalWrapper.tsx
@@ -1,5 +1,7 @@
+import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { RecordTableCellPortalContexts } from '@/object-record/record-table/record-table-cell/components/RecordTableCellPortalContexts';
import { type TableCellPosition } from '@/object-record/record-table/types/TableCellPosition';
+import { getRecordTableCellId } from '@/object-record/record-table/utils/getRecordTableCellId';
import { createPortal } from 'react-dom';
import { isDefined } from 'twenty-shared/utils';
@@ -10,8 +12,16 @@ export const RecordTableCellPortalWrapper = ({
position: TableCellPosition;
children: React.ReactNode;
}) => {
+ const { recordTableId } = useRecordTableContextOrThrow();
+
+ const cellId = getRecordTableCellId(
+ recordTableId,
+ position.column,
+ position.row,
+ );
+
const tableCellAnchorElement = document.body.querySelector<HTMLAnchorElement>(
- `#record-table-cell-${position.column}-${position.row}`,
+ `#${cellId}`,
);
if (!isDefined(tableCellAnchorElement)) {
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsx
index accaca78843..86edf074b61 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsx
@@ -1,4 +1,4 @@
-import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';
+import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidthClassName';
import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';
import { styled } from '@linaria/react';
import { cx } from '@linaria/core';
@@ -8,13 +8,9 @@ const StyledPlaceholderDragAndDropCell = styled.div`
background-color: ${themeCssVariables.background.primary};
border-bottom: 1px solid ${themeCssVariables.background.primary};
height: ${RECORD_TABLE_ROW_HEIGHT}px;
-
left: 0;
-
- min-width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
-
+ overflow: hidden;
position: sticky;
- width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;
`;
export const RecordTableDragAndDropPlaceholderCell = ({
@@ -22,5 +18,12 @@ export const RecordTableDragAndDropPlaceholderCell = ({
}: {
className?: string;
}) => {
- return <StyledPlaceholderDragAndDropCell className={cx(className)} />;
+ return (
+ <StyledPlaceholderDragAndDropCell
+ className={cx(
+ RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME,
+ className,
+ )}
+ />
+ );
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellInGroup.test.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellInGroup.test.tsx
index 13def6632b5..b409092b11e 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellInGroup.test.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellInGroup.test.tsx
@@ -1,3 +1,4 @@
+import { MockedProvider } from '@apollo/client/testing/react';
import { act, renderHook } from '@testing-library/react';
import { Provider as JotaiProvider } from 'jotai';
@@ -33,38 +34,42 @@ const Wrapper = ({ children }: { children: React.ReactNode }) => {
return (
<JotaiProvider store={jotaiStore}>
- <RecordComponentInstanceContextsWrapper
- componentInstanceId={recordTableId}
- >
- <RecordTableComponentInstance recordTableId={recordTableId}>
- <RecordTableContextProvider
- recordTableId={recordTableId}
- viewBarId="viewBarId"
- objectNameSingular={CoreObjectNameSingular.Person}
- >
- <FieldContext.Provider
- value={{
- fieldDefinition: textfieldDefinition,
- recordId: 'recordId',
- isLabelIdentifier: false,
- isRecordFieldReadOnly: false,
- }}
+ <MockedProvider>
+ <RecordComponentInstanceContextsWrapper
+ componentInstanceId={recordTableId}
+ >
+ <RecordTableComponentInstance recordTableId={recordTableId}>
+ <RecordTableContextProvider
+ recordTableId={recordTableId}
+ viewBarId="viewBarId"
+ objectNameSingular={CoreObjectNameSingular.Person}
>
- <RecordTableRowContextProvider value={recordTableRowContextValue}>
- <RecordTableRowDraggableContextProvider
- value={recordTableRowDraggableContextValue}
+ <FieldContext.Provider
+ value={{
+ fieldDefinition: textfieldDefinition,
+ recordId: 'recordId',
+ isLabelIdentifier: false,
+ isRecordFieldReadOnly: false,
+ }}
+ >
+ <RecordTableRowContextProvider
+ value={recordTableRowContextValue}
>
- <RecordTableCellContext.Provider
- value={{ ...recordTableCellContextValue }}
+ <RecordTableRowDraggableContextProvider
+ value={recordTableRowDraggableContextValue}
>
- {children}
- </RecordTableCellContext.Provider>
- </RecordTableRowDraggableContextProvider>
- </RecordTableRowContextProvider>
- </FieldContext.Provider>
- </RecordTableContextProvider>
- </RecordTableComponentInstance>
- </RecordComponentInstanceContextsWrapper>
+ <RecordTableCellContext.Provider
+ value={{ ...recordTableCellContextValue }}
+ >
+ {children}
+ </RecordTableCellContext.Provider>
+ </RecordTableRowDraggableContextProvider>
+ </RecordTableRowContextProvider>
+ </FieldContext.Provider>
+ </RecordTableContextProvider>
+ </RecordTableComponentInstance>
+ </RecordComponentInstanceContextsWrapper>
+ </MockedProvider>
</JotaiProvider>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellNoGroup.test.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellNoGroup.test.tsx
index fbbc45f194c..0aded5568b0 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellNoGroup.test.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/internal/__tests__/useCloseRecordTableCellNoGroup.test.tsx
@@ -1,3 +1,4 @@
+import { MockedProvider } from '@apollo/client/testing/react';
import { act, renderHook } from '@testing-library/react';
import { Provider as JotaiProvider } from 'jotai';
@@ -33,39 +34,43 @@ const Wrapper = ({ children }: { children: React.ReactNode }) => {
return (
<JotaiProvider store={jotaiStore}>
- <RecordComponentInstanceContextsWrapper
- componentInstanceId={recordTableId}
- >
- <RecordTableComponentInstance recordTableId={recordTableId}>
- <RecordTableContextProvider
- recordTableId={recordTableId}
- viewBarId="viewBarId"
- objectNameSingular={CoreObjectNameSingular.Person}
- onRecordIdentifierClick={() => {}}
- >
- <FieldContext.Provider
- value={{
- fieldDefinition: textfieldDefinition,
- recordId: 'recordId',
- isLabelIdentifier: false,
- isRecordFieldReadOnly: false,
- }}
+ <MockedProvider>
+ <RecordComponentInstanceContextsWrapper
+ componentInstanceId={recordTableId}
+ >
+ <RecordTableComponentInstance recordTableId={recordTableId}>
+ <RecordTableContextProvider
+ recordTableId={recordTableId}
+ viewBarId="viewBarId"
+ objectNameSingular={CoreObjectNameSingular.Person}
+ onRecordIdentifierClick={() => {}}
>
- <RecordTableRowContextProvider value={recordTableRowContextValue}>
- <RecordTableRowDraggableContextProvider
- value={recordTableRowDraggableContextValue}
+ <FieldContext.Provider
+ value={{
+ fieldDefinition: textfieldDefinition,
+ recordId: 'recordId',
+ isLabelIdentifier: false,
+ isRecordFieldReadOnly: false,
+ }}
+ >
+ <RecordTableRowContextProvider
+ value={recordTableRowContextValue}
>
- <RecordTableCellContext.Provider
- value={{ ...recordTableCellContextValue }}
+ <RecordTableRowDraggableContextProvider
+ value={recordTableRowDraggableContextValue}
>
- {children}
- </RecordTableCellContext.Provider>
- </RecordTableRowDraggableContextProvider>
- </RecordTableRowContextProvider>
- </FieldContext.Provider>
- </RecordTableContextProvider>
- </RecordTableComponentInstance>
- </RecordComponentInstanceContextsWrapper>
+ <RecordTableCellContext.Provider
+ value={{ ...recordTableCellContextValue }}
+ >
+ {children}
+ </RecordTableCellContext.Provider>
+ </RecordTableRowDraggableContextProvider>
+ </RecordTableRowContextProvider>
+ </FieldContext.Provider>
+ </RecordTableContextProvider>
+ </RecordTableComponentInstance>
+ </RecordComponentInstanceContextsWrapper>
+ </MockedProvider>
</JotaiProvider>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooter.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooter.tsx
index 2fd1a197886..44ec099ec12 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooter.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooter.tsx
@@ -1,8 +1,10 @@
import { styled } from '@linaria/react';
+import {
+ RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR,
+ RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR,
+} from '@/object-record/record-table/components/RecordTableStyleWrapper';
import { RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnAddColumnButtonWidth';
-import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';
-import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';
import { RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnLastEmptyColumnWidthClassName';
import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
@@ -15,7 +17,10 @@ const StyledPlaceholderDragAndDropFooterCell = styled.div`
bottom: 0;
left: 0px;
position: sticky;
- width: ${`${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`};
+ width: calc(
+ var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR}) +
+ var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR})
+ );
z-index: ${TABLE_Z_INDEX.footer.stickyColumn};
`;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx
index 126afa6e613..78ed6020350 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx
@@ -2,21 +2,29 @@ import { styled } from '@linaria/react';
import { useContext } from 'react';
import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme-constants';
-import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';
-import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';
+import {
+ RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR,
+ RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR,
+} from '@/object-record/record-table/components/RecordTableStyleWrapper';
import { RECORD_TABLE_LABEL_IDENTIFIER_COLUMN_WIDTH_ON_MOBILE } from '@/object-record/record-table/constants/RecordTableLabelIdentifierColumnWidthOnMobile';
import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';
import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { RecordTableColumnAggregateFooterCellContext } from '@/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterCellContext';
+import { RecordTableColumnAggregateFooterValue } from '@/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue';
import { RecordTableColumnFooterWithDropdown } from '@/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterWithDropdown';
+import { hasAggregateOperationForViewFieldFamilySelector } from '@/object-record/record-table/record-table-footer/states/hasAggregateOperationForViewFieldFamilySelector';
+import { isRecordTableColumnResizableComponentState } from '@/object-record/record-table/states/isRecordTableColumnResizableComponentState';
import { getRecordTableColumnFieldWidthClassName } from '@/object-record/record-table/utils/getRecordTableColumnFieldWidthClassName';
+import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { cx } from '@linaria/core';
import { findByProperty, isDefined } from 'twenty-shared/utils';
const StyledColumnFooterCell = styled.div<{
columnWidth: number;
isFirstCell: boolean;
+ isReadOnly: boolean;
}>`
background-color: ${themeCssVariables.background.primary};
border-right: solid 1px ${themeCssVariables.background.primary};
@@ -25,16 +33,23 @@ const StyledColumnFooterCell = styled.div<{
color: ${themeCssVariables.font.color.tertiary};
+ cursor: ${({ isReadOnly }) => (isReadOnly ? 'default' : 'pointer')};
height: ${RECORD_TABLE_ROW_HEIGHT}px;
+
left: ${({ isFirstCell }) =>
isFirstCell
- ? `${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px`
+ ? `calc(var(${RECORD_TABLE_DRAG_DROP_WIDTH_CSS_VAR}) + var(${RECORD_TABLE_CHECKBOX_WIDTH_CSS_VAR}))`
: 'auto'};
- min-width: ${({ columnWidth }) => columnWidth}px;
&:hover {
- background: ${themeCssVariables.background.secondary};
+ background: ${({ isReadOnly }) =>
+ isReadOnly
+ ? themeCssVariables.background.primary
+ : themeCssVariables.background.secondary};
}
+
+ min-width: ${({ columnWidth }) => columnWidth}px;
+
overflow: hidden;
padding: 0;
@@ -80,10 +95,21 @@ export const RecordTableAggregateFooterCell = ({
}) => {
const { visibleRecordFields } = useRecordTableContextOrThrow();
- const { fieldMetadataId } = useContext(
+ const { fieldMetadataId, viewFieldId } = useContext(
RecordTableColumnAggregateFooterCellContext,
);
+ const hasAggregateOperationForViewField = useAtomFamilySelectorValue(
+ hasAggregateOperationForViewFieldFamilySelector,
+ { viewFieldId },
+ );
+
+ const isRecordTableColumnResizable = useAtomComponentStateValue(
+ isRecordTableColumnResizableComponentState,
+ );
+
+ const isFooterReadOnly = !isRecordTableColumnResizable;
+
const recordField = visibleRecordFields.find(
findByProperty('fieldMetadataItemId', fieldMetadataId),
);
@@ -98,16 +124,26 @@ export const RecordTableAggregateFooterCell = ({
<StyledColumnFooterCell
columnWidth={recordField.size + 1}
isFirstCell={isFirstCell}
+ isReadOnly={isFooterReadOnly}
className={cx(
'footer-cell',
getRecordTableColumnFieldWidthClassName(columnIndex),
)}
>
<StyledColumnFootContainer>
- <RecordTableColumnFooterWithDropdown
- currentRecordGroupId={currentRecordGroupId}
- isFirstCell={isFirstCell}
- />
+ {isFooterReadOnly ? (
+ hasAggregateOperationForViewField ? (
+ <RecordTableColumnAggregateFooterValue
+ fieldMetadataId={fieldMetadataId}
+ dropdownId={`${fieldMetadataId}-footer-readonly`}
+ />
+ ) : null
+ ) : (
+ <RecordTableColumnFooterWithDropdown
+ currentRecordGroupId={currentRecordGroupId}
+ isFirstCell={isFirstCell}
+ />
+ )}
</StyledColumnFootContainer>
</StyledColumnFooterCell>
);
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
index 69871410e23..01ba0b11814 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
@@ -5,10 +5,15 @@ import { RecordTableHeaderAddColumnButton } from '@/object-record/record-table/r
import { RecordTableHeaderCell } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderCell';
import { RecordTableHeaderCheckboxColumn } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn';
import { RecordTableHeaderDragDropColumn } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderDragDropColumn';
+import { RecordTableHeaderEmptyLastColumn } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderEmptyLastColumn';
import { RecordTableHeaderFirstCell } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell';
import { RecordTableHeaderFirstScrollableCell } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderFirstScrollableCell';
import { RecordTableHeaderLastEmptyColumn } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderLastEmptyColumn';
import { useResizeTableHeader } from '@/object-record/record-table/record-table-header/hooks/useResizeTableHeader';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableColumnHeadersReadOnlyComponentState } from '@/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { styled } from '@linaria/react';
import { filterOutByProperty } from 'twenty-shared/utils';
@@ -24,6 +29,18 @@ export const RecordTableHeader = () => {
const { visibleRecordFields } = useRecordTableContextOrThrow();
const { labelIdentifierFieldMetadataItem } = useRecordIndexContextOrThrow();
+ const isRecordTableColumnHeadersReadOnly = useAtomComponentStateValue(
+ isRecordTableColumnHeadersReadOnlyComponentState,
+ );
+
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
const recordFieldsWithoutLabelIdentifierAndFirstOne = visibleRecordFields
.filter(
filterOutByProperty(
@@ -37,8 +54,10 @@ export const RecordTableHeader = () => {
return (
<StyledHeaderContainer>
- <RecordTableHeaderDragDropColumn />
- <RecordTableHeaderCheckboxColumn />
+ {!isRecordTableDragColumnHidden && <RecordTableHeaderDragDropColumn />}
+ {!isRecordTableCheckboxColumnHidden && (
+ <RecordTableHeaderCheckboxColumn />
+ )}
<RecordTableHeaderFirstCell />
<RecordTableHeaderFirstScrollableCell />
{recordFieldsWithoutLabelIdentifierAndFirstOne.map(
@@ -50,7 +69,11 @@ export const RecordTableHeader = () => {
/>
),
)}
- <RecordTableHeaderAddColumnButton />
+ {isRecordTableColumnHeadersReadOnly ? (
+ <RecordTableHeaderEmptyLastColumn />
+ ) : (
+ <RecordTableHeaderAddColumnButton />
+ )}
<RecordTableHeaderLastEmptyColumn />
</StyledHeaderContainer>
);
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderAddColumnButton.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderAddColumnButton.tsx
index 23077819e7f..056469978fc 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderAddColumnButton.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderAddColumnButton.tsx
@@ -30,7 +30,6 @@ const StyledPlusIconHeaderCell = styled.div<{
? `1px solid ${themeCssVariables.border.color.light}`
: 'none'};
- border-right: ${themeCssVariables.border.color.light} !important;
color: ${themeCssVariables.font.color.tertiary};
cursor: pointer;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCell.tsx
index fadbc5ed892..346235c8328 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCell.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCell.tsx
@@ -2,9 +2,12 @@ import { type RecordField } from '@/object-record/record-field/types/RecordField
import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { RecordTableColumnHead } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHead';
import { RecordTableColumnHeadWithDropdown } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHeadWithDropdown';
import { RecordTableHeaderCellContainer } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer';
import { RecordTableHeaderResizeHandler } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderResizeHandler';
+import { isRecordTableColumnHeadersReadOnlyComponentState } from '@/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState';
+import { isRecordTableColumnResizableComponentState } from '@/object-record/record-table/states/isRecordTableColumnResizableComponentState';
import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';
import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
@@ -28,6 +31,14 @@ export const RecordTableHeaderCell = ({
}: RecordTableHeaderCellProps) => {
const { objectMetadataItem } = useRecordTableContextOrThrow();
+ const isRecordTableColumnHeadersReadOnly = useAtomComponentStateValue(
+ isRecordTableColumnHeadersReadOnlyComponentState,
+ );
+
+ const isRecordTableColumnResizable = useAtomComponentStateValue(
+ isRecordTableColumnResizableComponentState,
+ );
+
const isRecordTableRowActive = useAtomComponentFamilyStateValue(
isRecordTableRowActiveComponentFamilyState,
0,
@@ -74,19 +85,28 @@ export const RecordTableHeaderCell = ({
key={recordField.fieldMetadataItemId}
shouldDisplayBorderBottom={shouldDisplayBorderBottom}
isResizing={isResizingAnyColumn}
+ isReadOnly={isRecordTableColumnHeadersReadOnly}
>
- <RecordTableHeaderResizeHandler
- recordFieldIndex={recordFieldIndex}
- position="left"
- />
- <RecordTableColumnHeadWithDropdown
- recordField={recordField}
- objectMetadataId={objectMetadataItem.id}
- />
- <RecordTableHeaderResizeHandler
- recordFieldIndex={recordFieldIndex}
- position="right"
- />
+ {isRecordTableColumnResizable && (
+ <RecordTableHeaderResizeHandler
+ recordFieldIndex={recordFieldIndex}
+ position="left"
+ />
+ )}
+ {isRecordTableColumnHeadersReadOnly ? (
+ <RecordTableColumnHead recordField={recordField} />
+ ) : (
+ <RecordTableColumnHeadWithDropdown
+ recordField={recordField}
+ objectMetadataId={objectMetadataItem.id}
+ />
+ )}
+ {isRecordTableColumnResizable && (
+ <RecordTableHeaderResizeHandler
+ recordFieldIndex={recordFieldIndex}
+ position="right"
+ />
+ )}
</RecordTableHeaderCellContainer>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer.tsx
index 35c46410033..b842a78b331 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer.tsx
@@ -6,6 +6,7 @@ const StyledHeaderCell = styled.div<{
zIndex?: number;
shouldDisplayBorderBottom: boolean;
isResizing: boolean;
+ isReadOnly: boolean;
}>`
background-color: ${themeCssVariables.background.primary};
border-bottom: ${({ shouldDisplayBorderBottom }) =>
@@ -16,7 +17,8 @@ const StyledHeaderCell = styled.div<{
color: ${themeCssVariables.font.color.tertiary};
- cursor: ${({ isResizing }) => (isResizing ? 'col-resize' : 'pointer')};
+ cursor: ${({ isResizing, isReadOnly }) =>
+ isReadOnly ? 'default' : isResizing ? 'col-resize' : 'pointer'};
height: ${RECORD_TABLE_ROW_HEIGHT}px;
max-height: ${RECORD_TABLE_ROW_HEIGHT}px;
@@ -27,15 +29,15 @@ const StyledHeaderCell = styled.div<{
text-align: left;
&:hover {
- background: ${({ isResizing }) =>
- isResizing
+ background: ${({ isResizing, isReadOnly }) =>
+ isReadOnly || isResizing
? themeCssVariables.background.primary
: themeCssVariables.background.secondary};
}
&:active {
- background: ${({ isResizing }) =>
- isResizing
+ background: ${({ isResizing, isReadOnly }) =>
+ isReadOnly || isResizing
? themeCssVariables.background.primary
: themeCssVariables.background.tertiary};
}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx
index 6338caf2d41..25f1cf043d5 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx
@@ -3,7 +3,6 @@ import { styled } from '@linaria/react';
import { recordIndexAllRecordIdsComponentSelector } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';
import { themeCssVariables } from 'twenty-ui/theme-constants';
-import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';
import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';
import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidthClassName';
import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';
@@ -11,26 +10,16 @@ import { useRecordTableContextOrThrow } from '@/object-record/record-table/conte
import { useResetTableRowSelection } from '@/object-record/record-table/hooks/internal/useResetTableRowSelection';
import { useSelectAllRows } from '@/object-record/record-table/hooks/internal/useSelectAllRows';
import { isRecordTableInitialLoadingComponentState } from '@/object-record/record-table/states/isRecordTableInitialLoadingComponentState';
-import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';
-import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
-import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
-import { isRecordTableScrolledVerticallyComponentState } from '@/object-record/record-table/states/isRecordTableScrolledVerticallyComponentState';
import { allRowsSelectedStatusComponentSelector } from '@/object-record/record-table/states/selectors/allRowsSelectedStatusComponentSelector';
-import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';
import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { cx } from '@linaria/core';
import { Checkbox } from 'twenty-ui/input';
-const StyledContainer = styled.div<{
- shouldDisplayBorderBottom: boolean;
-}>`
+const StyledContainer = styled.div`
align-items: center;
background-color: ${themeCssVariables.background.primary};
- border-bottom: ${({ shouldDisplayBorderBottom }) =>
- shouldDisplayBorderBottom
- ? `1px solid ${themeCssVariables.border.color.light}`
- : 'none'};
+ border-bottom: 1px solid ${themeCssVariables.border.color.light};
display: flex;
height: ${RECORD_TABLE_ROW_HEIGHT}px;
justify-content: center;
@@ -41,7 +30,6 @@ const StyledContainer = styled.div<{
const StyledColumnHeaderCell = styled.div`
background-color: ${themeCssVariables.background.primary};
- box-sizing: border-box;
cursor: pointer;
max-height: ${RECORD_TABLE_ROW_HEIGHT}px;
@@ -85,37 +73,6 @@ export const RecordTableHeaderCheckboxColumn = () => {
}
};
- const isRecordTableRowActive = useAtomComponentFamilyStateValue(
- isRecordTableRowActiveComponentFamilyState,
- 0,
- );
-
- const isRecordTableRowFocused = useAtomComponentFamilyStateValue(
- isRecordTableRowFocusedComponentFamilyState,
- 0,
- );
-
- const isRecordTableRowFocusActive = useAtomComponentStateValue(
- isRecordTableRowFocusActiveComponentState,
- );
-
- const isFirstRowActiveOrFocused =
- isRecordTableRowActive ||
- (isRecordTableRowFocused && isRecordTableRowFocusActive);
-
- const isRecordTableScrolledVertically = useAtomComponentStateValue(
- isRecordTableScrolledVerticallyComponentState,
- );
-
- const hasRecordGroups = useAtomComponentSelectorValue(
- hasRecordGroupsComponentSelector,
- );
-
- const shouldDisplayBorderBottom =
- hasRecordGroups ||
- !isFirstRowActiveOrFocused ||
- isRecordTableScrolledVertically;
-
return (
<StyledColumnHeaderCell
className={cx(
@@ -123,10 +80,7 @@ export const RecordTableHeaderCheckboxColumn = () => {
RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME,
)}
>
- <StyledContainer
- shouldDisplayBorderBottom={shouldDisplayBorderBottom}
- data-select-disable
- >
+ <StyledContainer data-select-disable>
<Checkbox
hoverable
checked={checked}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderEmptyLastColumn.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderEmptyLastColumn.tsx
new file mode 100644
index 00000000000..6cd38732dcb
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderEmptyLastColumn.tsx
@@ -0,0 +1,71 @@
+import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';
+import { RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnAddColumnButtonWidth';
+import { RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnAddColumnButtonWidthClassName';
+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';
+import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';
+import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
+import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
+import { isRecordTableScrolledVerticallyComponentState } from '@/object-record/record-table/states/isRecordTableScrolledVerticallyComponentState';
+import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';
+import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { cx } from '@linaria/core';
+import { styled } from '@linaria/react';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+
+const StyledEmptyHeaderCell = styled.div<{
+ shouldDisplayBorderBottom: boolean;
+}>`
+ background-color: ${themeCssVariables.background.primary};
+ border-bottom: ${({ shouldDisplayBorderBottom }) =>
+ shouldDisplayBorderBottom
+ ? `1px solid ${themeCssVariables.border.color.light}`
+ : 'none'};
+ height: ${RECORD_TABLE_ROW_HEIGHT}px;
+ max-height: ${RECORD_TABLE_ROW_HEIGHT}px;
+ width: ${RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH}px;
+ z-index: 1;
+`;
+
+export const RecordTableHeaderEmptyLastColumn = () => {
+ const isRecordTableRowActive = useAtomComponentFamilyStateValue(
+ isRecordTableRowActiveComponentFamilyState,
+ 0,
+ );
+
+ const isRecordTableRowFocused = useAtomComponentFamilyStateValue(
+ isRecordTableRowFocusedComponentFamilyState,
+ 0,
+ );
+
+ const isRecordTableRowFocusActive = useAtomComponentStateValue(
+ isRecordTableRowFocusActiveComponentState,
+ );
+
+ const isFirstRowActiveOrFocused =
+ isRecordTableRowActive ||
+ (isRecordTableRowFocused && isRecordTableRowFocusActive);
+
+ const isRecordTableScrolledVertically = useAtomComponentStateValue(
+ isRecordTableScrolledVerticallyComponentState,
+ );
+
+ const hasRecordGroups = useAtomComponentSelectorValue(
+ hasRecordGroupsComponentSelector,
+ );
+
+ const shouldDisplayBorderBottom =
+ hasRecordGroups ||
+ !isFirstRowActiveOrFocused ||
+ isRecordTableScrolledVertically;
+
+ return (
+ <StyledEmptyHeaderCell
+ shouldDisplayBorderBottom={shouldDisplayBorderBottom}
+ className={cx(
+ 'header-cell',
+ RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH_CLASS_NAME,
+ )}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx
index 639091339ff..0d89c834440 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx
@@ -1,6 +1,7 @@
import { styled } from '@linaria/react';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { RecordTableColumnHead } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHead';
import { RecordTableColumnHeadWithDropdown } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHeadWithDropdown';
import { RecordTableHeaderResizeHandler } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderResizeHandler';
@@ -10,6 +11,8 @@ import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/s
import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';
import { RecordTableHeaderLabelIdentifierCellPlusButton } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderLabelIdentifierCellPlusButton';
import { getVisibleFieldWithLowestPosition } from '@/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition';
+import { isRecordTableColumnHeadersReadOnlyComponentState } from '@/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState';
+import { isRecordTableColumnResizableComponentState } from '@/object-record/record-table/states/isRecordTableColumnResizableComponentState';
import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';
import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
@@ -34,6 +37,14 @@ export const RecordTableHeaderFirstCell = () => {
const { objectMetadataItem, visibleRecordFields } =
useRecordTableContextOrThrow();
+ const isRecordTableColumnHeadersReadOnly = useAtomComponentStateValue(
+ isRecordTableColumnHeadersReadOnlyComponentState,
+ );
+
+ const isRecordTableColumnResizable = useAtomComponentStateValue(
+ isRecordTableColumnResizableComponentState,
+ );
+
const [iconIsVisible, setIconIsVisible] = useState(false);
const isRecordTableRowActive = useAtomComponentFamilyStateValue(
@@ -87,18 +98,25 @@ export const RecordTableHeaderFirstCell = () => {
onMouseLeave={() => setIconIsVisible(false)}
shouldDisplayBorderBottom={shouldDisplayBorderBottom}
isResizing={isResizingAnyColumn}
+ isReadOnly={isRecordTableColumnHeadersReadOnly}
>
- <RecordTableColumnHeadWithDropdown
- recordField={recordField}
- objectMetadataId={objectMetadataItem.id}
- />
- {iconIsVisible && (
+ {isRecordTableColumnHeadersReadOnly ? (
+ <RecordTableColumnHead recordField={recordField} />
+ ) : (
+ <RecordTableColumnHeadWithDropdown
+ recordField={recordField}
+ objectMetadataId={objectMetadataItem.id}
+ />
+ )}
+ {iconIsVisible && !isRecordTableColumnHeadersReadOnly && (
<StyledPlusButtonWrapper>
<RecordTableHeaderLabelIdentifierCellPlusButton />
</StyledPlusButtonWrapper>
)}
- <RecordTableHeaderResizeHandler recordFieldIndex={0} position="right" />
+ {isRecordTableColumnResizable && (
+ <RecordTableHeaderResizeHandler recordFieldIndex={0} position="right" />
+ )}
</RecordTableHeaderCellContainer>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstScrollableCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstScrollableCell.tsx
index 099bf7c57ad..320086b7aa0 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstScrollableCell.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstScrollableCell.tsx
@@ -2,12 +2,15 @@ import { type RecordField } from '@/object-record/record-field/types/RecordField
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { RecordTableColumnHead } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHead';
import { RecordTableColumnHeadWithDropdown } from '@/object-record/record-table/record-table-header/components/RecordTableColumnHeadWithDropdown';
import { RecordTableHeaderResizeHandler } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderResizeHandler';
import { RecordTableHeaderCellContainer } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderCellContainer';
import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';
+import { isRecordTableColumnHeadersReadOnlyComponentState } from '@/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState';
+import { isRecordTableColumnResizableComponentState } from '@/object-record/record-table/states/isRecordTableColumnResizableComponentState';
import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';
import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
@@ -24,6 +27,14 @@ export const RecordTableHeaderFirstScrollableCell = () => {
const { objectMetadataItem, visibleRecordFields } =
useRecordTableContextOrThrow();
+ const isRecordTableColumnHeadersReadOnly = useAtomComponentStateValue(
+ isRecordTableColumnHeadersReadOnlyComponentState,
+ );
+
+ const isRecordTableColumnResizable = useAtomComponentStateValue(
+ isRecordTableColumnResizableComponentState,
+ );
+
const isRecordTableRowActive = useAtomComponentFamilyStateValue(
isRecordTableRowActiveComponentFamilyState,
0,
@@ -81,13 +92,22 @@ export const RecordTableHeaderFirstScrollableCell = () => {
shouldDisplayBorderBottom={shouldDisplayBorderBottom}
zIndex={TABLE_Z_INDEX.headerColumns.headerColumnsNormal}
isResizing={isResizingAnyColumn}
+ isReadOnly={isRecordTableColumnHeadersReadOnly}
>
- <RecordTableHeaderResizeHandler recordFieldIndex={1} position="left" />
- <RecordTableColumnHeadWithDropdown
- recordField={recordField}
- objectMetadataId={objectMetadataItem.id}
- />
- <RecordTableHeaderResizeHandler recordFieldIndex={1} position="right" />
+ {isRecordTableColumnResizable && (
+ <RecordTableHeaderResizeHandler recordFieldIndex={1} position="left" />
+ )}
+ {isRecordTableColumnHeadersReadOnly ? (
+ <RecordTableColumnHead recordField={recordField} />
+ ) : (
+ <RecordTableColumnHeadWithDropdown
+ recordField={recordField}
+ objectMetadataId={objectMetadataItem.id}
+ />
+ )}
+ {isRecordTableColumnResizable && (
+ <RecordTableHeaderResizeHandler recordFieldIndex={1} position="right" />
+ )}
</RecordTableHeaderCellContainer>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/hooks/useResizeTableHeader.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/hooks/useResizeTableHeader.ts
index 0502642d514..a460635ad45 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/hooks/useResizeTableHeader.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/hooks/useResizeTableHeader.ts
@@ -7,6 +7,8 @@ import { useRecordTableContextOrThrow } from '@/object-record/record-table/conte
import { useResetTableRowSelection } from '@/object-record/record-table/hooks/internal/useResetTableRowSelection';
import { recordTableWidthComponentState } from '@/object-record/record-table/states/recordTableWidthComponentState';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { resizedFieldMetadataIdComponentState } from '@/object-record/record-table/states/resizedFieldMetadataIdComponentState';
import { resizeFieldOffsetComponentState } from '@/object-record/record-table/states/resizeFieldOffsetComponentState';
import { shouldCompactRecordTableFirstColumnComponentState } from '@/object-record/record-table/states/shouldCompactRecordTableFirstColumnComponentState';
@@ -69,6 +71,16 @@ export const useResizeTableHeader = () => {
recordTableId,
);
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ recordTableId,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ recordTableId,
+ );
+
const handleResizeHandlerStart = useCallback<PointerEventListener>(
({ x }) => {
resetTableRowSelection();
@@ -98,6 +110,7 @@ export const useResizeTableHeader = () => {
);
updateRecordTableCSSVariable(
+ recordTableId,
getRecordTableColumnFieldWidthCSSVariableName(recordFieldIndex),
`${newWidth}px`,
);
@@ -106,11 +119,14 @@ export const useResizeTableHeader = () => {
recordFields: visibleRecordFields,
shouldCompactFirstColumn: shouldCompactRecordTableFirstColumn,
tableWidth: recordTableWidth,
+ isDragColumnHidden: isRecordTableDragColumnHidden,
+ isCheckboxColumnHidden: isRecordTableCheckboxColumnHidden,
});
const newLastColumnWidth = lastColumnWidth - newResizeOffset;
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME,
`${newLastColumnWidth}px`,
);
@@ -121,6 +137,7 @@ export const useResizeTableHeader = () => {
);
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_COLUMN_WITH_GROUP_LAST_EMPTY_COLUMN_WIDTH_VARIABLE_NAME,
`${newGroupSectionLastColumnWidth}px`,
);
@@ -130,9 +147,12 @@ export const useResizeTableHeader = () => {
[
initialPointerPositionX,
recordField,
+ recordTableId,
visibleRecordFields,
shouldCompactRecordTableFirstColumn,
recordTableWidth,
+ isRecordTableDragColumnHidden,
+ isRecordTableCheckboxColumnHidden,
setResizeFieldOffset,
],
);
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
index 9fd27f090d2..b6b0b197760 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
@@ -1,16 +1,7 @@
-import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';
-import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';
-import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';
-import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';
-
-import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
import { RecordTableDraggableTr } from '@/object-record/record-table/record-table-row/components/RecordTableDraggableTr';
-import { RecordTableFieldsCells } from '@/object-record/record-table/record-table-row/components/RecordTableFieldsCells';
-import { RecordTableRowArrowKeysEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowArrowKeysEffect';
-import { RecordTableRowHotkeyEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowHotkeyEffect';
-import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
-import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
-import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';
+import { RecordTableRowCells } from '@/object-record/record-table/record-table-row/components/RecordTableRowCells';
+import { RecordTableStaticTr } from '@/object-record/record-table/record-table-row/components/RecordTableStaticTr';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
type RecordTableRowProps = {
@@ -24,17 +15,17 @@ export const RecordTableRow = ({
rowIndexForFocus,
rowIndexForDrag,
}: RecordTableRowProps) => {
- const { recordTableId } = useRecordTableContextOrThrow();
-
- const isRecordTableRowFocused = useAtomComponentFamilyStateValue(
- isRecordTableRowFocusedComponentFamilyState,
- rowIndexForFocus,
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
);
- const isRecordTableRowFocusActive = useAtomComponentStateValue(
- isRecordTableRowFocusActiveComponentState,
- recordTableId,
- );
+ if (isRecordTableDragColumnHidden) {
+ return (
+ <RecordTableStaticTr recordId={recordId} focusIndex={rowIndexForFocus}>
+ <RecordTableRowCells rowIndexForFocus={rowIndexForFocus} />
+ </RecordTableStaticTr>
+ );
+ }
return (
<RecordTableDraggableTr
@@ -42,17 +33,7 @@ export const RecordTableRow = ({
draggableIndex={rowIndexForDrag}
focusIndex={rowIndexForFocus}
>
- {isRecordTableRowFocusActive && isRecordTableRowFocused && (
- <>
- <RecordTableRowHotkeyEffect />
- <RecordTableRowArrowKeysEffect />
- </>
- )}
- <RecordTableCellDragAndDrop />
- <RecordTableCellCheckbox />
- <RecordTableFieldsCells />
- <RecordTablePlusButtonCellPlaceholder />
- <RecordTableLastEmptyCell />
+ <RecordTableRowCells rowIndexForFocus={rowIndexForFocus} />
</RecordTableDraggableTr>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRowCells.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRowCells.tsx
new file mode 100644
index 00000000000..d7ed85b3bf9
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRowCells.tsx
@@ -0,0 +1,58 @@
+import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';
+import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';
+import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';
+import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';
+import { RecordTableFieldsCells } from '@/object-record/record-table/record-table-row/components/RecordTableFieldsCells';
+import { RecordTableRowArrowKeysEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowArrowKeysEffect';
+import { RecordTableRowHotkeyEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowHotkeyEffect';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
+import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
+import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
+import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+
+type RecordTableRowCellsProps = {
+ rowIndexForFocus: number;
+};
+
+export const RecordTableRowCells = ({
+ rowIndexForFocus,
+}: RecordTableRowCellsProps) => {
+ const { recordTableId } = useRecordTableContextOrThrow();
+
+ const isRecordTableRowFocused = useAtomComponentFamilyStateValue(
+ isRecordTableRowFocusedComponentFamilyState,
+ rowIndexForFocus,
+ );
+
+ const isRecordTableRowFocusActive = useAtomComponentStateValue(
+ isRecordTableRowFocusActiveComponentState,
+ recordTableId,
+ );
+
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
+ return (
+ <>
+ {isRecordTableRowFocusActive && isRecordTableRowFocused && (
+ <>
+ <RecordTableRowHotkeyEffect />
+ <RecordTableRowArrowKeysEffect />
+ </>
+ )}
+ {!isRecordTableDragColumnHidden && <RecordTableCellDragAndDrop />}
+ {!isRecordTableCheckboxColumnHidden && <RecordTableCellCheckbox />}
+ <RecordTableFieldsCells />
+ <RecordTablePlusButtonCellPlaceholder />
+ <RecordTableLastEmptyCell />
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableStaticTr.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableStaticTr.tsx
new file mode 100644
index 00000000000..aa18de2922b
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableStaticTr.tsx
@@ -0,0 +1,35 @@
+import { type ReactNode } from 'react';
+
+import { RecordTableRowDraggableContextProvider } from '@/object-record/record-table/contexts/RecordTableRowDraggableContext';
+import { RecordTableTr } from '@/object-record/record-table/record-table-row/components/RecordTableTr';
+
+type RecordTableStaticTrProps = {
+ recordId: string;
+ focusIndex: number;
+ children: ReactNode;
+};
+
+export const RecordTableStaticTr = ({
+ recordId,
+ focusIndex,
+ children,
+}: RecordTableStaticTrProps) => {
+ return (
+ <RecordTableTr
+ recordId={recordId}
+ focusIndex={focusIndex}
+ isDragging={false}
+ data-testid={`row-id-${recordId}`}
+ data-selectable-id={recordId}
+ >
+ <RecordTableRowDraggableContextProvider
+ value={{
+ isDragging: false,
+ dragHandleProps: null,
+ }}
+ >
+ {children}
+ </RecordTableRowDraggableContextProvider>
+ </RecordTableTr>
+ );
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCellsNonEditableComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCellsNonEditableComponentState.ts
new file mode 100644
index 00000000000..d3d3b928976
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCellsNonEditableComponentState.ts
@@ -0,0 +1,9 @@
+import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const isRecordTableCellsNonEditableComponentState =
+ createAtomComponentState<boolean>({
+ key: 'isRecordTableCellsNonEditableComponentState',
+ defaultValue: false,
+ componentInstanceContext: RecordTableComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState.ts
new file mode 100644
index 00000000000..eb97f0576a2
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState.ts
@@ -0,0 +1,9 @@
+import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const isRecordTableCheckboxColumnHiddenComponentState =
+ createAtomComponentState<boolean>({
+ key: 'isRecordTableCheckboxColumnHiddenComponentState',
+ defaultValue: false,
+ componentInstanceContext: RecordTableComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState.ts
new file mode 100644
index 00000000000..5aceecc9a8e
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnHeadersReadOnlyComponentState.ts
@@ -0,0 +1,9 @@
+import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const isRecordTableColumnHeadersReadOnlyComponentState =
+ createAtomComponentState<boolean>({
+ key: 'isRecordTableColumnHeadersReadOnlyComponentState',
+ defaultValue: false,
+ componentInstanceContext: RecordTableComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnResizableComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnResizableComponentState.ts
new file mode 100644
index 00000000000..5b85f588d90
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableColumnResizableComponentState.ts
@@ -0,0 +1,9 @@
+import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const isRecordTableColumnResizableComponentState =
+ createAtomComponentState<boolean>({
+ key: 'isRecordTableColumnResizableComponentState',
+ defaultValue: true,
+ componentInstanceContext: RecordTableComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState.ts b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState.ts
new file mode 100644
index 00000000000..909abb49cfc
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState.ts
@@ -0,0 +1,9 @@
+import { RecordTableComponentInstanceContext } from '@/object-record/record-table/states/context/RecordTableComponentInstanceContext';
+import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
+
+export const isRecordTableDragColumnHiddenComponentState =
+ createAtomComponentState<boolean>({
+ key: 'isRecordTableDragColumnHiddenComponentState',
+ defaultValue: false,
+ componentInstanceContext: RecordTableComponentInstanceContext,
+ });
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/computeLastRecordTableColumnWidth.test.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/computeLastRecordTableColumnWidth.test.ts
new file mode 100644
index 00000000000..e868b24ea00
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/computeLastRecordTableColumnWidth.test.ts
@@ -0,0 +1,70 @@
+import { computeLastRecordTableColumnWidth } from '@/object-record/record-table/utils/computeLastRecordTableColumnWidth';
+
+describe('computeLastRecordTableColumnWidth', () => {
+ it('returns 0 when the table is narrower than the total content width', () => {
+ const recordFields = [{ size: 100 }, { size: 100 }];
+
+ const { lastColumnWidth } = computeLastRecordTableColumnWidth({
+ recordFields,
+ tableWidth: 200,
+ shouldCompactFirstColumn: false,
+ isDragColumnHidden: false,
+ isCheckboxColumnHidden: false,
+ });
+
+ expect(lastColumnWidth).toBe(0);
+ });
+
+ it('returns the remaining positive width when the table is wider than the total content width', () => {
+ const recordFields = [{ size: 100 }, { size: 100 }];
+
+ const { lastColumnWidth } = computeLastRecordTableColumnWidth({
+ recordFields,
+ tableWidth: 300,
+ shouldCompactFirstColumn: false,
+ isDragColumnHidden: false,
+ isCheckboxColumnHidden: false,
+ });
+
+ expect(lastColumnWidth).toBe(25);
+ });
+
+ it('excludes drag-and-drop and checkbox widths from the calculation when both columns are hidden', () => {
+ const recordFields = [{ size: 100 }, { size: 100 }];
+
+ const { lastColumnWidth } = computeLastRecordTableColumnWidth({
+ recordFields,
+ tableWidth: 300,
+ shouldCompactFirstColumn: false,
+ isDragColumnHidden: true,
+ isCheckboxColumnHidden: true,
+ });
+
+ expect(lastColumnWidth).toBe(65);
+ });
+
+ it('uses the compact first column width when shouldCompactFirstColumn is true', () => {
+ const recordFields = [{ size: 100 }, { size: 150 }];
+
+ const { lastColumnWidth: lastColumnWidthWithCompact } =
+ computeLastRecordTableColumnWidth({
+ recordFields,
+ tableWidth: 300,
+ shouldCompactFirstColumn: true,
+ isDragColumnHidden: false,
+ isCheckboxColumnHidden: false,
+ });
+
+ const { lastColumnWidth: lastColumnWidthWithoutCompact } =
+ computeLastRecordTableColumnWidth({
+ recordFields,
+ tableWidth: 300,
+ shouldCompactFirstColumn: false,
+ isDragColumnHidden: false,
+ isCheckboxColumnHidden: false,
+ });
+
+ expect(lastColumnWidthWithCompact).toBe(37);
+ expect(lastColumnWidthWithoutCompact).toBe(0);
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableCellId.test.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableCellId.test.ts
new file mode 100644
index 00000000000..e81c8ef64c0
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableCellId.test.ts
@@ -0,0 +1,15 @@
+import { getRecordTableCellId } from '@/object-record/record-table/utils/getRecordTableCellId';
+
+describe('getRecordTableCellId', () => {
+ it('returns the correct cell id format', () => {
+ expect(getRecordTableCellId('my-table', 2, 5)).toBe(
+ 'record-table-cell-my-table-2-5',
+ );
+ });
+
+ it('returns the correct cell id format with different values', () => {
+ expect(getRecordTableCellId('other-table', 0, 0)).toBe(
+ 'record-table-cell-other-table-0-0',
+ );
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableHtmlId.test.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableHtmlId.test.ts
new file mode 100644
index 00000000000..70e308cc8fc
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/__tests__/getRecordTableHtmlId.test.ts
@@ -0,0 +1,13 @@
+import { getRecordTableHtmlId } from '@/object-record/record-table/utils/getRecordTableHtmlId';
+
+describe('getRecordTableHtmlId', () => {
+ it('returns the correct html id format', () => {
+ expect(getRecordTableHtmlId('my-table')).toBe('record-table-my-table');
+ });
+
+ it('returns the correct html id format with a different id', () => {
+ expect(getRecordTableHtmlId('other-table')).toBe(
+ 'record-table-other-table',
+ );
+ });
+});
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/computeLastRecordTableColumnWidth.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/computeLastRecordTableColumnWidth.ts
index 234100d92f2..1d7d28e13ef 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/utils/computeLastRecordTableColumnWidth.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/computeLastRecordTableColumnWidth.ts
@@ -8,10 +8,14 @@ export const computeLastRecordTableColumnWidth = ({
recordFields,
tableWidth,
shouldCompactFirstColumn,
+ isDragColumnHidden,
+ isCheckboxColumnHidden,
}: {
recordFields: Pick<RecordField, 'size'>[];
tableWidth: number;
shouldCompactFirstColumn: boolean;
+ isDragColumnHidden?: boolean;
+ isCheckboxColumnHidden?: boolean;
}) => {
const { visibleRecordFieldsWidth } = computeVisibleRecordFieldsWidthOnTable({
shouldCompactFirstColumn,
@@ -20,9 +24,18 @@ export const computeLastRecordTableColumnWidth = ({
const widthOfBorders = recordFields.length + 1;
+ const dragColumnWidth = isDragColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH;
+
+ const checkboxColumnWidth = isCheckboxColumnHidden
+ ? 0
+ : RECORD_TABLE_COLUMN_CHECKBOX_WIDTH;
+
+ const leftColumnsWidth = dragColumnWidth + checkboxColumnWidth;
+
const fixedColumnsWidth =
- RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH +
- RECORD_TABLE_COLUMN_CHECKBOX_WIDTH +
+ leftColumnsWidth +
RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH +
widthOfBorders;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableCellId.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableCellId.ts
new file mode 100644
index 00000000000..cf1fae243ae
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableCellId.ts
@@ -0,0 +1,7 @@
+export const getRecordTableCellId = (
+ recordTableId: string,
+ column: number,
+ row: number,
+): string => {
+ return `record-table-cell-${recordTableId}-${column}-${row}`;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableHtmlId.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableHtmlId.ts
new file mode 100644
index 00000000000..3ebe909920f
--- /dev/null
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/getRecordTableHtmlId.ts
@@ -0,0 +1,3 @@
+export const getRecordTableHtmlId = (recordTableId: string): string => {
+ return `record-table-${recordTableId}`;
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/utils/updateRecordTableCSSVariable.ts b/packages/twenty-front/src/modules/object-record/record-table/utils/updateRecordTableCSSVariable.ts
index a7ff56e8f28..a185b79ee4a 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/utils/updateRecordTableCSSVariable.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/utils/updateRecordTableCSSVariable.ts
@@ -1,10 +1,11 @@
-import { RECORD_TABLE_HTML_ID } from '@/object-record/record-table/constants/RecordTableHtmlId';
+import { getRecordTableHtmlId } from '@/object-record/record-table/utils/getRecordTableHtmlId';
export const updateRecordTableCSSVariable = (
+ recordTableId: string,
cssVariableName: string,
newValue: string,
) => {
document
- .querySelector<HTMLDivElement>(`#${RECORD_TABLE_HTML_ID}`)
+ .querySelector<HTMLDivElement>(`#${getRecordTableHtmlId(recordTableId)}`)
?.style.setProperty(cssVariableName, newValue);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedFullData.tsx b/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedFullData.tsx
index c5f8eae452c..8efde4a13bb 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedFullData.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedFullData.tsx
@@ -1,19 +1,10 @@
-import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
-import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';
-import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';
-import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';
-import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';
import { RecordTableDraggableTr } from '@/object-record/record-table/record-table-row/components/RecordTableDraggableTr';
-import { RecordTableFieldsCells } from '@/object-record/record-table/record-table-row/components/RecordTableFieldsCells';
-import { RecordTableRowArrowKeysEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowArrowKeysEffect';
-import { RecordTableRowHotkeyEffect } from '@/object-record/record-table/record-table-row/components/RecordTableRowHotkeyEffect';
-import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';
-import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';
+import { RecordTableRowCells } from '@/object-record/record-table/record-table-row/components/RecordTableRowCells';
+import { RecordTableStaticTr } from '@/object-record/record-table/record-table-row/components/RecordTableStaticTr';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { RecordTableRowVirtualizedSkeleton } from '@/object-record/record-table/virtualization/components/RecordTableRowVirtualizedSkeleton';
import { recordIdByRealIndexComponentFamilySelector } from '@/object-record/record-table/virtualization/states/recordIdByRealIndexComponentFamilySelector';
-
import { useAtomComponentFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilySelectorValue';
-import { useAtomComponentFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentFamilyStateValue';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { isDefined } from 'twenty-shared/utils';
@@ -21,20 +12,11 @@ type RecordTableRowVirtualizedFullDataProps = {
realIndex: number;
};
-// TODO: Full Data will take its full meaning when we'll have different levels of data : with relations, only identifiers, etc.
export const RecordTableRowVirtualizedFullData = ({
realIndex,
}: RecordTableRowVirtualizedFullDataProps) => {
- const { recordTableId } = useRecordTableContextOrThrow();
-
- const isRecordTableRowFocused = useAtomComponentFamilyStateValue(
- isRecordTableRowFocusedComponentFamilyState,
- realIndex,
- );
-
- const isRecordTableRowFocusActive = useAtomComponentStateValue(
- isRecordTableRowFocusActiveComponentState,
- recordTableId,
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
);
const recordId = useAtomComponentFamilySelectorValue(
@@ -46,23 +28,21 @@ export const RecordTableRowVirtualizedFullData = ({
return <RecordTableRowVirtualizedSkeleton />;
}
+ if (isRecordTableDragColumnHidden) {
+ return (
+ <RecordTableStaticTr recordId={recordId} focusIndex={realIndex}>
+ <RecordTableRowCells rowIndexForFocus={realIndex} />
+ </RecordTableStaticTr>
+ );
+ }
+
return (
<RecordTableDraggableTr
recordId={recordId}
draggableIndex={realIndex}
focusIndex={realIndex}
>
- <RecordTableCellDragAndDrop />
- <RecordTableCellCheckbox />
- <RecordTableFieldsCells />
- <RecordTablePlusButtonCellPlaceholder />
- <RecordTableLastEmptyCell />
- {isRecordTableRowFocusActive && isRecordTableRowFocused && (
- <>
- <RecordTableRowHotkeyEffect />
- <RecordTableRowArrowKeysEffect />
- </>
- )}
+ <RecordTableRowCells rowIndexForFocus={realIndex} />
</RecordTableDraggableTr>
);
};
diff --git a/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedSkeleton.tsx b/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedSkeleton.tsx
index c6a902409fb..59e905f22ac 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedSkeleton.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/virtualization/components/RecordTableRowVirtualizedSkeleton.tsx
@@ -2,20 +2,35 @@ import { RECORD_TABLE_COLUMN_ADD_COLUMN_BUTTON_WIDTH_CLASS_NAME } from '@/object
import { RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnLastEmptyColumnWidthClassName';
import { useRecordTableBodyContextOrThrow } from '@/object-record/record-table/contexts/RecordTableBodyContext';
import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';
+import { isRecordTableCheckboxColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableCheckboxColumnHiddenComponentState';
+import { isRecordTableDragColumnHiddenComponentState } from '@/object-record/record-table/states/isRecordTableDragColumnHiddenComponentState';
import { RecordTableCellCheckboxPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckboxPlaceholder';
import { RecordTableCellLoading } from '@/object-record/record-table/record-table-cell/components/RecordTableCellLoading';
import { RecordTableCellStyleWrapper } from '@/object-record/record-table/record-table-cell/components/RecordTableCellStyleWrapper';
import { RecordTableDragAndDropPlaceholderCell } from '@/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell';
import { RecordTableRowDiv } from '@/object-record/record-table/record-table-row/components/RecordTableRowDiv';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
export const RecordTableRowVirtualizedSkeleton = () => {
const { visibleRecordFields } = useRecordTableContextOrThrow();
const { hasUserSelectedAllRows } = useRecordTableBodyContextOrThrow();
+ const isRecordTableDragColumnHidden = useAtomComponentStateValue(
+ isRecordTableDragColumnHiddenComponentState,
+ );
+
+ const isRecordTableCheckboxColumnHidden = useAtomComponentStateValue(
+ isRecordTableCheckboxColumnHiddenComponentState,
+ );
+
return (
<RecordTableRowDiv isDragging={false}>
- <RecordTableDragAndDropPlaceholderCell />
- <RecordTableCellCheckboxPlaceholder />
+ {!isRecordTableDragColumnHidden && (
+ <RecordTableDragAndDropPlaceholderCell />
+ )}
+ {!isRecordTableCheckboxColumnHidden && (
+ <RecordTableCellCheckboxPlaceholder />
+ )}
{visibleRecordFields.map((recordField, index) => (
<RecordTableCellLoading
key={recordField.fieldMetadataItemId}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/virtualization/hooks/useTriggerInitialRecordTableDataLoad.ts b/packages/twenty-front/src/modules/object-record/record-table/virtualization/hooks/useTriggerInitialRecordTableDataLoad.ts
index 2b752f4a53a..86b2715647c 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/virtualization/hooks/useTriggerInitialRecordTableDataLoad.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/virtualization/hooks/useTriggerInitialRecordTableDataLoad.ts
@@ -127,11 +127,13 @@ export const useTriggerInitialRecordTableDataLoad = () => {
resetVirtualizedRowTreadmill();
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_VERTICAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME,
'hidden',
);
updateRecordTableCSSVariable(
+ recordTableId,
RECORD_TABLE_HORIZONTAL_SCROLL_SHADOW_VISIBILITY_CSS_VARIABLE_NAME,
'hidden',
);
@@ -226,6 +228,7 @@ export const useTriggerInitialRecordTableDataLoad = () => {
upsertRecordsInStore,
loadRecordsToVirtualRows,
reapplyRowSelection,
+ recordTableId,
],
);
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutGridLayout.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutGridLayout.tsx
index e765b17dc9a..f7edc205595 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutGridLayout.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutGridLayout.tsx
@@ -127,16 +127,6 @@ export const PageLayoutGridLayout = ({ tabId }: PageLayoutGridLayoutProps) => {
tabListInstanceId,
});
- const handleLayoutChangeWithoutPendingPlaceholder = (
- currentLayout: Layout[],
- allLayouts: Layouts,
- ) => {
- handleLayoutChange(
- currentLayout,
- filterPendingPlaceholderFromLayouts(allLayouts),
- );
- };
-
const gridContainerRef = useRef<HTMLDivElement>(null);
const isPageLayoutInEditMode = useIsPageLayoutInEditMode();
@@ -161,6 +151,16 @@ export const PageLayoutGridLayout = ({ tabId }: PageLayoutGridLayoutProps) => {
const hasPendingPlaceholder = isDefined(pageLayoutDraggedArea);
+ const handleLayoutChangeWithoutPendingPlaceholder = (
+ currentLayout: Layout[],
+ allLayouts: Layouts,
+ ) => {
+ handleLayoutChange(
+ currentLayout,
+ filterPendingPlaceholderFromLayouts(allLayouts),
+ );
+ };
+
const baseLayouts = isLayoutEmpty
? EMPTY_LAYOUT
: (pageLayoutCurrentLayouts[tabId] ?? EMPTY_LAYOUT);
diff --git a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
index 29f9e47e894..d3dee6a2839 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
@@ -14,4 +14,8 @@ export const WIDGET_SIZES: Partial<Record<WidgetType, WidgetSizeConfig>> = {
default: { w: 8, h: 8 },
minimum: { w: 4, h: 4 },
},
+ [WidgetType.RECORD_TABLE]: {
+ default: { w: 6, h: 6 },
+ minimum: { w: 4, h: 4 },
+ },
};
diff --git a/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts b/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
index 2ad2d484793..61be555816d 100644
--- a/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
+++ b/packages/twenty-front/src/modules/page-layout/graphql/fragments/pageLayoutWidgetFragment.ts
@@ -188,6 +188,10 @@ export const PAGE_LAYOUT_WIDGET_FRAGMENT = gql`
... on ViewConfiguration {
configurationType
}
+ ... on RecordTableConfiguration {
+ configurationType
+ viewId
+ }
... on WorkflowConfiguration {
configurationType
}
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useDeletePageLayoutWidget.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useDeletePageLayoutWidget.test.tsx
index 72354fc50a6..65d7e486b2d 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useDeletePageLayoutWidget.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useDeletePageLayoutWidget.test.tsx
@@ -8,6 +8,24 @@ import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pa
import { createStore } from 'jotai';
import { type ReactNode } from 'react';
+jest.mock(
+ '@/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget',
+ () => ({
+ useDeleteViewForRecordTableWidget: () => ({
+ deleteViewForRecordTableWidget: jest.fn(),
+ }),
+ }),
+);
+
+jest.mock('@/side-panel/hooks/useSidePanelMenu', () => ({
+ useSidePanelMenu: () => ({
+ closeSidePanelMenu: jest.fn(),
+ openSidePanelMenu: jest.fn(),
+ navigateSidePanelMenu: jest.fn(),
+ toggleSidePanelMenu: jest.fn(),
+ }),
+}));
+
describe('useDeletePageLayoutWidget', () => {
const getWrapper =
(store = createStore()) =>
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useChangePageLayoutDragSelection.ts b/packages/twenty-front/src/modules/page-layout/hooks/useChangePageLayoutDragSelection.ts
index c68f2d2b657..722b5215f55 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useChangePageLayoutDragSelection.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useChangePageLayoutDragSelection.ts
@@ -22,6 +22,10 @@ export const useChangePageLayoutDragSelection = (
const changePageLayoutDragSelection = useCallback(
(cellId: string, selected: boolean) => {
+ if (!cellId.startsWith('cell-')) {
+ return;
+ }
+
store.set(pageLayoutSelectedCellsState, (prev) => {
const newSet = new Set(prev);
if (selected) {
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutRecordTableWidget.ts
new file mode 100644
index 00000000000..7bd75516b83
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutRecordTableWidget.ts
@@ -0,0 +1,120 @@
+import { WIDGET_SIZES } from '@/page-layout/constants/WidgetSizes';
+import { PageLayoutComponentInstanceContext } from '@/page-layout/states/contexts/PageLayoutComponentInstanceContext';
+import { pageLayoutCurrentLayoutsComponentState } from '@/page-layout/states/pageLayoutCurrentLayoutsComponentState';
+import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDraftComponentState';
+import { pageLayoutDraggedAreaComponentState } from '@/page-layout/states/pageLayoutDraggedAreaComponentState';
+import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
+import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab';
+import { createDefaultRecordTableWidget } from '@/page-layout/utils/createDefaultRecordTableWidget';
+import { getDefaultWidgetPosition } from '@/page-layout/utils/getDefaultWidgetPosition';
+import { getTabListInstanceIdFromPageLayoutId } from '@/page-layout/utils/getTabListInstanceIdFromPageLayoutId';
+import { getUpdatedTabLayouts } from '@/page-layout/utils/getUpdatedTabLayouts';
+import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
+import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
+import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { v4 as uuidv4 } from 'uuid';
+import { WidgetType } from '~/generated-metadata/graphql';
+
+export const useCreatePageLayoutRecordTableWidget = (
+ pageLayoutIdFromProps?: string,
+) => {
+ const pageLayoutId = useAvailableComponentInstanceIdOrThrow(
+ PageLayoutComponentInstanceContext,
+ pageLayoutIdFromProps,
+ );
+
+ const activeTabId = useAtomComponentStateValue(
+ activeTabIdComponentState,
+ getTabListInstanceIdFromPageLayoutId(pageLayoutId),
+ );
+
+ const pageLayoutCurrentLayoutsState = useAtomComponentStateCallbackState(
+ pageLayoutCurrentLayoutsComponentState,
+ pageLayoutId,
+ );
+
+ const pageLayoutDraggedAreaState = useAtomComponentStateCallbackState(
+ pageLayoutDraggedAreaComponentState,
+ pageLayoutId,
+ );
+
+ const pageLayoutDraftState = useAtomComponentStateCallbackState(
+ pageLayoutDraftComponentState,
+ pageLayoutId,
+ );
+
+ const store = useStore();
+
+ const createPageLayoutRecordTableWidget =
+ useCallback((): PageLayoutWidget => {
+ const allTabLayouts = store.get(pageLayoutCurrentLayoutsState);
+ const pageLayoutDraggedArea = store.get(pageLayoutDraggedAreaState);
+
+ if (!isDefined(activeTabId)) {
+ throw new Error(
+ 'A tab must be selected to create a new record table widget',
+ );
+ }
+
+ const widgetId = uuidv4();
+ const recordTableSize = WIDGET_SIZES[WidgetType.RECORD_TABLE]!;
+ const defaultSize = recordTableSize.default;
+ const minimumSize = recordTableSize.minimum;
+ const position = getDefaultWidgetPosition(
+ pageLayoutDraggedArea,
+ defaultSize,
+ minimumSize,
+ );
+
+ const newWidget = createDefaultRecordTableWidget(
+ widgetId,
+ activeTabId,
+ 'Record Table',
+ {
+ row: position.y,
+ column: position.x,
+ rowSpan: position.h,
+ columnSpan: position.w,
+ },
+ );
+
+ const newLayout = {
+ i: widgetId,
+ x: position.x,
+ y: position.y,
+ w: position.w,
+ h: position.h,
+ minW: minimumSize.w,
+ minH: minimumSize.h,
+ };
+
+ const updatedLayouts = getUpdatedTabLayouts(
+ allTabLayouts,
+ activeTabId,
+ newLayout,
+ );
+
+ store.set(pageLayoutCurrentLayoutsState, updatedLayouts);
+
+ store.set(pageLayoutDraftState, (prev) => ({
+ ...prev,
+ tabs: addWidgetToTab(prev.tabs, activeTabId, newWidget),
+ }));
+
+ store.set(pageLayoutDraggedAreaState, null);
+
+ return newWidget;
+ }, [
+ activeTabId,
+ pageLayoutCurrentLayoutsState,
+ pageLayoutDraftState,
+ pageLayoutDraggedAreaState,
+ store,
+ ]);
+
+ return { createPageLayoutRecordTableWidget };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useDeletePageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useDeletePageLayoutWidget.ts
index 3f7bee9b913..d9d1ad7a9d6 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useDeletePageLayoutWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useDeletePageLayoutWidget.ts
@@ -4,12 +4,14 @@ import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDr
import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pageLayoutEditingWidgetIdComponentState';
import { removeWidgetFromTab } from '@/page-layout/utils/removeWidgetFromTab';
import { removeWidgetLayoutFromTab } from '@/page-layout/utils/removeWidgetLayoutFromTab';
+import { useDeleteViewForRecordTableWidget } from '@/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget';
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
+import { WidgetType } from '~/generated-metadata/graphql';
export const useDeletePageLayoutWidget = (pageLayoutIdFromProps?: string) => {
const pageLayoutId = useAvailableComponentInstanceIdOrThrow(
@@ -34,6 +36,9 @@ export const useDeletePageLayoutWidget = (pageLayoutIdFromProps?: string) => {
const { closeSidePanelMenu } = useSidePanelMenu();
+ const { deleteViewForRecordTableWidget } =
+ useDeleteViewForRecordTableWidget();
+
const store = useStore();
const deletePageLayoutWidget = useCallback(
@@ -44,8 +49,24 @@ export const useDeletePageLayoutWidget = (pageLayoutIdFromProps?: string) => {
const allTabLayouts = store.get(pageLayoutCurrentLayoutsState);
const tabWithWidget = pageLayoutDraft.tabs.find((tab) =>
- tab.widgets.some((w) => w.id === widgetId),
+ tab.widgets.some((widget) => widget.id === widgetId),
+ );
+
+ const widgetToDelete = tabWithWidget?.widgets.find(
+ (widget) => widget.id === widgetId,
);
+
+ if (
+ isDefined(widgetToDelete) &&
+ widgetToDelete.type === WidgetType.RECORD_TABLE &&
+ 'viewId' in widgetToDelete.configuration &&
+ isDefined(widgetToDelete.configuration.viewId)
+ ) {
+ deleteViewForRecordTableWidget(
+ widgetToDelete.configuration.viewId as string,
+ );
+ }
+
const tabId = tabWithWidget?.id;
if (isDefined(tabId)) {
@@ -72,6 +93,7 @@ export const useDeletePageLayoutWidget = (pageLayoutIdFromProps?: string) => {
},
[
closeSidePanelMenu,
+ deleteViewForRecordTableWidget,
pageLayoutCurrentLayoutsState,
pageLayoutDraftState,
pageLayoutEditingWidgetIdState,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
index 10f5932e18e..5b8e49e65af 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
@@ -66,7 +66,16 @@ export const useEditPageLayoutWidget = (pageLayoutIdFromProps?: string) => {
return;
}
- setPageLayoutEditingWidgetId(widgetId);
+ if (widgetType === WidgetType.RECORD_TABLE) {
+ navigatePageLayoutSidePanel({
+ sidePanelPage: SidePanelPages.PageLayoutRecordTableSettings,
+ pageTitle: t`Edit Record Table`,
+ resetNavigationStack: true,
+ });
+ setPageLayoutEditingWidgetId(widgetId);
+ return;
+ }
+
setSidePanelPage(SidePanelPages.Root);
closeSidePanelMenu();
},
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useHasFieldsWidgetChanges.ts b/packages/twenty-front/src/modules/page-layout/hooks/useHasFieldsWidgetChanges.ts
new file mode 100644
index 00000000000..124f0f0b65b
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useHasFieldsWidgetChanges.ts
@@ -0,0 +1,63 @@
+import { fieldsWidgetEditorModeDraftComponentState } from '@/page-layout/states/fieldsWidgetEditorModeDraftComponentState';
+import { fieldsWidgetEditorModePersistedComponentState } from '@/page-layout/states/fieldsWidgetEditorModePersistedComponentState';
+import { fieldsWidgetGroupsDraftComponentState } from '@/page-layout/states/fieldsWidgetGroupsDraftComponentState';
+import { fieldsWidgetGroupsPersistedComponentState } from '@/page-layout/states/fieldsWidgetGroupsPersistedComponentState';
+import { fieldsWidgetUngroupedFieldsDraftComponentState } from '@/page-layout/states/fieldsWidgetUngroupedFieldsDraftComponentState';
+import { fieldsWidgetUngroupedFieldsPersistedComponentState } from '@/page-layout/states/fieldsWidgetUngroupedFieldsPersistedComponentState';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
+
+export const useHasFieldsWidgetChanges = () => {
+ const store = useStore();
+
+ const hasFieldsWidgetChanges = useCallback(
+ (pageLayoutId: string): boolean => {
+ const fieldsWidgetGroupsDraft = store.get(
+ fieldsWidgetGroupsDraftComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const fieldsWidgetGroupsPersisted = store.get(
+ fieldsWidgetGroupsPersistedComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const fieldsWidgetUngroupedFieldsDraft = store.get(
+ fieldsWidgetUngroupedFieldsDraftComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const fieldsWidgetUngroupedFieldsPersisted = store.get(
+ fieldsWidgetUngroupedFieldsPersistedComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const fieldsWidgetEditorModeDraft = store.get(
+ fieldsWidgetEditorModeDraftComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const fieldsWidgetEditorModePersisted = store.get(
+ fieldsWidgetEditorModePersistedComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+
+ return (
+ !isDeeplyEqual(fieldsWidgetGroupsDraft, fieldsWidgetGroupsPersisted) ||
+ !isDeeplyEqual(
+ fieldsWidgetUngroupedFieldsDraft,
+ fieldsWidgetUngroupedFieldsPersisted,
+ ) ||
+ !isDeeplyEqual(
+ fieldsWidgetEditorModeDraft,
+ fieldsWidgetEditorModePersisted,
+ )
+ );
+ },
+ [store],
+ );
+
+ return { hasFieldsWidgetChanges };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useHasRecordTableWidgets.ts b/packages/twenty-front/src/modules/page-layout/hooks/useHasRecordTableWidgets.ts
new file mode 100644
index 00000000000..4c4b863cae7
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useHasRecordTableWidgets.ts
@@ -0,0 +1,29 @@
+import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDraftComponentState';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+export const useHasRecordTableWidgets = () => {
+ const store = useStore();
+
+ const hasRecordTableWidgets = useCallback(
+ (pageLayoutId: string): boolean => {
+ const pageLayoutDraft = store.get(
+ pageLayoutDraftComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+
+ return pageLayoutDraft.tabs.some((tab) =>
+ tab.widgets.some(
+ (widget) =>
+ widget.configuration.configurationType ===
+ WidgetConfigurationType.RECORD_TABLE,
+ ),
+ );
+ },
+ [store],
+ );
+
+ return { hasRecordTableWidgets };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useRemovePageLayoutWidgetAndPreservePosition.ts b/packages/twenty-front/src/modules/page-layout/hooks/useRemovePageLayoutWidgetAndPreservePosition.ts
index 736af8e1e80..780c61137ac 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useRemovePageLayoutWidgetAndPreservePosition.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useRemovePageLayoutWidgetAndPreservePosition.ts
@@ -5,11 +5,13 @@ import { pageLayoutDraggedAreaComponentState } from '@/page-layout/states/pageLa
import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pageLayoutEditingWidgetIdComponentState';
import { removeWidgetFromTab } from '@/page-layout/utils/removeWidgetFromTab';
import { removeWidgetLayoutFromTab } from '@/page-layout/utils/removeWidgetLayoutFromTab';
+import { useDeleteViewForRecordTableWidget } from '@/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget';
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
import { useStore } from 'jotai';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
+import { WidgetType } from '~/generated-metadata/graphql';
export const useRemovePageLayoutWidgetAndPreservePosition = (
pageLayoutIdFromProps?: string,
@@ -39,6 +41,9 @@ export const useRemovePageLayoutWidgetAndPreservePosition = (
pageLayoutId,
);
+ const { deleteViewForRecordTableWidget } =
+ useDeleteViewForRecordTableWidget();
+
const store = useStore();
const removePageLayoutWidgetAndPreservePosition = useCallback(
@@ -47,8 +52,24 @@ export const useRemovePageLayoutWidgetAndPreservePosition = (
const allTabLayouts = store.get(pageLayoutCurrentLayoutsState);
const tabWithWidget = pageLayoutDraft.tabs.find((tab) =>
- tab.widgets.some((w) => w.id === widgetId),
+ tab.widgets.some((widget) => widget.id === widgetId),
+ );
+
+ const widgetToRemove = tabWithWidget?.widgets.find(
+ (widget) => widget.id === widgetId,
);
+
+ if (
+ isDefined(widgetToRemove) &&
+ widgetToRemove.type === WidgetType.RECORD_TABLE &&
+ 'viewId' in widgetToRemove.configuration &&
+ isDefined(widgetToRemove.configuration.viewId)
+ ) {
+ deleteViewForRecordTableWidget(
+ widgetToRemove.configuration.viewId as string,
+ );
+ }
+
const tabId = tabWithWidget?.id;
if (!isDefined(tabId)) {
@@ -86,6 +107,7 @@ export const useRemovePageLayoutWidgetAndPreservePosition = (
store.set(pageLayoutEditingWidgetIdState, null);
},
[
+ deleteViewForRecordTableWidget,
pageLayoutCurrentLayoutsState,
pageLayoutDraftState,
pageLayoutDraggedAreaState,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useSaveFieldsWidgetGroups.ts b/packages/twenty-front/src/modules/page-layout/hooks/useSaveFieldsWidgetGroups.ts
index 470df749ef1..c3d54f1eadd 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useSaveFieldsWidgetGroups.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useSaveFieldsWidgetGroups.ts
@@ -1,4 +1,5 @@
import { UPSERT_FIELDS_WIDGET } from '@/page-layout/graphql/mutations/upsertFieldsWidget';
+import { useHasFieldsWidgetChanges } from '@/page-layout/hooks/useHasFieldsWidgetChanges';
import { fieldsWidgetEditorModeDraftComponentState } from '@/page-layout/states/fieldsWidgetEditorModeDraftComponentState';
import { fieldsWidgetEditorModePersistedComponentState } from '@/page-layout/states/fieldsWidgetEditorModePersistedComponentState';
import { fieldsWidgetGroupsDraftComponentState } from '@/page-layout/states/fieldsWidgetGroupsDraftComponentState';
@@ -20,10 +21,16 @@ export const useSaveFieldsWidgetGroups = () => {
{ input: UpsertFieldsWidgetInput }
>(UPSERT_FIELDS_WIDGET);
+ const { hasFieldsWidgetChanges } = useHasFieldsWidgetChanges();
+
const store = useStore();
const saveFieldsWidgetGroups = useCallback(
async (pageLayoutId: string) => {
+ if (!hasFieldsWidgetChanges(pageLayoutId)) {
+ return;
+ }
+
const allDraftGroups = store.get(
fieldsWidgetGroupsDraftComponentState.atomFamily({
instanceId: pageLayoutId,
@@ -128,7 +135,7 @@ export const useSaveFieldsWidgetGroups = () => {
allEditorModes,
);
},
- [store, upsertFieldsWidgetMutation],
+ [hasFieldsWidgetChanges, store, upsertFieldsWidgetMutation],
);
return { saveFieldsWidgetGroups };
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayout.ts b/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayout.ts
index 4fccffc9d41..03ddd0b7b4d 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayout.ts
@@ -44,7 +44,6 @@ export const useSavePageLayout = (pageLayoutIdFromProps: string) => {
const featureFlags = useFeatureFlagsMap();
const isRecordPageLayoutEditingEnabled =
featureFlags[FeatureFlagKey.IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED];
-
const store = useStore();
const savePageLayout = useCallback(async () => {
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayoutWidgetsData.ts b/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayoutWidgetsData.ts
new file mode 100644
index 00000000000..03dcc3b0966
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useSavePageLayoutWidgetsData.ts
@@ -0,0 +1,36 @@
+import { useHasFieldsWidgetChanges } from '@/page-layout/hooks/useHasFieldsWidgetChanges';
+import { useHasRecordTableWidgets } from '@/page-layout/hooks/useHasRecordTableWidgets';
+import { useSaveFieldsWidgetGroups } from '@/page-layout/hooks/useSaveFieldsWidgetGroups';
+import { useSaveRecordTableWidgetsViewDataOnDashboardSave } from '@/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetsViewDataOnDashboardSave';
+import { useCallback } from 'react';
+
+export const useSavePageLayoutWidgetsData = () => {
+ const { hasFieldsWidgetChanges } = useHasFieldsWidgetChanges();
+
+ const { hasRecordTableWidgets } = useHasRecordTableWidgets();
+
+ const { saveFieldsWidgetGroups } = useSaveFieldsWidgetGroups();
+
+ const { saveRecordTableWidgetsViewDataOnDashboardSave } =
+ useSaveRecordTableWidgetsViewDataOnDashboardSave();
+
+ const savePageLayoutWidgetsData = useCallback(
+ async (pageLayoutId: string) => {
+ if (hasFieldsWidgetChanges(pageLayoutId)) {
+ await saveFieldsWidgetGroups(pageLayoutId);
+ }
+
+ if (hasRecordTableWidgets(pageLayoutId)) {
+ await saveRecordTableWidgetsViewDataOnDashboardSave(pageLayoutId);
+ }
+ },
+ [
+ hasFieldsWidgetChanges,
+ saveFieldsWidgetGroups,
+ saveRecordTableWidgetsViewDataOnDashboardSave,
+ hasRecordTableWidgets,
+ ],
+ );
+
+ return { savePageLayoutWidgetsData };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultRecordTableWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultRecordTableWidget.test.ts
new file mode 100644
index 00000000000..fb4ce250201
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultRecordTableWidget.test.ts
@@ -0,0 +1,57 @@
+import {
+ PageLayoutTabLayoutMode,
+ WidgetConfigurationType,
+ WidgetType,
+} from '~/generated-metadata/graphql';
+import { createDefaultRecordTableWidget } from '@/page-layout/utils/createDefaultRecordTableWidget';
+
+describe('createDefaultRecordTableWidget', () => {
+ const widgetId = 'widget-id-1';
+ const pageLayoutTabId = 'tab-id-1';
+ const title = 'My Record Table';
+ const gridPosition = { row: 1, column: 2, rowSpan: 3, columnSpan: 4 };
+
+ const widget = createDefaultRecordTableWidget(
+ widgetId,
+ pageLayoutTabId,
+ title,
+ gridPosition,
+ );
+
+ it('should return correct shape with all required fields', () => {
+ expect(widget.__typename).toBe('PageLayoutWidget');
+ expect(widget.id).toBe(widgetId);
+ expect(widget.pageLayoutTabId).toBe(pageLayoutTabId);
+ expect(widget.title).toBe(title);
+ expect(widget.createdAt).toBeDefined();
+ expect(widget.updatedAt).toBeDefined();
+ expect(widget.deletedAt).toBeNull();
+ });
+
+ it('should set type to WidgetType.RECORD_TABLE', () => {
+ expect(widget.type).toBe(WidgetType.RECORD_TABLE);
+ });
+
+ it('should set configuration.configurationType to WidgetConfigurationType.RECORD_TABLE', () => {
+ expect(widget.configuration).toEqual({
+ configurationType: WidgetConfigurationType.RECORD_TABLE,
+ });
+ });
+
+ it('should correctly map grid position values to both gridPosition and position fields', () => {
+ expect(widget.gridPosition).toEqual(gridPosition);
+ expect(widget.position).toEqual({
+ __typename: 'PageLayoutWidgetGridPosition',
+ layoutMode: PageLayoutTabLayoutMode.GRID,
+ row: gridPosition.row,
+ column: gridPosition.column,
+ rowSpan: gridPosition.rowSpan,
+ columnSpan: gridPosition.columnSpan,
+ });
+ });
+
+ it('should set objectMetadataId to null and isOverridden to false', () => {
+ expect(widget.objectMetadataId).toBeNull();
+ expect(widget.isOverridden).toBe(false);
+ });
+});
diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultRecordTableWidget.ts
new file mode 100644
index 00000000000..8b5a085881a
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultRecordTableWidget.ts
@@ -0,0 +1,39 @@
+import {
+ type GridPosition,
+ PageLayoutTabLayoutMode,
+ type PageLayoutWidget,
+ WidgetConfigurationType,
+ WidgetType,
+} from '~/generated-metadata/graphql';
+
+export const createDefaultRecordTableWidget = (
+ id: string,
+ pageLayoutTabId: string,
+ title: string,
+ gridPosition: GridPosition,
+): PageLayoutWidget => {
+ return {
+ __typename: 'PageLayoutWidget',
+ id,
+ pageLayoutTabId,
+ title,
+ type: WidgetType.RECORD_TABLE,
+ configuration: {
+ configurationType: WidgetConfigurationType.RECORD_TABLE,
+ },
+ gridPosition,
+ position: {
+ __typename: 'PageLayoutWidgetGridPosition',
+ layoutMode: PageLayoutTabLayoutMode.GRID,
+ row: gridPosition.row,
+ column: gridPosition.column,
+ rowSpan: gridPosition.rowSpan,
+ columnSpan: gridPosition.columnSpan,
+ },
+ objectMetadataId: null,
+ isOverridden: false,
+ createdAt: new Date().toISOString(),
+ updatedAt: new Date().toISOString(),
+ deletedAt: null,
+ };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentRenderer.tsx
index d4c748526c7..7a7790705b4 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetContentRenderer.tsx
@@ -14,6 +14,7 @@ import { TaskWidget } from '@/page-layout/widgets/tasks/components/TaskWidget';
import { TimelineWidget } from '@/page-layout/widgets/timeline/components/TimelineWidget';
import { WorkflowRunWidget } from '@/page-layout/widgets/workflow/components/WorkflowRunWidget';
import { WorkflowVersionWidget } from '@/page-layout/widgets/workflow/components/WorkflowVersionWidget';
+import { RecordTableWidgetRenderer } from '@/page-layout/widgets/record-table/components/RecordTableWidgetRenderer';
import { WorkflowWidget } from '@/page-layout/widgets/workflow/components/WorkflowWidget';
import { WidgetType } from '~/generated-metadata/graphql';
@@ -73,6 +74,9 @@ export const WidgetContentRenderer = ({
case WidgetType.FRONT_COMPONENT:
return <FrontComponentWidgetRenderer widget={widget} />;
+ case WidgetType.RECORD_TABLE:
+ return <RecordTableWidgetRenderer widget={widget} />;
+
default:
return null;
}
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRenderer.tsx
new file mode 100644
index 00000000000..0d02e0a5bcd
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRenderer.tsx
@@ -0,0 +1,34 @@
+import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
+import { RecordTableWidgetRendererContent } from '@/page-layout/widgets/record-table/components/RecordTableWidgetRendererContent';
+import { isDefined } from 'twenty-shared/utils';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+type RecordTableWidgetRendererProps = {
+ widget: PageLayoutWidget;
+};
+
+export const RecordTableWidgetRenderer = ({
+ widget,
+}: RecordTableWidgetRendererProps) => {
+ const { configuration } = widget;
+
+ const isRecordTableConfiguration =
+ configuration.configurationType === WidgetConfigurationType.RECORD_TABLE;
+
+ const viewId =
+ isRecordTableConfiguration && 'viewId' in configuration
+ ? (configuration.viewId as string | undefined)
+ : undefined;
+
+ if (!isDefined(widget.objectMetadataId) || !isDefined(viewId)) {
+ return null;
+ }
+
+ return (
+ <RecordTableWidgetRendererContent
+ objectMetadataId={widget.objectMetadataId}
+ viewId={viewId}
+ widgetId={widget.id}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRendererContent.tsx b/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRendererContent.tsx
new file mode 100644
index 00000000000..863d8c6f4a3
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/components/RecordTableWidgetRendererContent.tsx
@@ -0,0 +1,29 @@
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { RecordTableWidget } from '@/object-record/record-table-widget/components/RecordTableWidget';
+import { RecordTableWidgetProvider } from '@/object-record/record-table-widget/components/RecordTableWidgetProvider';
+
+type RecordTableWidgetRendererContentProps = {
+ objectMetadataId: string;
+ viewId: string;
+ widgetId: string;
+};
+
+export const RecordTableWidgetRendererContent = ({
+ objectMetadataId,
+ viewId,
+ widgetId,
+}: RecordTableWidgetRendererContentProps) => {
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ return (
+ <RecordTableWidgetProvider
+ objectNameSingular={objectMetadataItem.nameSingular}
+ viewId={viewId}
+ widgetId={widgetId}
+ >
+ <RecordTableWidget />
+ </RecordTableWidgetProvider>
+ );
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useCreateViewForRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useCreateViewForRecordTableWidget.ts
new file mode 100644
index 00000000000..28bbfc471b5
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useCreateViewForRecordTableWidget.ts
@@ -0,0 +1,83 @@
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { filterFieldsForRecordTableViewCreation } from '@/page-layout/widgets/record-table/utils/filterFieldsForRecordTableViewCreation';
+import { sortFieldsByRelevanceForRecordTableWidget } from '@/page-layout/widgets/record-table/utils/sortFieldsByRelevanceForRecordTableWidget';
+import { useUpdateCurrentWidgetConfig } from '@/side-panel/pages/page-layout/hooks/useUpdateCurrentWidgetConfig';
+import { usePerformViewAPIPersist } from '@/views/hooks/internal/usePerformViewAPIPersist';
+import { usePerformViewFieldAPIPersist } from '@/views/hooks/internal/usePerformViewFieldAPIPersist';
+import { useCallback } from 'react';
+import { v4 } from 'uuid';
+import { ViewType } from '~/generated-metadata/graphql';
+
+const DEFAULT_VIEW_FIELD_SIZE = 180;
+const INITIAL_VISIBLE_FIELDS_COUNT_IN_WIDGET = 6;
+
+export const useCreateViewForRecordTableWidget = (pageLayoutId: string) => {
+ const { performViewAPICreate } = usePerformViewAPIPersist();
+ const { performViewFieldAPICreate } = usePerformViewFieldAPIPersist();
+ const { updateCurrentWidgetConfig } =
+ useUpdateCurrentWidgetConfig(pageLayoutId);
+
+ const createViewForRecordTableWidget = useCallback(
+ async (objectMetadataItem: EnrichedObjectMetadataItem) => {
+ const newViewId = v4();
+
+ const viewResult = await performViewAPICreate(
+ {
+ input: {
+ id: newViewId,
+ name: `${objectMetadataItem.labelPlural} Table`,
+ icon: objectMetadataItem.icon ?? 'IconTable',
+ objectMetadataId: objectMetadataItem.id,
+ type: ViewType.TABLE,
+ },
+ },
+ objectMetadataItem.id,
+ );
+
+ if (viewResult.status !== 'successful') {
+ return;
+ }
+
+ const eligibleFields = objectMetadataItem.fields.filter(
+ filterFieldsForRecordTableViewCreation,
+ );
+
+ const sortedFields = eligibleFields.toSorted(
+ sortFieldsByRelevanceForRecordTableWidget(
+ objectMetadataItem.labelIdentifierFieldMetadataId,
+ ),
+ );
+
+ const viewFieldInputs = sortedFields.map((field, index) => ({
+ id: v4(),
+ viewId: newViewId,
+ fieldMetadataId: field.id,
+ position: index,
+ size: DEFAULT_VIEW_FIELD_SIZE,
+ isVisible: index < INITIAL_VISIBLE_FIELDS_COUNT_IN_WIDGET,
+ }));
+
+ try {
+ await performViewFieldAPICreate({ inputs: viewFieldInputs });
+
+ updateCurrentWidgetConfig({
+ configToUpdate: {
+ viewId: newViewId,
+ },
+ });
+ } catch (error) {
+ throw new Error(
+ 'Failed to create view fields for record table widget',
+ { cause: error },
+ );
+ }
+ },
+ [
+ performViewAPICreate,
+ performViewFieldAPICreate,
+ updateCurrentWidgetConfig,
+ ],
+ );
+
+ return { createViewForRecordTableWidget };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget.ts
new file mode 100644
index 00000000000..7f78fc1f009
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget.ts
@@ -0,0 +1,15 @@
+import { usePerformViewAPIPersist } from '@/views/hooks/internal/usePerformViewAPIPersist';
+import { useCallback } from 'react';
+
+export const useDeleteViewForRecordTableWidget = () => {
+ const { performViewAPIDestroy } = usePerformViewAPIPersist();
+
+ const deleteViewForRecordTableWidget = useCallback(
+ async (viewId: string) => {
+ await performViewAPIDestroy({ id: viewId });
+ },
+ [performViewAPIDestroy],
+ );
+
+ return { deleteViewForRecordTableWidget };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapRecordFieldToViewFieldWithCurrentAggregateOperation.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapRecordFieldToViewFieldWithCurrentAggregateOperation.ts
new file mode 100644
index 00000000000..acf3643705f
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapRecordFieldToViewFieldWithCurrentAggregateOperation.ts
@@ -0,0 +1,36 @@
+import { type RecordField } from '@/object-record/record-field/types/RecordField';
+import { viewFieldAggregateOperationState } from '@/object-record/record-table/record-table-footer/states/viewFieldAggregateOperationState';
+import { convertExtendedAggregateOperationToAggregateOperation } from '@/object-record/utils/convertExtendedAggregateOperationToAggregateOperation';
+import { type ViewField } from '@/views/types/ViewField';
+import { mapRecordFieldToViewField } from '@/views/utils/mapRecordFieldToViewField';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+
+export const useMapRecordFieldToViewFieldWithCurrentAggregateOperation = () => {
+ const store = useStore();
+
+ const mapRecordFieldToViewFieldWithCurrentAggregateOperation = useCallback(
+ (recordField: RecordField): Omit<ViewField, 'definition'> => {
+ const viewField = mapRecordFieldToViewField(recordField);
+
+ const extendedAggregateOperation = store.get(
+ viewFieldAggregateOperationState.atomFamily({
+ viewFieldId: recordField.id,
+ }),
+ );
+
+ return {
+ ...viewField,
+ aggregateOperation: isDefined(extendedAggregateOperation)
+ ? convertExtendedAggregateOperationToAggregateOperation(
+ extendedAggregateOperation,
+ )
+ : viewField.aggregateOperation,
+ };
+ },
+ [store],
+ );
+
+ return { mapRecordFieldToViewFieldWithCurrentAggregateOperation };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapViewFieldToRecordTableWidgetViewFieldItem.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapViewFieldToRecordTableWidgetViewFieldItem.ts
new file mode 100644
index 00000000000..67c6da76172
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useMapViewFieldToRecordTableWidgetViewFieldItem.ts
@@ -0,0 +1,25 @@
+import { useGetFieldMetadataItemByIdOrThrow } from '@/object-metadata/hooks/useGetFieldMetadataItemById';
+import { type RecordTableWidgetViewFieldItem } from '@/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem';
+import { type ViewField } from '@/views/types/ViewField';
+import { useCallback } from 'react';
+
+export const useMapViewFieldToRecordTableWidgetViewFieldItem = () => {
+ const { getFieldMetadataItemByIdOrThrow } =
+ useGetFieldMetadataItemByIdOrThrow();
+
+ const mapViewFieldToRecordTableWidgetViewFieldItem = useCallback(
+ (viewField: ViewField): RecordTableWidgetViewFieldItem | null => {
+ try {
+ const { fieldMetadataItem } = getFieldMetadataItemByIdOrThrow(
+ viewField.fieldMetadataId,
+ );
+ return { viewField, fieldMetadataItem };
+ } catch {
+ return null;
+ }
+ },
+ [getFieldMetadataItemByIdOrThrow],
+ );
+
+ return { mapViewFieldToRecordTableWidgetViewFieldItem };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useRecordTableWidgetViewFieldItems.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useRecordTableWidgetViewFieldItems.ts
new file mode 100644
index 00000000000..6e57335b34e
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useRecordTableWidgetViewFieldItems.ts
@@ -0,0 +1,26 @@
+import { useMapViewFieldToRecordTableWidgetViewFieldItem } from '@/page-layout/widgets/record-table/hooks/useMapViewFieldToRecordTableWidgetViewFieldItem';
+import { type RecordTableWidgetViewFieldItem } from '@/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem';
+import { useViewById } from '@/views/hooks/useViewById';
+import { useMemo } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { sortByProperty } from '~/utils/array/sortByProperty';
+
+export const useRecordTableWidgetViewFieldItems = (viewId: string) => {
+ const { view } = useViewById(viewId);
+ const { mapViewFieldToRecordTableWidgetViewFieldItem } =
+ useMapViewFieldToRecordTableWidgetViewFieldItem();
+
+ const recordTableWidgetViewFieldItems: RecordTableWidgetViewFieldItem[] =
+ useMemo(() => {
+ if (!view) {
+ return [];
+ }
+
+ return view.viewFields
+ .toSorted(sortByProperty('position'))
+ .map(mapViewFieldToRecordTableWidgetViewFieldItem)
+ .filter(isDefined);
+ }, [view, mapViewFieldToRecordTableWidgetViewFieldItem]);
+
+ return { recordTableWidgetViewFieldItems };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useReorderRecordTableWidgetFields.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useReorderRecordTableWidgetFields.ts
new file mode 100644
index 00000000000..75b22928969
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useReorderRecordTableWidgetFields.ts
@@ -0,0 +1,35 @@
+import { type RecordTableWidgetViewFieldItem } from '@/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem';
+import { usePerformViewFieldAPIPersist } from '@/views/hooks/internal/usePerformViewFieldAPIPersist';
+import { useCallback } from 'react';
+
+export const useReorderRecordTableWidgetFields = () => {
+ const { performViewFieldAPIUpdate } = usePerformViewFieldAPIPersist();
+
+ const reorderRecordTableWidgetFields = useCallback(
+ async (
+ sourceIndex: number,
+ destinationIndex: number,
+ visibleFieldItems: RecordTableWidgetViewFieldItem[],
+ ) => {
+ if (sourceIndex === destinationIndex) {
+ return;
+ }
+
+ const reorderedFields = [...visibleFieldItems];
+ const [movedField] = reorderedFields.splice(sourceIndex, 1);
+ reorderedFields.splice(destinationIndex, 0, movedField);
+
+ const updates = reorderedFields.map((fieldItem, index) => ({
+ input: {
+ id: fieldItem.viewField.id,
+ update: { position: index },
+ },
+ }));
+
+ await performViewFieldAPIUpdate(updates);
+ },
+ [performViewFieldAPIUpdate],
+ );
+
+ return { reorderRecordTableWidgetFields };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetFiltersToView.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetFiltersToView.ts
new file mode 100644
index 00000000000..70996bf3415
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetFiltersToView.ts
@@ -0,0 +1,162 @@
+import { currentRecordFilterGroupsComponentState } from '@/object-record/record-filter-group/states/currentRecordFilterGroupsComponentState';
+import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
+import { useAtomComponentStateCallbackState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateCallbackState';
+import { usePerformViewFilterAPIPersist } from '@/views/hooks/internal/usePerformViewFilterAPIPersist';
+import { usePerformViewFilterGroupAPIPersist } from '@/views/hooks/internal/usePerformViewFilterGroupAPIPersist';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { getViewFilterGroupsToCreate } from '@/views/utils/getViewFilterGroupsToCreate';
+import { getViewFilterGroupsToDelete } from '@/views/utils/getViewFilterGroupsToDelete';
+import { getViewFilterGroupsToUpdate } from '@/views/utils/getViewFilterGroupsToUpdate';
+import { getViewFiltersToCreate } from '@/views/utils/getViewFiltersToCreate';
+import { getViewFiltersToDelete } from '@/views/utils/getViewFiltersToDelete';
+import { getViewFiltersToUpdate } from '@/views/utils/getViewFiltersToUpdate';
+import { mapRecordFilterGroupToViewFilterGroup } from '@/views/utils/mapRecordFilterGroupToViewFilterGroup';
+import { mapRecordFilterToViewFilter } from '@/views/utils/mapRecordFilterToViewFilter';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+
+export const useSaveRecordTableWidgetFiltersToView = (
+ viewId: string,
+ instanceId: string,
+) => {
+ const {
+ performViewFilterAPICreate,
+ performViewFilterAPIUpdate,
+ performViewFilterAPIDelete,
+ } = usePerformViewFilterAPIPersist();
+
+ const {
+ performViewFilterGroupAPICreate,
+ performViewFilterGroupAPIUpdate,
+ performViewFilterGroupAPIDelete,
+ } = usePerformViewFilterGroupAPIPersist();
+
+ const currentRecordFiltersCallbackState = useAtomComponentStateCallbackState(
+ currentRecordFiltersComponentState,
+ instanceId,
+ );
+
+ const currentRecordFilterGroupsCallbackState =
+ useAtomComponentStateCallbackState(
+ currentRecordFilterGroupsComponentState,
+ instanceId,
+ );
+
+ const store = useStore();
+
+ const saveRecordTableWidgetFiltersToView = useCallback(async () => {
+ const views = store.get(viewsSelector.atom);
+ const currentView = views.find((view) => view.id === viewId);
+
+ if (!isDefined(currentView)) {
+ return;
+ }
+
+ const currentRecordFilters = store.get(currentRecordFiltersCallbackState);
+ const currentRecordFilterGroups = store.get(
+ currentRecordFilterGroupsCallbackState,
+ );
+
+ const newViewFilterGroups = currentRecordFilterGroups.map(
+ (recordFilterGroup) =>
+ mapRecordFilterGroupToViewFilterGroup({
+ recordFilterGroup,
+ view: currentView,
+ }),
+ );
+
+ const currentViewFilterGroups = currentView.viewFilterGroups ?? [];
+
+ const viewFilterGroupsToCreate = getViewFilterGroupsToCreate(
+ currentViewFilterGroups,
+ newViewFilterGroups,
+ );
+ const viewFilterGroupsToUpdate = getViewFilterGroupsToUpdate(
+ currentViewFilterGroups,
+ newViewFilterGroups,
+ );
+ const viewFilterGroupsToDelete = getViewFilterGroupsToDelete(
+ currentViewFilterGroups,
+ newViewFilterGroups,
+ );
+
+ await performViewFilterGroupAPICreate(
+ viewFilterGroupsToCreate,
+ currentView,
+ );
+ await performViewFilterGroupAPIUpdate(viewFilterGroupsToUpdate);
+
+ const newViewFilters = currentRecordFilters.map(
+ mapRecordFilterToViewFilter,
+ );
+
+ const currentViewFilters = currentView.viewFilters ?? [];
+
+ const viewFiltersToCreate = getViewFiltersToCreate(
+ currentViewFilters,
+ newViewFilters,
+ );
+ const viewFiltersToUpdate = getViewFiltersToUpdate(
+ currentViewFilters,
+ newViewFilters,
+ );
+ const viewFiltersToDelete = getViewFiltersToDelete(
+ currentViewFilters,
+ newViewFilters,
+ );
+
+ await performViewFilterAPIDelete(
+ viewFiltersToDelete.map((viewFilter) => ({
+ input: { id: viewFilter.id },
+ })),
+ );
+
+ await performViewFilterAPIUpdate(
+ viewFiltersToUpdate.map((viewFilter) => ({
+ input: {
+ id: viewFilter.id,
+ update: {
+ value: viewFilter.value,
+ operand: viewFilter.operand,
+ positionInViewFilterGroup: viewFilter.positionInViewFilterGroup,
+ viewFilterGroupId: viewFilter.viewFilterGroupId,
+ subFieldName: viewFilter.subFieldName ?? null,
+ },
+ },
+ })),
+ );
+
+ await performViewFilterAPICreate(
+ viewFiltersToCreate.map((viewFilter) => ({
+ input: {
+ id: viewFilter.id,
+ fieldMetadataId: viewFilter.fieldMetadataId,
+ viewId: currentView.id,
+ value: viewFilter.value,
+ operand: viewFilter.operand,
+ viewFilterGroupId: viewFilter.viewFilterGroupId,
+ positionInViewFilterGroup: viewFilter.positionInViewFilterGroup,
+ subFieldName: viewFilter.subFieldName ?? null,
+ },
+ })),
+ );
+
+ await performViewFilterGroupAPIDelete(
+ viewFilterGroupsToDelete.map((viewFilterGroup) => viewFilterGroup.id),
+ );
+ }, [
+ store,
+ viewId,
+ currentRecordFiltersCallbackState,
+ currentRecordFilterGroupsCallbackState,
+ performViewFilterAPICreate,
+ performViewFilterAPIUpdate,
+ performViewFilterAPIDelete,
+ performViewFilterGroupAPICreate,
+ performViewFilterGroupAPIUpdate,
+ performViewFilterGroupAPIDelete,
+ ]);
+
+ return { saveRecordTableWidgetFiltersToView };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetSortsToView.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetSortsToView.ts
new file mode 100644
index 00000000000..ce5e9e7714a
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetSortsToView.ts
@@ -0,0 +1,86 @@
+import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
+import { usePerformViewSortAPIPersist } from '@/views/hooks/internal/usePerformViewSortAPIPersist';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { getViewSortsToCreate } from '@/views/utils/getViewSortsToCreate';
+import { getViewSortsToDelete } from '@/views/utils/getViewSortsToDelete';
+import { getViewSortsToUpdate } from '@/views/utils/getViewSortsToUpdate';
+import { mapRecordSortToViewSort } from '@/views/utils/mapRecordSortToViewSort';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+
+export const useSaveRecordTableWidgetSortsToView = (viewId: string) => {
+ const {
+ performViewSortAPICreate,
+ performViewSortAPIUpdate,
+ performViewSortAPIDelete,
+ } = usePerformViewSortAPIPersist();
+
+ const store = useStore();
+
+ const saveRecordTableWidgetSortsToView = useCallback(
+ async (recordSorts: RecordSort[]) => {
+ const views = store.get(viewsSelector.atom);
+ const currentView = views.find((view) => view.id === viewId);
+
+ if (!isDefined(currentView)) {
+ return;
+ }
+
+ const currentViewSorts = currentView.viewSorts ?? [];
+ const newViewSorts = recordSorts.map(mapRecordSortToViewSort);
+
+ const viewSortsToCreate = getViewSortsToCreate(
+ currentViewSorts,
+ newViewSorts,
+ );
+ const viewSortsToUpdate = getViewSortsToUpdate(
+ currentViewSorts,
+ newViewSorts,
+ );
+ const viewSortsToDelete = getViewSortsToDelete(
+ currentViewSorts,
+ newViewSorts,
+ );
+
+ await performViewSortAPICreate(
+ viewSortsToCreate.map((viewSort) => ({
+ input: {
+ id: viewSort.id,
+ fieldMetadataId: viewSort.fieldMetadataId,
+ viewId: currentView.id,
+ direction: viewSort.direction,
+ },
+ })),
+ );
+
+ await performViewSortAPIUpdate(
+ viewSortsToUpdate.map((viewSort) => ({
+ input: {
+ id: viewSort.id,
+ update: {
+ direction: viewSort.direction,
+ },
+ },
+ })),
+ );
+
+ await performViewSortAPIDelete(
+ viewSortsToDelete.map((viewSort) => ({
+ input: {
+ id: viewSort.id,
+ },
+ })),
+ );
+ },
+ [
+ store,
+ viewId,
+ performViewSortAPICreate,
+ performViewSortAPIUpdate,
+ performViewSortAPIDelete,
+ ],
+ );
+
+ return { saveRecordTableWidgetSortsToView };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetsViewDataOnDashboardSave.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetsViewDataOnDashboardSave.ts
new file mode 100644
index 00000000000..3e551de5b7d
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useSaveRecordTableWidgetsViewDataOnDashboardSave.ts
@@ -0,0 +1,306 @@
+import { objectMetadataItemsSelector } from '@/object-metadata/states/objectMetadataItemsSelector';
+import { currentRecordFieldsComponentState } from '@/object-record/record-field/states/currentRecordFieldsComponentState';
+import { currentRecordFilterGroupsComponentState } from '@/object-record/record-filter-group/states/currentRecordFilterGroupsComponentState';
+import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
+import { currentRecordSortsComponentState } from '@/object-record/record-sort/states/currentRecordSortsComponentState';
+import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
+import { pageLayoutDraftComponentState } from '@/page-layout/states/pageLayoutDraftComponentState';
+import { useMapRecordFieldToViewFieldWithCurrentAggregateOperation } from '@/page-layout/widgets/record-table/hooks/useMapRecordFieldToViewFieldWithCurrentAggregateOperation';
+import { computeViewFieldsToCreateAndUpdate } from '@/page-layout/widgets/record-table/utils/computeViewFieldsToCreateAndUpdate';
+import { usePerformViewFieldAPIPersist } from '@/views/hooks/internal/usePerformViewFieldAPIPersist';
+import { usePerformViewFilterAPIPersist } from '@/views/hooks/internal/usePerformViewFilterAPIPersist';
+import { usePerformViewFilterGroupAPIPersist } from '@/views/hooks/internal/usePerformViewFilterGroupAPIPersist';
+import { usePerformViewSortAPIPersist } from '@/views/hooks/internal/usePerformViewSortAPIPersist';
+import { viewsSelector } from '@/views/states/selectors/viewsSelector';
+import { getViewFilterGroupsToCreate } from '@/views/utils/getViewFilterGroupsToCreate';
+import { getViewFilterGroupsToDelete } from '@/views/utils/getViewFilterGroupsToDelete';
+import { getViewFilterGroupsToUpdate } from '@/views/utils/getViewFilterGroupsToUpdate';
+import { getViewFiltersToCreate } from '@/views/utils/getViewFiltersToCreate';
+import { getViewFiltersToDelete } from '@/views/utils/getViewFiltersToDelete';
+import { getViewFiltersToUpdate } from '@/views/utils/getViewFiltersToUpdate';
+import { getViewSortsToCreate } from '@/views/utils/getViewSortsToCreate';
+import { getViewSortsToDelete } from '@/views/utils/getViewSortsToDelete';
+import { getViewSortsToUpdate } from '@/views/utils/getViewSortsToUpdate';
+import { mapRecordFilterGroupToViewFilterGroup } from '@/views/utils/mapRecordFilterGroupToViewFilterGroup';
+import { mapRecordFilterToViewFilter } from '@/views/utils/mapRecordFilterToViewFilter';
+import { mapRecordSortToViewSort } from '@/views/utils/mapRecordSortToViewSort';
+import { useStore } from 'jotai';
+import { useCallback } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+export const useSaveRecordTableWidgetsViewDataOnDashboardSave = () => {
+ const {
+ performViewFilterAPICreate,
+ performViewFilterAPIUpdate,
+ performViewFilterAPIDelete,
+ } = usePerformViewFilterAPIPersist();
+
+ const {
+ performViewFilterGroupAPICreate,
+ performViewFilterGroupAPIUpdate,
+ performViewFilterGroupAPIDelete,
+ } = usePerformViewFilterGroupAPIPersist();
+
+ const {
+ performViewSortAPICreate,
+ performViewSortAPIUpdate,
+ performViewSortAPIDelete,
+ } = usePerformViewSortAPIPersist();
+
+ const { performViewFieldAPICreate, performViewFieldAPIUpdate } =
+ usePerformViewFieldAPIPersist();
+
+ const { mapRecordFieldToViewFieldWithCurrentAggregateOperation } =
+ useMapRecordFieldToViewFieldWithCurrentAggregateOperation();
+
+ const store = useStore();
+
+ const saveRecordTableWidgetsViewDataOnDashboardSave = useCallback(
+ async (pageLayoutId: string) => {
+ const pageLayoutDraft = store.get(
+ pageLayoutDraftComponentState.atomFamily({
+ instanceId: pageLayoutId,
+ }),
+ );
+ const views = store.get(viewsSelector.atom);
+ const objectMetadataItems = store.get(objectMetadataItemsSelector.atom);
+
+ const recordTableWidgets = pageLayoutDraft.tabs.flatMap((tab) =>
+ tab.widgets.filter(
+ (widget) =>
+ widget.configuration.configurationType ===
+ WidgetConfigurationType.RECORD_TABLE,
+ ),
+ );
+
+ for (const widget of recordTableWidgets) {
+ const configuration = widget.configuration;
+
+ if (!('viewId' in configuration) || !isDefined(configuration.viewId)) {
+ continue;
+ }
+
+ const viewId = configuration.viewId as string;
+ const currentView = views.find((view) => view.id === viewId);
+
+ if (!isDefined(currentView) || !isDefined(widget.objectMetadataId)) {
+ continue;
+ }
+
+ const objectMetadataItem = objectMetadataItems.find(
+ (item) => item.id === widget.objectMetadataId,
+ );
+
+ if (!isDefined(objectMetadataItem)) {
+ continue;
+ }
+
+ const recordIndexId = getRecordIndexIdFromObjectNamePluralAndViewId(
+ objectMetadataItem.namePlural,
+ viewId,
+ );
+
+ const currentRecordFilters = store.get(
+ currentRecordFiltersComponentState.atomFamily({
+ instanceId: recordIndexId,
+ }),
+ );
+
+ const currentRecordFilterGroups = store.get(
+ currentRecordFilterGroupsComponentState.atomFamily({
+ instanceId: recordIndexId,
+ }),
+ );
+
+ const currentRecordSorts = store.get(
+ currentRecordSortsComponentState.atomFamily({
+ instanceId: recordIndexId,
+ }),
+ );
+
+ const newViewFilterGroups = currentRecordFilterGroups.map(
+ (recordFilterGroup) =>
+ mapRecordFilterGroupToViewFilterGroup({
+ recordFilterGroup,
+ view: currentView,
+ }),
+ );
+
+ const existingViewFilterGroups = currentView.viewFilterGroups ?? [];
+
+ const viewFilterGroupsToCreate = getViewFilterGroupsToCreate(
+ existingViewFilterGroups,
+ newViewFilterGroups,
+ );
+ const viewFilterGroupsToUpdate = getViewFilterGroupsToUpdate(
+ existingViewFilterGroups,
+ newViewFilterGroups,
+ );
+ const viewFilterGroupsToDelete = getViewFilterGroupsToDelete(
+ existingViewFilterGroups,
+ newViewFilterGroups,
+ );
+
+ const newViewFilters = currentRecordFilters.map(
+ mapRecordFilterToViewFilter,
+ );
+ const existingViewFilters = currentView.viewFilters ?? [];
+
+ const viewFiltersToCreate = getViewFiltersToCreate(
+ existingViewFilters,
+ newViewFilters,
+ );
+ const viewFiltersToUpdate = getViewFiltersToUpdate(
+ existingViewFilters,
+ newViewFilters,
+ );
+ const viewFiltersToDelete = getViewFiltersToDelete(
+ existingViewFilters,
+ newViewFilters,
+ );
+
+ const newViewSorts = currentRecordSorts.map(mapRecordSortToViewSort);
+ const existingViewSorts = currentView.viewSorts ?? [];
+
+ const viewSortsToCreate = getViewSortsToCreate(
+ existingViewSorts,
+ newViewSorts,
+ );
+ const viewSortsToUpdate = getViewSortsToUpdate(
+ existingViewSorts,
+ newViewSorts,
+ );
+ const viewSortsToDelete = getViewSortsToDelete(
+ existingViewSorts,
+ newViewSorts,
+ );
+
+ const currentRecordFields = store.get(
+ currentRecordFieldsComponentState.atomFamily({
+ instanceId: recordIndexId,
+ }),
+ );
+
+ const newViewFields = currentRecordFields.map(
+ mapRecordFieldToViewFieldWithCurrentAggregateOperation,
+ );
+
+ const { viewFieldsToCreate, viewFieldsToUpdate } =
+ computeViewFieldsToCreateAndUpdate({
+ newViewFields,
+ existingViewFields: currentView.viewFields ?? [],
+ viewId,
+ });
+
+ const hasNoRecordTableWidgetChanges =
+ viewFilterGroupsToCreate.length === 0 &&
+ viewFilterGroupsToUpdate.length === 0 &&
+ viewFilterGroupsToDelete.length === 0 &&
+ viewFiltersToCreate.length === 0 &&
+ viewFiltersToUpdate.length === 0 &&
+ viewFiltersToDelete.length === 0 &&
+ viewSortsToCreate.length === 0 &&
+ viewSortsToUpdate.length === 0 &&
+ viewSortsToDelete.length === 0 &&
+ viewFieldsToCreate.length === 0 &&
+ viewFieldsToUpdate.length === 0;
+
+ if (hasNoRecordTableWidgetChanges) {
+ continue;
+ }
+
+ await performViewFilterGroupAPICreate(
+ viewFilterGroupsToCreate,
+ currentView,
+ );
+ await performViewFilterGroupAPIUpdate(viewFilterGroupsToUpdate);
+
+ await performViewFilterAPIDelete(
+ viewFiltersToDelete.map((viewFilter) => ({
+ input: { id: viewFilter.id },
+ })),
+ );
+ await performViewFilterAPIUpdate(
+ viewFiltersToUpdate.map((viewFilter) => ({
+ input: {
+ id: viewFilter.id,
+ update: {
+ value: viewFilter.value,
+ operand: viewFilter.operand,
+ positionInViewFilterGroup: viewFilter.positionInViewFilterGroup,
+ viewFilterGroupId: viewFilter.viewFilterGroupId,
+ subFieldName: viewFilter.subFieldName ?? null,
+ },
+ },
+ })),
+ );
+ await performViewFilterAPICreate(
+ viewFiltersToCreate.map((viewFilter) => ({
+ input: {
+ id: viewFilter.id,
+ fieldMetadataId: viewFilter.fieldMetadataId,
+ viewId: currentView.id,
+ value: viewFilter.value,
+ operand: viewFilter.operand,
+ viewFilterGroupId: viewFilter.viewFilterGroupId,
+ positionInViewFilterGroup: viewFilter.positionInViewFilterGroup,
+ subFieldName: viewFilter.subFieldName ?? null,
+ },
+ })),
+ );
+ await performViewFilterGroupAPIDelete(
+ viewFilterGroupsToDelete.map((viewFilterGroup) => viewFilterGroup.id),
+ );
+
+ await performViewSortAPICreate(
+ viewSortsToCreate.map((viewSort) => ({
+ input: {
+ id: viewSort.id,
+ fieldMetadataId: viewSort.fieldMetadataId,
+ viewId: currentView.id,
+ direction: viewSort.direction,
+ },
+ })),
+ );
+ await performViewSortAPIUpdate(
+ viewSortsToUpdate.map((viewSort) => ({
+ input: {
+ id: viewSort.id,
+ update: {
+ direction: viewSort.direction,
+ },
+ },
+ })),
+ );
+ await performViewSortAPIDelete(
+ viewSortsToDelete.map((viewSort) => ({
+ input: { id: viewSort.id },
+ })),
+ );
+
+ await Promise.all([
+ performViewFieldAPICreate({ inputs: viewFieldsToCreate }),
+ performViewFieldAPIUpdate(viewFieldsToUpdate),
+ ]);
+ }
+ },
+ [
+ store,
+ mapRecordFieldToViewFieldWithCurrentAggregateOperation,
+ performViewFieldAPICreate,
+ performViewFieldAPIUpdate,
+ performViewFilterAPICreate,
+ performViewFilterAPIUpdate,
+ performViewFilterAPIDelete,
+ performViewFilterGroupAPICreate,
+ performViewFilterGroupAPIUpdate,
+ performViewFilterGroupAPIDelete,
+ performViewSortAPICreate,
+ performViewSortAPIUpdate,
+ performViewSortAPIDelete,
+ ],
+ );
+
+ return { saveRecordTableWidgetsViewDataOnDashboardSave };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useToggleRecordTableWidgetFieldVisibility.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useToggleRecordTableWidgetFieldVisibility.ts
new file mode 100644
index 00000000000..731baa321ac
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/hooks/useToggleRecordTableWidgetFieldVisibility.ts
@@ -0,0 +1,22 @@
+import { usePerformViewFieldAPIPersist } from '@/views/hooks/internal/usePerformViewFieldAPIPersist';
+import { useCallback } from 'react';
+
+export const useToggleRecordTableWidgetFieldVisibility = () => {
+ const { performViewFieldAPIUpdate } = usePerformViewFieldAPIPersist();
+
+ const toggleRecordTableWidgetFieldVisibility = useCallback(
+ async (viewFieldId: string, isVisible: boolean) => {
+ await performViewFieldAPIUpdate([
+ {
+ input: {
+ id: viewFieldId,
+ update: { isVisible },
+ },
+ },
+ ]);
+ },
+ [performViewFieldAPIUpdate],
+ );
+
+ return { toggleRecordTableWidgetFieldVisibility };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem.ts
new file mode 100644
index 00000000000..f7ab16f5361
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/types/RecordTableWidgetViewFieldItem.ts
@@ -0,0 +1,7 @@
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { type ViewField } from '@/views/types/ViewField';
+
+export type RecordTableWidgetViewFieldItem = {
+ viewField: ViewField;
+ fieldMetadataItem: FieldMetadataItem;
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/computeViewFieldsToCreateAndUpdate.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/computeViewFieldsToCreateAndUpdate.test.ts
new file mode 100644
index 00000000000..758e2c20bfe
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/computeViewFieldsToCreateAndUpdate.test.ts
@@ -0,0 +1,208 @@
+import { v4 } from 'uuid';
+
+import { AggregateOperations } from '@/object-record/record-table/constants/AggregateOperations';
+import { computeViewFieldsToCreateAndUpdate } from '@/page-layout/widgets/record-table/utils/computeViewFieldsToCreateAndUpdate';
+import { type ViewField } from '@/views/types/ViewField';
+
+const buildViewField = (
+ overrides: Partial<Omit<ViewField, 'definition'>>,
+): Omit<ViewField, 'definition'> => ({
+ id: v4(),
+ fieldMetadataId: v4(),
+ position: 0,
+ isVisible: true,
+ size: 100,
+ aggregateOperation: null,
+ isOverridden: false,
+ ...overrides,
+});
+
+const buildExistingViewField = (overrides: Partial<ViewField>): ViewField => ({
+ id: v4(),
+ fieldMetadataId: v4(),
+ position: 0,
+ isVisible: true,
+ size: 100,
+ aggregateOperation: null,
+ isOverridden: false,
+ ...overrides,
+});
+
+describe('computeViewFieldsToCreateAndUpdate', () => {
+ it('adds new fields with no matching fieldMetadataId to viewFieldsToCreate', () => {
+ const viewId = v4();
+ const newViewField = buildViewField({
+ position: 0,
+ isVisible: true,
+ size: 150,
+ });
+
+ const result = computeViewFieldsToCreateAndUpdate({
+ newViewFields: [newViewField],
+ existingViewFields: [],
+ viewId,
+ });
+
+ expect(result.viewFieldsToCreate).toHaveLength(1);
+ expect(result.viewFieldsToCreate[0]).toEqual({
+ id: newViewField.id,
+ fieldMetadataId: newViewField.fieldMetadataId,
+ position: newViewField.position,
+ isVisible: newViewField.isVisible,
+ size: newViewField.size,
+ aggregateOperation: newViewField.aggregateOperation,
+ viewId,
+ });
+ expect(result.viewFieldsToUpdate).toHaveLength(0);
+ });
+
+ it('adds existing fields with changed properties to viewFieldsToUpdate', () => {
+ const viewId = v4();
+ const fieldMetadataId = v4();
+ const existingFieldId = v4();
+
+ const existingViewField = buildExistingViewField({
+ id: existingFieldId,
+ fieldMetadataId,
+ position: 0,
+ isVisible: true,
+ size: 100,
+ aggregateOperation: null,
+ });
+
+ const newViewField = buildViewField({
+ fieldMetadataId,
+ position: 2,
+ isVisible: false,
+ size: 200,
+ aggregateOperation: AggregateOperations.COUNT,
+ });
+
+ const result = computeViewFieldsToCreateAndUpdate({
+ newViewFields: [newViewField],
+ existingViewFields: [existingViewField],
+ viewId,
+ });
+
+ expect(result.viewFieldsToCreate).toHaveLength(0);
+ expect(result.viewFieldsToUpdate).toHaveLength(1);
+ expect(result.viewFieldsToUpdate[0]).toEqual({
+ input: {
+ id: existingFieldId,
+ update: {
+ isVisible: false,
+ position: 2,
+ size: 200,
+ aggregateOperation: AggregateOperations.COUNT,
+ },
+ },
+ });
+ });
+
+ it('skips existing fields with identical properties', () => {
+ const viewId = v4();
+ const fieldMetadataId = v4();
+
+ const existingViewField = buildExistingViewField({
+ fieldMetadataId,
+ position: 1,
+ isVisible: true,
+ size: 120,
+ aggregateOperation: AggregateOperations.SUM,
+ });
+
+ const newViewField = buildViewField({
+ fieldMetadataId,
+ position: 1,
+ isVisible: true,
+ size: 120,
+ aggregateOperation: AggregateOperations.SUM,
+ });
+
+ const result = computeViewFieldsToCreateAndUpdate({
+ newViewFields: [newViewField],
+ existingViewFields: [existingViewField],
+ viewId,
+ });
+
+ expect(result.viewFieldsToCreate).toHaveLength(0);
+ expect(result.viewFieldsToUpdate).toHaveLength(0);
+ });
+
+ it('returns empty arrays when newViewFields is empty', () => {
+ const viewId = v4();
+
+ const existingViewField = buildExistingViewField({});
+
+ const result = computeViewFieldsToCreateAndUpdate({
+ newViewFields: [],
+ existingViewFields: [existingViewField],
+ viewId,
+ });
+
+ expect(result.viewFieldsToCreate).toHaveLength(0);
+ expect(result.viewFieldsToUpdate).toHaveLength(0);
+ });
+
+ it('handles a mix of creates and updates in a single call', () => {
+ const viewId = v4();
+ const existingFieldMetadataId = v4();
+ const newFieldMetadataId = v4();
+ const existingFieldId = v4();
+
+ const existingViewField = buildExistingViewField({
+ id: existingFieldId,
+ fieldMetadataId: existingFieldMetadataId,
+ position: 0,
+ isVisible: true,
+ size: 100,
+ aggregateOperation: null,
+ });
+
+ const updatedNewViewField = buildViewField({
+ fieldMetadataId: existingFieldMetadataId,
+ position: 5,
+ isVisible: false,
+ size: 100,
+ aggregateOperation: null,
+ });
+
+ const brandNewViewField = buildViewField({
+ fieldMetadataId: newFieldMetadataId,
+ position: 1,
+ isVisible: true,
+ size: 80,
+ aggregateOperation: AggregateOperations.MIN,
+ });
+
+ const result = computeViewFieldsToCreateAndUpdate({
+ newViewFields: [updatedNewViewField, brandNewViewField],
+ existingViewFields: [existingViewField],
+ viewId,
+ });
+
+ expect(result.viewFieldsToCreate).toHaveLength(1);
+ expect(result.viewFieldsToCreate[0]).toEqual({
+ id: brandNewViewField.id,
+ fieldMetadataId: newFieldMetadataId,
+ position: 1,
+ isVisible: true,
+ size: 80,
+ aggregateOperation: AggregateOperations.MIN,
+ viewId,
+ });
+
+ expect(result.viewFieldsToUpdate).toHaveLength(1);
+ expect(result.viewFieldsToUpdate[0]).toEqual({
+ input: {
+ id: existingFieldId,
+ update: {
+ isVisible: false,
+ position: 5,
+ size: 100,
+ aggregateOperation: null,
+ },
+ },
+ });
+ });
+});
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/sortFieldsByRelevanceForRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/sortFieldsByRelevanceForRecordTableWidget.ts
new file mode 100644
index 00000000000..5c511ce770f
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/__tests__/sortFieldsByRelevanceForRecordTableWidget.ts
@@ -0,0 +1,163 @@
+import { FieldMetadataType, RelationType } from 'twenty-shared/types';
+
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { sortFieldsByRelevanceForRecordTableWidget } from '@/page-layout/widgets/record-table/utils/sortFieldsByRelevanceForRecordTableWidget';
+
+const labelIdentifierFieldMetadataId = 'label-identifier-id';
+
+const labelIdentifierField: Pick<
+ FieldMetadataItem,
+ 'id' | 'type' | 'settings'
+> = {
+ id: labelIdentifierFieldMetadataId,
+ type: FieldMetadataType.TEXT,
+ settings: null,
+};
+
+const regularTextField: Pick<FieldMetadataItem, 'id' | 'type' | 'settings'> = {
+ id: 'regular-text-field-id',
+ type: FieldMetadataType.TEXT,
+ settings: null,
+};
+
+const anotherRegularTextField: Pick<
+ FieldMetadataItem,
+ 'id' | 'type' | 'settings'
+> = {
+ id: 'another-regular-text-field-id',
+ type: FieldMetadataType.TEXT,
+ settings: null,
+};
+
+const oneToManyRelationField: Pick<
+ FieldMetadataItem,
+ 'id' | 'type' | 'settings'
+> = {
+ id: 'one-to-many-relation-field-id',
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.ONE_TO_MANY },
+};
+
+const manyToOneRelationField: Pick<
+ FieldMetadataItem,
+ 'id' | 'type' | 'settings'
+> = {
+ id: 'many-to-one-relation-field-id',
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.MANY_TO_ONE },
+};
+
+const anotherManyToOneRelationField: Pick<
+ FieldMetadataItem,
+ 'id' | 'type' | 'settings'
+> = {
+ id: 'another-many-to-one-relation-field-id',
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.MANY_TO_ONE },
+};
+
+describe('sortFieldsByRelevanceForWidget', () => {
+ it('returns -1 when fieldA is the label identifier field', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ labelIdentifierField as FieldMetadataItem,
+ regularTextField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(-1);
+ });
+
+ it('returns 1 when fieldB is the label identifier field', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ regularTextField as FieldMetadataItem,
+ labelIdentifierField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(1);
+ });
+
+ it('returns 1 when fieldA is a ONE_TO_MANY relation and fieldB is not', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ oneToManyRelationField as FieldMetadataItem,
+ regularTextField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(1);
+ });
+
+ it('returns -1 when fieldB is a ONE_TO_MANY relation and fieldA is not', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ regularTextField as FieldMetadataItem,
+ oneToManyRelationField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(-1);
+ });
+
+ it('returns 1 when fieldA is a non-ONE_TO_MANY relation and fieldB is a non-relation field', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ manyToOneRelationField as FieldMetadataItem,
+ regularTextField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(1);
+ });
+
+ it('returns -1 when fieldB is a non-ONE_TO_MANY relation and fieldA is a non-relation field', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ regularTextField as FieldMetadataItem,
+ manyToOneRelationField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(-1);
+ });
+
+ it('returns 0 when both fields are non-relation non-label-identifier fields', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ regularTextField as FieldMetadataItem,
+ anotherRegularTextField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(0);
+ });
+
+ it('returns 0 when both fields are non-ONE_TO_MANY relation fields', () => {
+ const comparator = sortFieldsByRelevanceForRecordTableWidget(
+ labelIdentifierFieldMetadataId,
+ );
+
+ const result = comparator(
+ manyToOneRelationField as FieldMetadataItem,
+ anotherManyToOneRelationField as FieldMetadataItem,
+ );
+
+ expect(result).toBe(0);
+ });
+});
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/computeViewFieldsToCreateAndUpdate.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/computeViewFieldsToCreateAndUpdate.ts
new file mode 100644
index 00000000000..fc2b1c8a5e0
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/computeViewFieldsToCreateAndUpdate.ts
@@ -0,0 +1,87 @@
+import { type ViewField } from '@/views/types/ViewField';
+import { isDefined } from 'twenty-shared/utils';
+import {
+ type CreateViewFieldInput,
+ type UpdateViewFieldMutationVariables,
+} from '~/generated-metadata/graphql';
+import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
+
+type ViewFieldsToCreateAndUpdate = {
+ viewFieldsToCreate: CreateViewFieldInput[];
+ viewFieldsToUpdate: UpdateViewFieldMutationVariables[];
+};
+
+export const computeViewFieldsToCreateAndUpdate = ({
+ newViewFields,
+ existingViewFields,
+ viewId,
+}: {
+ newViewFields: Omit<ViewField, 'definition'>[];
+ existingViewFields: ViewField[];
+ viewId: string;
+}): ViewFieldsToCreateAndUpdate => {
+ return newViewFields.reduce<ViewFieldsToCreateAndUpdate>(
+ (accumulator, newViewField) => {
+ const existingViewField = existingViewFields.find(
+ (existingField) =>
+ existingField.fieldMetadataId === newViewField.fieldMetadataId,
+ );
+
+ if (!isDefined(existingViewField)) {
+ return {
+ viewFieldsToCreate: [
+ ...accumulator.viewFieldsToCreate,
+ {
+ id: newViewField.id,
+ fieldMetadataId: newViewField.fieldMetadataId,
+ position: newViewField.position,
+ isVisible: newViewField.isVisible,
+ size: newViewField.size,
+ aggregateOperation: newViewField.aggregateOperation,
+ viewId,
+ },
+ ],
+ viewFieldsToUpdate: accumulator.viewFieldsToUpdate,
+ };
+ }
+
+ if (
+ isDeeplyEqual(
+ {
+ position: existingViewField.position,
+ size: existingViewField.size,
+ isVisible: existingViewField.isVisible,
+ aggregateOperation: existingViewField.aggregateOperation,
+ },
+ {
+ position: newViewField.position,
+ size: newViewField.size,
+ isVisible: newViewField.isVisible,
+ aggregateOperation: newViewField.aggregateOperation,
+ },
+ )
+ ) {
+ return accumulator;
+ }
+
+ return {
+ viewFieldsToCreate: accumulator.viewFieldsToCreate,
+ viewFieldsToUpdate: [
+ ...accumulator.viewFieldsToUpdate,
+ {
+ input: {
+ id: existingViewField.id,
+ update: {
+ isVisible: newViewField.isVisible,
+ position: newViewField.position,
+ size: newViewField.size,
+ aggregateOperation: newViewField.aggregateOperation,
+ },
+ },
+ },
+ ],
+ };
+ },
+ { viewFieldsToCreate: [], viewFieldsToUpdate: [] },
+ );
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/filterFieldsForRecordTableViewCreation.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/filterFieldsForRecordTableViewCreation.ts
new file mode 100644
index 00000000000..e8499a26aa5
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/filterFieldsForRecordTableViewCreation.ts
@@ -0,0 +1,8 @@
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { isHiddenSystemField } from '@/object-metadata/utils/isHiddenSystemField';
+
+export const filterFieldsForRecordTableViewCreation = (
+ field: FieldMetadataItem,
+) => {
+ return field.isActive && !field.isSystem && !isHiddenSystemField(field);
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/sortFieldsByRelevanceForRecordTableWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/sortFieldsByRelevanceForRecordTableWidget.ts
new file mode 100644
index 00000000000..a8e973b84a9
--- /dev/null
+++ b/packages/twenty-front/src/modules/page-layout/widgets/record-table/utils/sortFieldsByRelevanceForRecordTableWidget.ts
@@ -0,0 +1,39 @@
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { FieldMetadataType, RelationType } from 'twenty-shared/types';
+
+export const sortFieldsByRelevanceForRecordTableWidget = (
+ labelIdentifierFieldMetadataId: string,
+) => {
+ return (fieldA: FieldMetadataItem, fieldB: FieldMetadataItem): number => {
+ if (fieldA.id === labelIdentifierFieldMetadataId) {
+ return -1;
+ }
+
+ if (fieldB.id === labelIdentifierFieldMetadataId) {
+ return 1;
+ }
+
+ const isFieldAReverseSide =
+ fieldA.type === FieldMetadataType.RELATION &&
+ fieldA.settings?.relationType === RelationType.ONE_TO_MANY;
+ const isFieldBReverseSide =
+ fieldB.type === FieldMetadataType.RELATION &&
+ fieldB.settings?.relationType === RelationType.ONE_TO_MANY;
+
+ if (isFieldAReverseSide && !isFieldBReverseSide) return 1;
+ if (!isFieldAReverseSide && isFieldBReverseSide) return -1;
+
+ const isFieldARelation = fieldA.type === FieldMetadataType.RELATION;
+ const isFieldBRelation = fieldB.type === FieldMetadataType.RELATION;
+
+ if (isFieldARelation && !isFieldBRelation) {
+ return 1;
+ }
+
+ if (!isFieldARelation && isFieldBRelation) {
+ return -1;
+ }
+
+ return 0;
+ };
+};
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/widget-card/components/WidgetCardContent.tsx b/packages/twenty-front/src/modules/page-layout/widgets/widget-card/components/WidgetCardContent.tsx
index cd68776d5e4..8a0fe6b3e22 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/widget-card/components/WidgetCardContent.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/widget-card/components/WidgetCardContent.tsx
@@ -62,12 +62,21 @@ export const WidgetCardContent = ({
className,
children,
}: WidgetCardContentProps) => {
+ const handleContentClick = (event: React.MouseEvent) => {
+ if (!isEditable) {
+ return;
+ }
+
+ event.stopPropagation();
+ };
+
return (
<StyledWidgetCardContent
variant={variant}
hasHeader={hasHeader}
isEditable={isEditable}
className={className}
+ onClick={handleContentClick}
>
{children}
</StyledWidgetCardContent>
diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelPageInfo.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelPageInfo.tsx
index 5cab43810b3..19921961e3e 100644
--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelPageInfo.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelPageInfo.tsx
@@ -101,6 +101,7 @@ export const SidePanelPageInfo = ({ pageChip }: SidePanelPageInfoProps) => {
SidePanelPages.PageLayoutIframeSettings,
SidePanelPages.PageLayoutTabSettings,
SidePanelPages.PageLayoutFieldsSettings,
+ SidePanelPages.PageLayoutRecordTableSettings,
].includes(pageChip.page?.page)
: false;
diff --git a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
index c687bab7531..cc7a2bc58e9 100644
--- a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
+++ b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
@@ -12,6 +12,7 @@ import {
IconFrame,
IconList,
IconPlus,
+ IconTable,
type IconComponent,
} from 'twenty-ui/display';
import { ThemeContext } from 'twenty-ui/theme-constants';
@@ -174,6 +175,36 @@ export const usePageLayoutHeaderInfo = ({
};
}
+ case SidePanelPages.PageLayoutRecordTableSettings: {
+ if (!isDefined(pageLayoutEditingWidgetId)) {
+ return null;
+ }
+
+ const widgetInEditMode = draftPageLayout.tabs
+ .flatMap((tab) => tab.widgets)
+ .find((widget) => widget.id === pageLayoutEditingWidgetId);
+
+ if (!isDefined(widgetInEditMode)) {
+ return null;
+ }
+
+ const title = isDefined(editedTitle)
+ ? editedTitle
+ : isDefined(widgetInEditMode.title) && widgetInEditMode.title !== ''
+ ? widgetInEditMode.title
+ : '';
+
+ return {
+ headerIcon: IconTable,
+ headerIconColor: iconColor,
+ headerType: t`Record Table`,
+ title,
+ isReadonly: false,
+ tab: undefined,
+ widgetInEditMode,
+ };
+ }
+
case SidePanelPages.PageLayoutWidgetTypeSelect: {
return {
headerIcon: IconPlus,
diff --git a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx
index 207305c8906..65012005655 100644
--- a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx
+++ b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx
@@ -7,6 +7,7 @@ import { SidePanelNavigationMenuItemEditPage } from '@/navigation-menu-item/edit
import { SidePanelNewSidebarItemPage } from '@/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemPage';
import { SidePanelPageLayoutChartSettings } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutChartSettings';
import { SidePanelPageLayoutFieldsSettings } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutFieldsSettings';
+import { SidePanelPageLayoutRecordTableSettings } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordTableSettings';
import { SidePanelPageLayoutIframeSettings } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutIframeSettings';
import { SidePanelPageLayoutTabSettings } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutTabSettings';
import { SidePanelPageLayoutWidgetTypeSelect } from '@/side-panel/pages/page-layout/components/SidePanelPageLayoutWidgetTypeSelect';
@@ -62,6 +63,10 @@ export const SIDE_PANEL_PAGES_CONFIG = new Map<SidePanelPages, React.ReactNode>(
SidePanelPages.PageLayoutFieldsSettings,
<SidePanelPageLayoutFieldsSettings />,
],
+ [
+ SidePanelPages.PageLayoutRecordTableSettings,
+ <SidePanelPageLayoutRecordTableSettings />,
+ ],
[SidePanelPages.ViewFrontComponent, <SidePanelFrontComponentPage />],
[
SidePanelPages.NavigationMenuItemEdit,
diff --git a/packages/twenty-front/src/modules/side-panel/constants/SidePanelSubPagesConfig.tsx b/packages/twenty-front/src/modules/side-panel/constants/SidePanelSubPagesConfig.tsx
index 5e54f118105..cfda24be15e 100644
--- a/packages/twenty-front/src/modules/side-panel/constants/SidePanelSubPagesConfig.tsx
+++ b/packages/twenty-front/src/modules/side-panel/constants/SidePanelSubPagesConfig.tsx
@@ -7,6 +7,8 @@ import { SidePanelNewSidebarItemViewPickerSubPage } from '@/navigation-menu-item
import { SidePanelNewSidebarItemViewSystemPickerSubPage } from '@/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemViewSystemPickerSubPage';
import { SidePanelChartFilterSubPage } from '@/side-panel/pages/page-layout/components/SidePanelChartFilterSubPage';
import { SidePanelFieldsLayoutSubPage } from '@/side-panel/pages/page-layout/components/SidePanelFieldsLayoutSubPage';
+import { SidePanelRecordTableFilterSubPage } from '@/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFilterSubPage';
+import { SidePanelRecordTableSortSubPage } from '@/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableSortSubPage';
import { SidePanelSubPages } from '@/side-panel/types/SidePanelSubPages';
import React from 'react';
@@ -16,6 +18,14 @@ export const SIDE_PANEL_SUB_PAGES_CONFIG = new Map<
>([
[SidePanelSubPages.PageLayoutGraphFilter, <SidePanelChartFilterSubPage />],
[SidePanelSubPages.PageLayoutFieldsLayout, <SidePanelFieldsLayoutSubPage />],
+ [
+ SidePanelSubPages.PageLayoutRecordTableFilter,
+ <SidePanelRecordTableFilterSubPage />,
+ ],
+ [
+ SidePanelSubPages.PageLayoutRecordTableSort,
+ <SidePanelRecordTableSortSubPage />,
+ ],
[
SidePanelSubPages.NewSidebarItemViewObjectPicker,
<SidePanelNewSidebarItemViewObjectPickerSubPage />,
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordTableSettings.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordTableSettings.tsx
new file mode 100644
index 00000000000..07e684d27a9
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordTableSettings.tsx
@@ -0,0 +1,158 @@
+import { CommandMenuItem } from '@/command-menu/components/CommandMenuItem';
+import { CommandMenuItemDropdown } from '@/command-menu/components/CommandMenuItemDropdown';
+import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/contexts/WidgetComponentInstanceContext';
+import { SidePanelGroup } from '@/side-panel/components/SidePanelGroup';
+import { SidePanelList } from '@/side-panel/components/SidePanelList';
+import { useSidePanelSubPageHistory } from '@/side-panel/hooks/useSidePanelSubPageHistory';
+import { RecordTableDataSourceDropdownContent } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableDataSourceDropdownContent';
+import { RecordTableFieldsDropdownContent } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownContent';
+import { WidgetSettingsFooter } from '@/side-panel/pages/page-layout/components/WidgetSettingsFooter';
+import { usePageLayoutIdFromContextStore } from '@/side-panel/pages/page-layout/hooks/usePageLayoutIdFromContextStore';
+import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
+import { SidePanelSubPages } from '@/side-panel/types/SidePanelSubPages';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem';
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import {
+ IconArrowsSort,
+ IconDatabase,
+ IconEye,
+ IconFilter,
+} from 'twenty-ui/display';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+const StyledContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+`;
+
+const StyledSettingsContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ overflow: hidden;
+`;
+
+export const SidePanelPageLayoutRecordTableSettings = () => {
+ const { pageLayoutId } = usePageLayoutIdFromContextStore();
+ const { widgetInEditMode } = useWidgetInEditMode(pageLayoutId);
+ const { navigateToSidePanelSubPage } = useSidePanelSubPageHistory();
+
+ if (!isDefined(widgetInEditMode)) {
+ return null;
+ }
+
+ const { configuration } = widgetInEditMode;
+
+ const isRecordTableConfiguration =
+ configuration.configurationType === WidgetConfigurationType.RECORD_TABLE;
+
+ const viewId =
+ isRecordTableConfiguration &&
+ 'viewId' in configuration &&
+ isDefined(configuration.viewId)
+ ? (configuration.viewId as string)
+ : undefined;
+
+ const hasViewId = isDefined(viewId);
+
+ const selectableItemIds = [
+ 'record-table-source',
+ ...(hasViewId
+ ? ['record-table-fields', 'record-table-filter', 'record-table-sort']
+ : []),
+ ];
+
+ const handleFilterClick = () => {
+ navigateToSidePanelSubPage(SidePanelSubPages.PageLayoutRecordTableFilter);
+ };
+
+ const handleSortClick = () => {
+ navigateToSidePanelSubPage(SidePanelSubPages.PageLayoutRecordTableSort);
+ };
+
+ return (
+ <StyledContainer>
+ <WidgetComponentInstanceContext.Provider
+ value={{ instanceId: widgetInEditMode.id }}
+ >
+ <StyledSettingsContainer>
+ <SidePanelList
+ commandGroups={[]}
+ selectableItemIds={selectableItemIds}
+ >
+ <SidePanelGroup heading={t`Data`}>
+ <SelectableListItem itemId="record-table-source">
+ <CommandMenuItemDropdown
+ Icon={IconDatabase}
+ label={t`Source`}
+ id="record-table-source"
+ dropdownId="record-table-source"
+ dropdownComponents={
+ <DropdownContent>
+ <RecordTableDataSourceDropdownContent />
+ </DropdownContent>
+ }
+ dropdownPlacement="bottom-end"
+ hasSubMenu
+ contextualTextPosition="right"
+ />
+ </SelectableListItem>
+ {hasViewId && (
+ <>
+ <SelectableListItem itemId="record-table-fields">
+ <CommandMenuItemDropdown
+ Icon={IconEye}
+ label={t`Fields`}
+ id="record-table-fields"
+ dropdownId="record-table-fields"
+ dropdownComponents={
+ <RecordTableFieldsDropdownContent
+ viewId={viewId}
+ objectMetadataId={widgetInEditMode.objectMetadataId!}
+ />
+ }
+ dropdownPlacement="bottom-end"
+ hasSubMenu
+ contextualTextPosition="right"
+ />
+ </SelectableListItem>
+ <SelectableListItem
+ itemId="record-table-filter"
+ onEnter={handleFilterClick}
+ >
+ <CommandMenuItem
+ id="record-table-filter"
+ label={t`Filter`}
+ Icon={IconFilter}
+ hasSubMenu
+ onClick={handleFilterClick}
+ contextualTextPosition="right"
+ />
+ </SelectableListItem>
+ <SelectableListItem
+ itemId="record-table-sort"
+ onEnter={handleSortClick}
+ >
+ <CommandMenuItem
+ id="record-table-sort"
+ label={t`Sort`}
+ Icon={IconArrowsSort}
+ hasSubMenu
+ onClick={handleSortClick}
+ contextualTextPosition="right"
+ />
+ </SelectableListItem>
+ </>
+ )}
+ </SidePanelGroup>
+ </SidePanelList>
+ </StyledSettingsContainer>
+ <WidgetSettingsFooter pageLayoutId={pageLayoutId} />
+ </WidgetComponentInstanceContext.Provider>
+ </StyledContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutWidgetTypeSelect.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutWidgetTypeSelect.tsx
index 32fb4a28191..774fcba5244 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutWidgetTypeSelect.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutWidgetTypeSelect.tsx
@@ -3,6 +3,7 @@ import { FIND_MANY_FRONT_COMPONENTS } from '@/front-components/graphql/queries/f
import { useCreatePageLayoutFrontComponentWidget } from '@/page-layout/hooks/useCreatePageLayoutFrontComponentWidget';
import { useCreatePageLayoutGraphWidget } from '@/page-layout/hooks/useCreatePageLayoutGraphWidget';
import { useCreatePageLayoutIframeWidget } from '@/page-layout/hooks/useCreatePageLayoutIframeWidget';
+import { useCreatePageLayoutRecordTableWidget } from '@/page-layout/hooks/useCreatePageLayoutRecordTableWidget';
import { useCreatePageLayoutStandaloneRichTextWidget } from '@/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget';
import { useOpportunityDefaultChartConfig } from '@/page-layout/hooks/useOpportunityDefaultChartConfig';
import { useRemovePageLayoutWidgetAndPreservePosition } from '@/page-layout/hooks/useRemovePageLayoutWidgetAndPreservePosition';
@@ -29,6 +30,7 @@ import {
IconApps,
IconChartPie,
IconFrame,
+ IconTable,
} from 'twenty-ui/display';
import {
FeatureFlagKey,
@@ -78,6 +80,9 @@ export const SidePanelPageLayoutWidgetTypeSelect = () => {
tabListInstanceId,
});
+ const { createPageLayoutRecordTableWidget } =
+ useCreatePageLayoutRecordTableWidget(pageLayoutId);
+
const { removePageLayoutWidgetAndPreservePosition } =
useRemovePageLayoutWidgetAndPreservePosition(pageLayoutId);
@@ -176,6 +181,28 @@ export const SidePanelPageLayoutWidgetTypeSelect = () => {
closeSidePanelMenu();
};
+ const handleNavigateToRecordTableSettings = () => {
+ if (
+ isExistingWidgetMissingOrDifferentType(
+ existingWidget?.type,
+ WidgetType.RECORD_TABLE,
+ )
+ ) {
+ if (isDefined(pageLayoutEditingWidgetId)) {
+ removePageLayoutWidgetAndPreservePosition(pageLayoutEditingWidgetId);
+ }
+
+ const newRecordTableWidget = createPageLayoutRecordTableWidget();
+
+ setPageLayoutEditingWidgetId(newRecordTableWidget.id);
+ }
+
+ navigatePageLayoutSidePanel({
+ sidePanelPage: SidePanelPages.PageLayoutRecordTableSettings,
+ focusTitleInput: false,
+ });
+ };
+
const handleCreateFrontComponentWidget = (frontComponent: FrontComponent) => {
if (
isExistingWidgetMissingOrDifferentType(
@@ -199,6 +226,7 @@ export const SidePanelPageLayoutWidgetTypeSelect = () => {
const selectableItemIds = [
'chart',
+ 'record-table',
'iframe',
'rich-text',
...frontComponentsWithSelectItemId.map(({ selectItemId }) => selectItemId),
@@ -218,6 +246,17 @@ export const SidePanelPageLayoutWidgetTypeSelect = () => {
onClick={handleNavigateToGraphTypeSelect}
/>
</SelectableListItem>
+ <SelectableListItem
+ itemId="record-table"
+ onEnter={handleNavigateToRecordTableSettings}
+ >
+ <CommandMenuItem
+ Icon={IconTable}
+ label={t`Record Table`}
+ id="record-table"
+ onClick={handleNavigateToRecordTableSettings}
+ />
+ </SelectableListItem>
<SelectableListItem
itemId="iframe"
onEnter={handleNavigateToIframeSettings}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
index 53dc4cceaac..b974beb2a8b 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
@@ -3,6 +3,7 @@ import { useResetChartDraftFiltersSettings } from '@/side-panel/pages/page-layou
import { useUpdateCurrentWidgetConfig } from '@/side-panel/pages/page-layout/hooks/useUpdateCurrentWidgetConfig';
import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
+import { filterReadableActiveObjectMetadataItems } from '@/object-metadata/utils/filterReadableActiveObjectMetadataItems';
import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions';
import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader';
import { DropdownMenuHeaderLeftComponent } from '@/ui/layout/dropdown/components/DropdownMenuHeader/internal/DropdownMenuHeaderLeftComponent';
@@ -49,17 +50,9 @@ export const ChartDataSourceDropdownContent = () => {
dropdownId,
);
- const objectsWithReadAccess = objectMetadataItems.filter(
- (objectMetadataItem) => {
- const objectPermissions =
- objectPermissionsByObjectMetadataId[objectMetadataItem.id];
-
- return (
- isDefined(objectPermissions) &&
- objectPermissions.canReadObjectRecords &&
- objectMetadataItem.isActive
- );
- },
+ const objectsWithReadAccess = filterReadableActiveObjectMetadataItems(
+ objectMetadataItems,
+ objectPermissionsByObjectMetadataId,
);
const regularObjects = objectsWithReadAccess
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableDataSourceDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableDataSourceDropdownContent.tsx
new file mode 100644
index 00000000000..137aac59d15
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableDataSourceDropdownContent.tsx
@@ -0,0 +1,162 @@
+import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
+import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions';
+import { useUpdatePageLayoutWidget } from '@/page-layout/hooks/useUpdatePageLayoutWidget';
+import { useCreateViewForRecordTableWidget } from '@/page-layout/widgets/record-table/hooks/useCreateViewForRecordTableWidget';
+import { useDeleteViewForRecordTableWidget } from '@/page-layout/widgets/record-table/hooks/useDeleteViewForRecordTableWidget';
+import { usePageLayoutIdFromContextStore } from '@/side-panel/pages/page-layout/hooks/usePageLayoutIdFromContextStore';
+import { useUpdateCurrentWidgetConfig } from '@/side-panel/pages/page-layout/hooks/useUpdateCurrentWidgetConfig';
+import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
+import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
+import { DropdownMenuSearchInput } from '@/ui/layout/dropdown/components/DropdownMenuSearchInput';
+import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator';
+import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext';
+import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
+import { SelectableList } from '@/ui/layout/selectable-list/components/SelectableList';
+import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem';
+import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states/selectedItemIdComponentState';
+import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { filterReadableActiveObjectMetadataItems } from '@/object-metadata/utils/filterReadableActiveObjectMetadataItems';
+import { t } from '@lingui/core/macro';
+import { useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { useIcons } from 'twenty-ui/display';
+import { MenuItemSelect } from 'twenty-ui/navigation';
+import { filterBySearchQuery } from '~/utils/filterBySearchQuery';
+
+export const RecordTableDataSourceDropdownContent = () => {
+ const [searchQuery, setSearchQuery] = useState('');
+ const { objectMetadataItems } = useObjectMetadataItems();
+ const { objectPermissionsByObjectMetadataId } = useObjectPermissions();
+ const { pageLayoutId } = usePageLayoutIdFromContextStore();
+ const { widgetInEditMode } = useWidgetInEditMode(pageLayoutId);
+
+ const currentObjectMetadataItemId = widgetInEditMode?.objectMetadataId as
+ | string
+ | undefined;
+
+ const dropdownId = useAvailableComponentInstanceIdOrThrow(
+ DropdownComponentInstanceContext,
+ );
+
+ const selectedItemId = useAtomComponentStateValue(
+ selectedItemIdComponentState,
+ dropdownId,
+ );
+
+ const { updateCurrentWidgetConfig } =
+ useUpdateCurrentWidgetConfig(pageLayoutId);
+
+ const { createViewForRecordTableWidget } =
+ useCreateViewForRecordTableWidget(pageLayoutId);
+
+ const { deleteViewForRecordTableWidget } =
+ useDeleteViewForRecordTableWidget();
+
+ const { updatePageLayoutWidget } = useUpdatePageLayoutWidget(pageLayoutId);
+
+ const { closeDropdown } = useCloseDropdown();
+ const { getIcon } = useIcons();
+
+ const readableActiveObjectMetadataItems =
+ filterReadableActiveObjectMetadataItems(
+ objectMetadataItems,
+ objectPermissionsByObjectMetadataId,
+ );
+
+ const objectsWithReadAccess = readableActiveObjectMetadataItems.filter(
+ (objectMetadataItem) => !objectMetadataItem.isSystem,
+ );
+
+ const sortedObjects = objectsWithReadAccess.sort((first, second) =>
+ first.labelPlural.localeCompare(second.labelPlural),
+ );
+
+ const filteredObjects = filterBySearchQuery({
+ items: sortedObjects,
+ searchQuery,
+ getSearchableValues: (item) => [item.labelPlural, item.namePlural],
+ });
+
+ const currentViewId =
+ widgetInEditMode?.configuration &&
+ 'viewId' in widgetInEditMode.configuration
+ ? (widgetInEditMode.configuration.viewId as string | undefined)
+ : undefined;
+
+ const handleSelectSource = async (newObjectMetadataItemId: string) => {
+ if (currentObjectMetadataItemId === newObjectMetadataItemId) {
+ closeDropdown();
+ return;
+ }
+
+ if (isDefined(currentViewId)) {
+ await deleteViewForRecordTableWidget(currentViewId);
+ }
+
+ updateCurrentWidgetConfig({
+ objectMetadataId: newObjectMetadataItemId,
+ configToUpdate: {
+ viewId: undefined,
+ },
+ });
+
+ const selectedObjectMetadataItem = objectMetadataItems.find(
+ (item) => item.id === newObjectMetadataItemId,
+ );
+
+ if (isDefined(selectedObjectMetadataItem)) {
+ await createViewForRecordTableWidget(selectedObjectMetadataItem);
+
+ if (isDefined(widgetInEditMode)) {
+ updatePageLayoutWidget(widgetInEditMode.id, {
+ title: selectedObjectMetadataItem.labelPlural,
+ });
+ }
+ }
+
+ closeDropdown();
+ };
+
+ return (
+ <>
+ <DropdownMenuSearchInput
+ autoFocus
+ type="text"
+ placeholder={t`Search objects`}
+ onChange={(event) => setSearchQuery(event.target.value)}
+ value={searchQuery}
+ />
+ <DropdownMenuSeparator />
+ <DropdownMenuItemsContainer>
+ <SelectableList
+ selectableListInstanceId={dropdownId}
+ focusId={dropdownId}
+ selectableItemIdArray={filteredObjects.map(
+ (objectMetadataItem) => objectMetadataItem.id,
+ )}
+ >
+ {filteredObjects.map((objectMetadataItem) => (
+ <SelectableListItem
+ key={objectMetadataItem.id}
+ itemId={objectMetadataItem.id}
+ onEnter={() => {
+ handleSelectSource(objectMetadataItem.id);
+ }}
+ >
+ <MenuItemSelect
+ text={objectMetadataItem.labelPlural}
+ selected={currentObjectMetadataItemId === objectMetadataItem.id}
+ focused={selectedItemId === objectMetadataItem.id}
+ LeftIcon={getIcon(objectMetadataItem.icon)}
+ onClick={() => {
+ handleSelectSource(objectMetadataItem.id);
+ }}
+ />
+ </SelectableListItem>
+ ))}
+ </SelectableList>
+ </DropdownMenuItemsContainer>
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownContent.tsx
new file mode 100644
index 00000000000..da7338eb163
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownContent.tsx
@@ -0,0 +1,47 @@
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { RecordFieldsComponentInstanceContext } from '@/object-record/record-field/states/context/RecordFieldsComponentInstanceContext';
+import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
+import { RecordTableFieldsDropdownHiddenFieldsContent } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent';
+import { RecordTableFieldsDropdownVisibleFieldsContent } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent';
+import { useState } from 'react';
+
+type RecordTableFieldsDropdownContentProps = {
+ viewId: string;
+ objectMetadataId: string;
+};
+
+export const RecordTableFieldsDropdownContent = ({
+ viewId,
+ objectMetadataId,
+}: RecordTableFieldsDropdownContentProps) => {
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ const recordIndexId = getRecordIndexIdFromObjectNamePluralAndViewId(
+ objectMetadataItem.namePlural,
+ viewId,
+ );
+
+ const [showHiddenFields, setShowHiddenFields] = useState(false);
+
+ return (
+ <RecordFieldsComponentInstanceContext.Provider
+ value={{ instanceId: recordIndexId }}
+ >
+ {showHiddenFields ? (
+ <RecordTableFieldsDropdownHiddenFieldsContent
+ objectMetadataId={objectMetadataId}
+ recordIndexId={recordIndexId}
+ onBack={() => setShowHiddenFields(false)}
+ />
+ ) : (
+ <RecordTableFieldsDropdownVisibleFieldsContent
+ objectMetadataId={objectMetadataId}
+ recordIndexId={recordIndexId}
+ onShowHiddenFields={() => setShowHiddenFields(true)}
+ />
+ )}
+ </RecordFieldsComponentInstanceContext.Provider>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx
new file mode 100644
index 00000000000..581872bf9af
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownHiddenFieldsContent.tsx
@@ -0,0 +1,110 @@
+import { useActiveFieldMetadataItems } from '@/object-metadata/hooks/useActiveFieldMetadataItems';
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { useUpdateRecordField } from '@/object-record/record-field/hooks/useUpdateRecordField';
+import { useUpsertRecordField } from '@/object-record/record-field/hooks/useUpsertRecordField';
+import { currentRecordFieldsComponentState } from '@/object-record/record-field/states/currentRecordFieldsComponentState';
+import { type RecordField } from '@/object-record/record-field/types/RecordField';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader';
+import { DropdownMenuHeaderLeftComponent } from '@/ui/layout/dropdown/components/DropdownMenuHeader/internal/DropdownMenuHeaderLeftComponent';
+import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { IconChevronLeft, IconEye, useIcons } from 'twenty-ui/display';
+import { MenuItem } from 'twenty-ui/navigation';
+import { v4 } from 'uuid';
+import { sortByProperty } from '~/utils/array/sortByProperty';
+
+type RecordTableFieldsDropdownHiddenFieldsContentProps = {
+ objectMetadataId: string;
+ recordIndexId: string;
+ onBack: () => void;
+};
+
+export const RecordTableFieldsDropdownHiddenFieldsContent = ({
+ objectMetadataId,
+ recordIndexId,
+ onBack,
+}: RecordTableFieldsDropdownHiddenFieldsContentProps) => {
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ const { getIcon } = useIcons();
+
+ const { upsertRecordField } = useUpsertRecordField(recordIndexId);
+
+ const { updateRecordField } = useUpdateRecordField(recordIndexId);
+
+ const currentRecordFields = useAtomComponentStateValue(
+ currentRecordFieldsComponentState,
+ );
+
+ const { activeFieldMetadataItems } = useActiveFieldMetadataItems({
+ objectMetadataItem,
+ });
+
+ const visibleFieldMetadataItemIds = currentRecordFields
+ .filter((recordField) => recordField.isVisible)
+ .map((recordField) => recordField.fieldMetadataItemId);
+
+ const hiddenFieldMetadataItems = activeFieldMetadataItems.filter(
+ (fieldMetadataItem) =>
+ !visibleFieldMetadataItemIds.includes(fieldMetadataItem.id),
+ );
+
+ const handleShowField = (fieldMetadataId: string) => {
+ const existingRecordField = currentRecordFields.find(
+ (recordField) => recordField.fieldMetadataItemId === fieldMetadataId,
+ );
+
+ if (isDefined(existingRecordField)) {
+ updateRecordField(fieldMetadataId, { isVisible: true });
+ } else {
+ const lastPosition =
+ currentRecordFields.toSorted(sortByProperty('position', 'desc'))?.[0]
+ ?.position ?? 0;
+
+ const newRecordField: RecordField = {
+ id: v4(),
+ fieldMetadataItemId: fieldMetadataId,
+ size: 100,
+ isVisible: true,
+ position: lastPosition + 1,
+ };
+
+ upsertRecordField(newRecordField);
+ }
+ };
+
+ return (
+ <DropdownContent>
+ <DropdownMenuHeader
+ StartComponent={
+ <DropdownMenuHeaderLeftComponent
+ onClick={onBack}
+ Icon={IconChevronLeft}
+ />
+ }
+ >
+ {t`Hidden Fields`}
+ </DropdownMenuHeader>
+ <DropdownMenuItemsContainer>
+ {hiddenFieldMetadataItems.map((fieldMetadataItem) => (
+ <MenuItem
+ key={fieldMetadataItem.id}
+ LeftIcon={getIcon(fieldMetadataItem.icon)}
+ iconButtons={[
+ {
+ Icon: IconEye,
+ onClick: () => handleShowField(fieldMetadataItem.id),
+ },
+ ]}
+ text={fieldMetadataItem.label}
+ />
+ ))}
+ </DropdownMenuItemsContainer>
+ </DropdownContent>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx
new file mode 100644
index 00000000000..5c6d7a0c434
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableFieldsDropdownVisibleFieldsContent.tsx
@@ -0,0 +1,149 @@
+import { useGetFieldMetadataItemByIdOrThrow } from '@/object-metadata/hooks/useGetFieldMetadataItemById';
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { getLabelIdentifierFieldMetadataItem } from '@/object-metadata/utils/getLabelIdentifierFieldMetadataItem';
+import { useReorderVisibleRecordFields } from '@/object-record/record-field/hooks/useReorderVisibleRecordFields';
+import { useUpdateRecordField } from '@/object-record/record-field/hooks/useUpdateRecordField';
+import { visibleRecordFieldsComponentSelector } from '@/object-record/record-field/states/visibleRecordFieldsComponentSelector';
+import { DraggableItem } from '@/ui/layout/draggable-list/components/DraggableItem';
+import { DraggableList } from '@/ui/layout/draggable-list/components/DraggableList';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
+import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator';
+import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';
+import { type DropResult } from '@hello-pangea/dnd';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { IconEyeOff, useIcons } from 'twenty-ui/display';
+import { MenuItemDraggable, MenuItemNavigate } from 'twenty-ui/navigation';
+import { sortByProperty } from '~/utils/array/sortByProperty';
+
+type RecordTableFieldsDropdownVisibleFieldsContentProps = {
+ objectMetadataId: string;
+ recordIndexId: string;
+ onShowHiddenFields: () => void;
+};
+
+export const RecordTableFieldsDropdownVisibleFieldsContent = ({
+ objectMetadataId,
+ recordIndexId,
+ onShowHiddenFields,
+}: RecordTableFieldsDropdownVisibleFieldsContentProps) => {
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ const { getIcon } = useIcons();
+
+ const { getFieldMetadataItemByIdOrThrow } =
+ useGetFieldMetadataItemByIdOrThrow();
+
+ const { reorderVisibleRecordFields } =
+ useReorderVisibleRecordFields(recordIndexId);
+
+ const { updateRecordField } = useUpdateRecordField(recordIndexId);
+
+ const fieldMetadataItemLabelIdentifier =
+ getLabelIdentifierFieldMetadataItem(objectMetadataItem);
+
+ const visibleRecordFields = useAtomComponentSelectorValue(
+ visibleRecordFieldsComponentSelector,
+ );
+
+ const nonDraggableRecordField = visibleRecordFields.find(
+ (recordField) =>
+ recordField.fieldMetadataItemId === fieldMetadataItemLabelIdentifier?.id,
+ );
+
+ const draggableRecordFields = visibleRecordFields
+ .filter(
+ (recordField) =>
+ nonDraggableRecordField?.fieldMetadataItemId !==
+ recordField.fieldMetadataItemId,
+ )
+ .toSorted(sortByProperty('position'));
+
+ const handleDragEnd = (result: DropResult) => {
+ if (
+ !result.destination ||
+ result.destination.index === 1 ||
+ result.source.index === 1
+ ) {
+ return;
+ }
+
+ reorderVisibleRecordFields({
+ fromIndex: result.source.index - 1,
+ toIndex: result.destination.index - 1,
+ });
+ };
+
+ const handleHideField = (fieldMetadataId: string) => {
+ updateRecordField(fieldMetadataId, { isVisible: false });
+ };
+
+ return (
+ <DropdownContent>
+ <DropdownMenuItemsContainer>
+ {isDefined(fieldMetadataItemLabelIdentifier) && (
+ <MenuItemDraggable
+ LeftIcon={getIcon(fieldMetadataItemLabelIdentifier.icon)}
+ text={fieldMetadataItemLabelIdentifier.label}
+ accent="placeholder"
+ gripMode="always"
+ isDragDisabled
+ />
+ )}
+ {draggableRecordFields.length > 0 && (
+ <DraggableList
+ onDragEnd={handleDragEnd}
+ draggableItems={
+ <>
+ {draggableRecordFields.map((recordField, index) => {
+ const fieldIndex =
+ index +
+ (isDefined(fieldMetadataItemLabelIdentifier) ? 1 : 0);
+
+ const { fieldMetadataItem } = getFieldMetadataItemByIdOrThrow(
+ recordField.fieldMetadataItemId,
+ );
+
+ return (
+ <DraggableItem
+ key={recordField.fieldMetadataItemId}
+ draggableId={recordField.fieldMetadataItemId}
+ index={fieldIndex + 1}
+ itemComponent={
+ <MenuItemDraggable
+ LeftIcon={getIcon(fieldMetadataItem.icon)}
+ iconButtons={[
+ {
+ Icon: IconEyeOff,
+ onClick: () =>
+ handleHideField(
+ recordField.fieldMetadataItemId,
+ ),
+ },
+ ]}
+ text={fieldMetadataItem.label}
+ gripMode="always"
+ />
+ }
+ />
+ );
+ })}
+ </>
+ }
+ />
+ )}
+ </DropdownMenuItemsContainer>
+ <DropdownMenuSeparator />
+ <DropdownMenuItemsContainer scrollable={false}>
+ <MenuItemNavigate
+ onClick={onShowHiddenFields}
+ LeftIcon={IconEyeOff}
+ text={t`Hidden Fields`}
+ />
+ </DropdownMenuItemsContainer>
+ </DropdownContent>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx
new file mode 100644
index 00000000000..b2eb1ad981b
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility.tsx
@@ -0,0 +1,140 @@
+import { useRecordTableWidgetViewFieldItems } from '@/page-layout/widgets/record-table/hooks/useRecordTableWidgetViewFieldItems';
+import { useReorderRecordTableWidgetFields } from '@/page-layout/widgets/record-table/hooks/useReorderRecordTableWidgetFields';
+import { useToggleRecordTableWidgetFieldVisibility } from '@/page-layout/widgets/record-table/hooks/useToggleRecordTableWidgetFieldVisibility';
+import { DraggableItem } from '@/ui/layout/draggable-list/components/DraggableItem';
+import { DraggableList } from '@/ui/layout/draggable-list/components/DraggableList';
+import { type DropResult } from '@hello-pangea/dnd';
+import { styled } from '@linaria/react';
+import { useMemo } from 'react';
+import { IconEye, IconEyeOff, useIcons } from 'twenty-ui/display';
+import { MenuItemDraggable } from 'twenty-ui/navigation';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+
+const StyledFieldListContainer = styled.div`
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ overflow-y: auto;
+`;
+
+const StyledSectionLabel = styled.div`
+ color: ${themeCssVariables.font.color.light};
+ font-size: ${themeCssVariables.font.size.xs};
+ font-weight: ${themeCssVariables.font.weight.semiBold};
+ padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
+ text-transform: uppercase;
+`;
+
+type RecordTableSettingsFieldVisibilityProps = {
+ viewId: string;
+};
+
+export const RecordTableSettingsFieldVisibility = ({
+ viewId,
+}: RecordTableSettingsFieldVisibilityProps) => {
+ const { recordTableWidgetViewFieldItems } =
+ useRecordTableWidgetViewFieldItems(viewId);
+
+ const { toggleRecordTableWidgetFieldVisibility } =
+ useToggleRecordTableWidgetFieldVisibility();
+
+ const { reorderRecordTableWidgetFields } =
+ useReorderRecordTableWidgetFields();
+
+ const { getIcon } = useIcons();
+
+ const visibleFieldItems = useMemo(
+ () =>
+ recordTableWidgetViewFieldItems.filter(
+ (item) => item.viewField.isVisible,
+ ),
+ [recordTableWidgetViewFieldItems],
+ );
+
+ const hiddenFieldItems = useMemo(
+ () =>
+ recordTableWidgetViewFieldItems.filter(
+ (item) => !item.viewField.isVisible,
+ ),
+ [recordTableWidgetViewFieldItems],
+ );
+
+ const handleDragEnd = (result: DropResult) => {
+ const { source, destination } = result;
+
+ if (!destination) {
+ return;
+ }
+
+ reorderRecordTableWidgetFields(
+ source.index,
+ destination.index,
+ visibleFieldItems,
+ );
+ };
+
+ return (
+ <StyledFieldListContainer>
+ <StyledSectionLabel>Visible</StyledSectionLabel>
+ {visibleFieldItems.length > 0 && (
+ <DraggableList
+ onDragEnd={handleDragEnd}
+ draggableItems={
+ <>
+ {visibleFieldItems.map((fieldItem, index) => (
+ <DraggableItem
+ key={fieldItem.viewField.id}
+ draggableId={fieldItem.viewField.id}
+ index={index}
+ itemComponent={
+ <MenuItemDraggable
+ LeftIcon={getIcon(fieldItem.fieldMetadataItem.icon)}
+ iconButtons={[
+ {
+ Icon: IconEyeOff,
+ onClick: () => {
+ toggleRecordTableWidgetFieldVisibility(
+ fieldItem.viewField.id,
+ false,
+ );
+ },
+ },
+ ]}
+ text={fieldItem.fieldMetadataItem.label}
+ gripMode="always"
+ />
+ }
+ />
+ ))}
+ </>
+ }
+ />
+ )}
+ {hiddenFieldItems.length > 0 && (
+ <>
+ <StyledSectionLabel>Hidden</StyledSectionLabel>
+ {hiddenFieldItems.map((fieldItem) => (
+ <MenuItemDraggable
+ key={fieldItem.viewField.id}
+ LeftIcon={getIcon(fieldItem.fieldMetadataItem.icon)}
+ iconButtons={[
+ {
+ Icon: IconEye,
+ onClick: () => {
+ toggleRecordTableWidgetFieldVisibility(
+ fieldItem.viewField.id,
+ true,
+ );
+ },
+ },
+ ]}
+ text={fieldItem.fieldMetadataItem.label}
+ accent="placeholder"
+ isDragDisabled
+ />
+ ))}
+ </>
+ )}
+ </StyledFieldListContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFilters.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFilters.tsx
new file mode 100644
index 00000000000..bab60002700
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFilters.tsx
@@ -0,0 +1,65 @@
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { AdvancedFilterSidePanelContainer } from '@/object-record/advanced-filter/side-panel/components/AdvancedFilterSidePanelContainer';
+import { RecordFilterGroupsComponentInstanceContext } from '@/object-record/record-filter-group/states/context/RecordFilterGroupsComponentInstanceContext';
+import { RecordFiltersComponentInstanceContext } from '@/object-record/record-filter/states/context/RecordFiltersComponentInstanceContext';
+import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
+import { RecordTableSettingsFiltersInitializeStateEffect } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFiltersInitializeStateEffect';
+import { InputLabel } from '@/ui/input/components/InputLabel';
+import { useViewById } from '@/views/hooks/useViewById';
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+
+const StyledFilterSettingsContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[2]};
+ padding: ${themeCssVariables.spacing[3]};
+`;
+
+type RecordTableSettingsFiltersProps = {
+ viewId: string;
+ objectMetadataId: string;
+};
+
+export const RecordTableSettingsFilters = ({
+ viewId,
+ objectMetadataId,
+}: RecordTableSettingsFiltersProps) => {
+ const { view } = useViewById(viewId);
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ const recordIndexId = getRecordIndexIdFromObjectNamePluralAndViewId(
+ objectMetadataItem.namePlural,
+ viewId,
+ );
+
+ if (!isDefined(view)) {
+ return null;
+ }
+
+ return (
+ <StyledFilterSettingsContainer>
+ <InputLabel>{t`Conditions`}</InputLabel>
+ <RecordFilterGroupsComponentInstanceContext.Provider
+ value={{ instanceId: recordIndexId }}
+ >
+ <RecordFiltersComponentInstanceContext.Provider
+ value={{ instanceId: recordIndexId }}
+ >
+ <AdvancedFilterSidePanelContainer
+ objectMetadataItem={objectMetadataItem}
+ isWorkflowFindRecords={false}
+ />
+ <RecordTableSettingsFiltersInitializeStateEffect
+ view={view}
+ objectMetadataItem={objectMetadataItem}
+ />
+ </RecordFiltersComponentInstanceContext.Provider>
+ </RecordFilterGroupsComponentInstanceContext.Provider>
+ </StyledFilterSettingsContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFiltersInitializeStateEffect.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFiltersInitializeStateEffect.tsx
new file mode 100644
index 00000000000..a0aeb8b2a97
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFiltersInitializeStateEffect.tsx
@@ -0,0 +1,94 @@
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { useSetAdvancedFilterDropdownStates } from '@/object-record/advanced-filter/hooks/useSetAdvancedFilterDropdownAllRowsStates';
+import { currentRecordFilterGroupsComponentState } from '@/object-record/record-filter-group/states/currentRecordFilterGroupsComponentState';
+import { currentRecordFiltersComponentState } from '@/object-record/record-filter/states/currentRecordFiltersComponentState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
+import { type View } from '@/views/types/View';
+import { getFilterableFields } from '@/views/utils/getFilterableFields';
+import { mapViewFilterGroupsToRecordFilterGroups } from '@/views/utils/mapViewFilterGroupsToRecordFilterGroups';
+import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters';
+import { useEffect, useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+
+type RecordTableSettingsFiltersInitializeStateEffectProps = {
+ view: View;
+ objectMetadataItem: EnrichedObjectMetadataItem;
+};
+
+export const RecordTableSettingsFiltersInitializeStateEffect = ({
+ view,
+ objectMetadataItem,
+}: RecordTableSettingsFiltersInitializeStateEffectProps) => {
+ const setCurrentRecordFilters = useSetAtomComponentState(
+ currentRecordFiltersComponentState,
+ );
+
+ const setCurrentRecordFilterGroups = useSetAtomComponentState(
+ currentRecordFilterGroupsComponentState,
+ );
+
+ const { setAdvancedFilterDropdownStates } =
+ useSetAdvancedFilterDropdownStates();
+
+ const currentRecordFilters = useAtomComponentStateValue(
+ currentRecordFiltersComponentState,
+ );
+
+ const currentRecordFilterGroups = useAtomComponentStateValue(
+ currentRecordFilterGroupsComponentState,
+ );
+
+ const [hasInitializedFilters, setHasInitializedFilters] = useState(false);
+
+ const stateAlreadyHasFilters =
+ currentRecordFilters.length > 0 || currentRecordFilterGroups.length > 0;
+
+ useEffect(() => {
+ if (hasInitializedFilters) {
+ return;
+ }
+
+ if (stateAlreadyHasFilters) {
+ setHasInitializedFilters(true);
+ return;
+ }
+
+ const filterableFields = getFilterableFields(objectMetadataItem);
+ const recordFilters = mapViewFiltersToFilters(
+ view.viewFilters,
+ filterableFields,
+ );
+
+ setCurrentRecordFilters(recordFilters);
+
+ if (isDefined(view.viewFilterGroups) && view.viewFilterGroups.length > 0) {
+ setCurrentRecordFilterGroups(
+ mapViewFilterGroupsToRecordFilterGroups(view.viewFilterGroups),
+ );
+ }
+
+ setHasInitializedFilters(true);
+ }, [
+ view,
+ objectMetadataItem,
+ hasInitializedFilters,
+ stateAlreadyHasFilters,
+ setCurrentRecordFilters,
+ setCurrentRecordFilterGroups,
+ ]);
+
+ useEffect(() => {
+ if (!hasInitializedFilters) {
+ return;
+ }
+
+ setAdvancedFilterDropdownStates();
+ }, [
+ currentRecordFilters,
+ hasInitializedFilters,
+ setAdvancedFilterDropdownStates,
+ ]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx
new file mode 100644
index 00000000000..e71052f6edd
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts.tsx
@@ -0,0 +1,82 @@
+import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';
+import { filterSortableFieldMetadataItems } from '@/object-metadata/utils/filterSortableFieldMetadataItems';
+import { RecordSortsComponentInstanceContext } from '@/object-record/record-sort/states/context/RecordSortsComponentInstanceContext';
+import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
+import { RecordTableSettingsSortsContent } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsContent';
+import { RecordTableSettingsSortsInitializeStateEffect } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsInitializeStateEffect';
+import { InputLabel } from '@/ui/input/components/InputLabel';
+import { useViewById } from '@/views/hooks/useViewById';
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { useIcons } from 'twenty-ui/display';
+import { type SelectOption } from 'twenty-ui/input';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
+
+const StyledSortSettingsContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[2]};
+ padding: ${themeCssVariables.spacing[3]};
+`;
+
+type RecordTableSettingsSortsProps = {
+ viewId: string;
+ objectMetadataId: string;
+};
+
+export const RecordTableSettingsSorts = ({
+ viewId,
+ objectMetadataId,
+}: RecordTableSettingsSortsProps) => {
+ const { view } = useViewById(viewId);
+ const { objectMetadataItem } = useObjectMetadataItemById({
+ objectId: objectMetadataId,
+ });
+
+ const { getIcon } = useIcons();
+
+ const recordIndexId = getRecordIndexIdFromObjectNamePluralAndViewId(
+ objectMetadataItem.namePlural,
+ viewId,
+ );
+
+ if (!isDefined(view)) {
+ return null;
+ }
+
+ const sortableFieldOptions = objectMetadataItem.fields
+ .filter(filterSortableFieldMetadataItems)
+ .map((field) => ({
+ Icon: getIcon(field.icon),
+ label: field.label,
+ value: field.id,
+ }));
+
+ const directionOptions: Array<SelectOption<ViewSortDirection>> = [
+ {
+ label: t`Ascending`,
+ value: ViewSortDirection.ASC,
+ },
+ {
+ label: t`Descending`,
+ value: ViewSortDirection.DESC,
+ },
+ ];
+
+ return (
+ <StyledSortSettingsContainer>
+ <InputLabel>{t`Sorts`}</InputLabel>
+ <RecordSortsComponentInstanceContext.Provider
+ value={{ instanceId: recordIndexId }}
+ >
+ <RecordTableSettingsSortsContent
+ sortableFieldOptions={sortableFieldOptions}
+ directionOptions={directionOptions}
+ />
+ <RecordTableSettingsSortsInitializeStateEffect view={view} />
+ </RecordSortsComponentInstanceContext.Provider>
+ </StyledSortSettingsContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsContent.tsx
new file mode 100644
index 00000000000..f5d49db046e
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsContent.tsx
@@ -0,0 +1,115 @@
+import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
+import { currentRecordSortsComponentState } from '@/object-record/record-sort/states/currentRecordSortsComponentState';
+import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomComponentState';
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { IconArrowsSort, IconTrash } from 'twenty-ui/display';
+import { Button, type SelectOption } from 'twenty-ui/input';
+import { Select } from '@/ui/input/components/Select';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+import { v4 as uuidv4 } from 'uuid';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
+
+const StyledSortItemContainer = styled.div`
+ align-items: center;
+ display: flex;
+ gap: ${themeCssVariables.spacing[2]};
+`;
+
+const StyledAddButtonContainer = styled.div`
+ margin-top: ${themeCssVariables.spacing[1]};
+`;
+
+type RecordTableSettingsSortsContentProps = {
+ sortableFieldOptions: Array<SelectOption<string>>;
+ directionOptions: Array<SelectOption<ViewSortDirection>>;
+};
+
+export const RecordTableSettingsSortsContent = ({
+ sortableFieldOptions,
+ directionOptions,
+}: RecordTableSettingsSortsContentProps) => {
+ const [currentRecordSorts, setCurrentRecordSorts] = useAtomComponentState(
+ currentRecordSortsComponentState,
+ );
+
+ const handleAddSort = () => {
+ const firstAvailableField = sortableFieldOptions[0]?.value;
+
+ if (!isDefined(firstAvailableField)) {
+ return;
+ }
+
+ const newSort: RecordSort = {
+ id: uuidv4(),
+ fieldMetadataId: firstAvailableField,
+ direction: ViewSortDirection.ASC,
+ };
+
+ setCurrentRecordSorts([...currentRecordSorts, newSort]);
+ };
+
+ const handleRemoveSort = (sortId: string) => {
+ setCurrentRecordSorts(
+ currentRecordSorts.filter((sort) => sort.id !== sortId),
+ );
+ };
+
+ const handleFieldChange = (sortId: string, fieldMetadataId: string) => {
+ setCurrentRecordSorts(
+ currentRecordSorts.map((sort) =>
+ sort.id === sortId ? { ...sort, fieldMetadataId } : sort,
+ ),
+ );
+ };
+
+ const handleDirectionChange = (
+ sortId: string,
+ direction: ViewSortDirection,
+ ) => {
+ setCurrentRecordSorts(
+ currentRecordSorts.map((sort) =>
+ sort.id === sortId ? { ...sort, direction } : sort,
+ ),
+ );
+ };
+
+ return (
+ <>
+ {currentRecordSorts.map((sort) => (
+ <StyledSortItemContainer key={sort.id}>
+ <Select
+ dropdownId={`record-table-widget-sort-field-${sort.id}`}
+ fullWidth
+ value={sort.fieldMetadataId}
+ options={sortableFieldOptions}
+ onChange={(value) => handleFieldChange(sort.id, value)}
+ withSearchInput
+ />
+ <Select
+ dropdownId={`record-table-widget-sort-direction-${sort.id}`}
+ fullWidth
+ value={sort.direction}
+ options={directionOptions}
+ onChange={(value) =>
+ handleDirectionChange(sort.id, value as ViewSortDirection)
+ }
+ />
+ <Button onClick={() => handleRemoveSort(sort.id)} Icon={IconTrash} />
+ </StyledSortItemContainer>
+ ))}
+ <StyledAddButtonContainer>
+ <Button
+ Icon={IconArrowsSort}
+ size="small"
+ variant="secondary"
+ accent="default"
+ onClick={handleAddSort}
+ ariaLabel={t`Add sort`}
+ title={t`Add sort`}
+ />
+ </StyledAddButtonContainer>
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsInitializeStateEffect.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsInitializeStateEffect.tsx
new file mode 100644
index 00000000000..b4da971a8cf
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSortsInitializeStateEffect.tsx
@@ -0,0 +1,51 @@
+import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
+import { currentRecordSortsComponentState } from '@/object-record/record-sort/states/currentRecordSortsComponentState';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
+import { type View } from '@/views/types/View';
+import { useEffect, useState } from 'react';
+import { type ViewSortDirection } from '~/generated-metadata/graphql';
+
+type RecordTableSettingsSortsInitializeStateEffectProps = {
+ view: View;
+};
+
+export const RecordTableSettingsSortsInitializeStateEffect = ({
+ view,
+}: RecordTableSettingsSortsInitializeStateEffectProps) => {
+ const setCurrentRecordSorts = useSetAtomComponentState(
+ currentRecordSortsComponentState,
+ );
+
+ const currentRecordSorts = useAtomComponentStateValue(
+ currentRecordSortsComponentState,
+ );
+
+ const [hasInitializedSorts, setHasInitializedSorts] = useState(false);
+
+ const stateAlreadyHasSorts = currentRecordSorts.length > 0;
+
+ useEffect(() => {
+ if (hasInitializedSorts) {
+ return;
+ }
+
+ if (stateAlreadyHasSorts) {
+ setHasInitializedSorts(true);
+ return;
+ }
+
+ const recordSorts: RecordSort[] = (view.viewSorts ?? []).map(
+ (viewSort) => ({
+ id: viewSort.id,
+ fieldMetadataId: viewSort.fieldMetadataId,
+ direction: viewSort.direction as ViewSortDirection,
+ }),
+ );
+
+ setCurrentRecordSorts(recordSorts);
+ setHasInitializedSorts(true);
+ }, [view, hasInitializedSorts, stateAlreadyHasSorts, setCurrentRecordSorts]);
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFieldsSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFieldsSubPage.tsx
new file mode 100644
index 00000000000..1ba197225d6
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFieldsSubPage.tsx
@@ -0,0 +1,32 @@
+import { RecordTableSettingsFieldVisibility } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFieldVisibility';
+import { usePageLayoutIdFromContextStore } from '@/side-panel/pages/page-layout/hooks/usePageLayoutIdFromContextStore';
+import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
+import { isDefined } from 'twenty-shared/utils';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+export const SidePanelRecordTableFieldsSubPage = () => {
+ const { pageLayoutId } = usePageLayoutIdFromContextStore();
+ const { widgetInEditMode } = useWidgetInEditMode(pageLayoutId);
+
+ if (!isDefined(widgetInEditMode)) {
+ return null;
+ }
+
+ const { configuration } = widgetInEditMode;
+
+ const isRecordTableConfiguration =
+ configuration.configurationType === WidgetConfigurationType.RECORD_TABLE;
+
+ const viewId =
+ isRecordTableConfiguration &&
+ 'viewId' in configuration &&
+ isDefined(configuration.viewId)
+ ? (configuration.viewId as string)
+ : undefined;
+
+ if (!isDefined(viewId)) {
+ return null;
+ }
+
+ return <RecordTableSettingsFieldVisibility viewId={viewId} />;
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFilterSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFilterSubPage.tsx
new file mode 100644
index 00000000000..566af6f0ff1
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableFilterSubPage.tsx
@@ -0,0 +1,37 @@
+import { RecordTableSettingsFilters } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsFilters';
+import { usePageLayoutIdFromContextStore } from '@/side-panel/pages/page-layout/hooks/usePageLayoutIdFromContextStore';
+import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
+import { isDefined } from 'twenty-shared/utils';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+export const SidePanelRecordTableFilterSubPage = () => {
+ const { pageLayoutId } = usePageLayoutIdFromContextStore();
+ const { widgetInEditMode } = useWidgetInEditMode(pageLayoutId);
+
+ if (!isDefined(widgetInEditMode)) {
+ return null;
+ }
+
+ const { configuration } = widgetInEditMode;
+
+ const isRecordTableConfiguration =
+ configuration.configurationType === WidgetConfigurationType.RECORD_TABLE;
+
+ const viewId =
+ isRecordTableConfiguration &&
+ 'viewId' in configuration &&
+ isDefined(configuration.viewId)
+ ? (configuration.viewId as string)
+ : undefined;
+
+ if (!isDefined(viewId) || !isDefined(widgetInEditMode.objectMetadataId)) {
+ return null;
+ }
+
+ return (
+ <RecordTableSettingsFilters
+ viewId={viewId}
+ objectMetadataId={widgetInEditMode.objectMetadataId}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableSortSubPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableSortSubPage.tsx
new file mode 100644
index 00000000000..3c74f677bcc
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-table-settings/SidePanelRecordTableSortSubPage.tsx
@@ -0,0 +1,38 @@
+import { RecordTableSettingsSorts } from '@/side-panel/pages/page-layout/components/record-table-settings/RecordTableSettingsSorts';
+import { usePageLayoutIdFromContextStore } from '@/side-panel/pages/page-layout/hooks/usePageLayoutIdFromContextStore';
+
+import { useWidgetInEditMode } from '@/side-panel/pages/page-layout/hooks/useWidgetInEditMode';
+import { isDefined } from 'twenty-shared/utils';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
+
+export const SidePanelRecordTableSortSubPage = () => {
+ const { pageLayoutId } = usePageLayoutIdFromContextStore();
+ const { widgetInEditMode } = useWidgetInEditMode(pageLayoutId);
+
+ if (!isDefined(widgetInEditMode)) {
+ return null;
+ }
+
+ const { configuration } = widgetInEditMode;
+
+ const isRecordTableConfiguration =
+ configuration.configurationType === WidgetConfigurationType.RECORD_TABLE;
+
+ const viewId =
+ isRecordTableConfiguration &&
+ 'viewId' in configuration &&
+ isDefined(configuration.viewId)
+ ? (configuration.viewId as string)
+ : undefined;
+
+ if (!isDefined(viewId) || !isDefined(widgetInEditMode.objectMetadataId)) {
+ return null;
+ }
+
+ return (
+ <RecordTableSettingsSorts
+ viewId={viewId}
+ objectMetadataId={widgetInEditMode.objectMetadataId}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/types/PageLayoutSidePanelPage.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/types/PageLayoutSidePanelPage.ts
index c1949d277e7..033d364f9c8 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/types/PageLayoutSidePanelPage.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/types/PageLayoutSidePanelPage.ts
@@ -5,4 +5,5 @@ export type PageLayoutSidePanelPage =
| SidePanelPages.PageLayoutGraphTypeSelect
| SidePanelPages.PageLayoutIframeSettings
| SidePanelPages.PageLayoutTabSettings
- | SidePanelPages.PageLayoutFieldsSettings;
+ | SidePanelPages.PageLayoutFieldsSettings
+ | SidePanelPages.PageLayoutRecordTableSettings;
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
index fa97bf511c2..be071bb5f20 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
@@ -6,6 +6,7 @@ import {
IconChartPie,
IconFrame,
IconList,
+ IconTable,
} from 'twenty-ui/display';
export const getPageLayoutIcon = (page: PageLayoutSidePanelPage) => {
@@ -20,6 +21,8 @@ export const getPageLayoutIcon = (page: PageLayoutSidePanelPage) => {
return IconAppWindow;
case SidePanelPages.PageLayoutFieldsSettings:
return IconList;
+ case SidePanelPages.PageLayoutRecordTableSettings:
+ return IconTable;
default:
assertUnreachable(page);
}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutPageTitle.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutPageTitle.ts
index 6c94a047f5e..4da1625799a 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutPageTitle.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutPageTitle.ts
@@ -15,6 +15,8 @@ export const getPageLayoutPageTitle = (page: PageLayoutSidePanelPage) => {
return t`Tab Settings`;
case SidePanelPages.PageLayoutFieldsSettings:
return t`Fields Settings`;
+ case SidePanelPages.PageLayoutRecordTableSettings:
+ return t`Record Table Settings`;
default:
assertUnreachable(page);
}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/isWidgetConfigurationOfType.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/isWidgetConfigurationOfType.ts
index 19ed82902dd..86476295085 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/isWidgetConfigurationOfType.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/isWidgetConfigurationOfType.ts
@@ -13,6 +13,7 @@ import {
type LineChartConfiguration,
type NotesConfiguration,
type PieChartConfiguration,
+ type RecordTableConfiguration,
type StandaloneRichTextConfiguration,
type TasksConfiguration,
type TimelineConfiguration,
@@ -79,6 +80,12 @@ type WidgetConfigurationTypenameMap = {
PieChartConfiguration: Omit<PieChartConfiguration, 'configurationType'> & {
configurationType: WidgetConfigurationType.PIE_CHART;
};
+ RecordTableConfiguration: Omit<
+ RecordTableConfiguration,
+ 'configurationType'
+ > & {
+ configurationType: WidgetConfigurationType.RECORD_TABLE;
+ };
StandaloneRichTextConfiguration: Omit<
StandaloneRichTextConfiguration,
'configurationType'
diff --git a/packages/twenty-front/src/modules/side-panel/types/SidePanelSubPages.ts b/packages/twenty-front/src/modules/side-panel/types/SidePanelSubPages.ts
index 3ca22c657b5..9c4fcd2f612 100644
--- a/packages/twenty-front/src/modules/side-panel/types/SidePanelSubPages.ts
+++ b/packages/twenty-front/src/modules/side-panel/types/SidePanelSubPages.ts
@@ -1,6 +1,8 @@
export enum SidePanelSubPages {
PageLayoutGraphFilter = 'page-layout-graph-filter',
PageLayoutFieldsLayout = 'page-layout-fields-layout',
+ PageLayoutRecordTableFilter = 'page-layout-record-table-filter',
+ PageLayoutRecordTableSort = 'page-layout-record-table-sort',
NewSidebarItemViewObjectPicker = 'new-sidebar-item-view-object-picker',
NewSidebarItemViewPicker = 'new-sidebar-item-view-picker',
NewSidebarItemViewSystemPicker = 'new-sidebar-item-view-system-picker',
diff --git a/packages/twenty-front/src/modules/side-panel/utils/getSidePanelSubPageTitle.ts b/packages/twenty-front/src/modules/side-panel/utils/getSidePanelSubPageTitle.ts
index 2133f790f7f..8fb2ed34cf6 100644
--- a/packages/twenty-front/src/modules/side-panel/utils/getSidePanelSubPageTitle.ts
+++ b/packages/twenty-front/src/modules/side-panel/utils/getSidePanelSubPageTitle.ts
@@ -10,6 +10,10 @@ export const getSidePanelSubPageTitle = (
return t`Filters`;
case SidePanelSubPages.PageLayoutFieldsLayout:
return t`Layout`;
+ case SidePanelSubPages.PageLayoutRecordTableFilter:
+ return t`Filters`;
+ case SidePanelSubPages.PageLayoutRecordTableSort:
+ return t`Sorts`;
case SidePanelSubPages.NewSidebarItemViewObjectPicker:
return t`Pick an object`;
case SidePanelSubPages.NewSidebarItemViewPicker:
diff --git a/packages/twenty-front/src/modules/sign-in-background-mock/components/SignInBackgroundMockContainer.tsx b/packages/twenty-front/src/modules/sign-in-background-mock/components/SignInBackgroundMockContainer.tsx
index d84608fd463..54119848a3b 100644
--- a/packages/twenty-front/src/modules/sign-in-background-mock/components/SignInBackgroundMockContainer.tsx
+++ b/packages/twenty-front/src/modules/sign-in-background-mock/components/SignInBackgroundMockContainer.tsx
@@ -100,7 +100,6 @@ export const SignInBackgroundMockContainer = () => {
objectNameSingular={objectNameSingular}
recordTableId={recordIndexId}
viewBarId={viewBarId}
- updateRecordMutation={() => {}}
/>
</>
)}
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql b/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
index a7bb4159b1b..49608a7fa1a 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
+++ b/packages/twenty-sdk/src/clients/generated/metadata/schema.graphql
@@ -922,6 +922,7 @@ enum WidgetType {
WORKFLOW_VERSION
WORKFLOW_RUN
FRONT_COMPONENT
+ RECORD_TABLE
}
union PageLayoutWidgetPosition = PageLayoutWidgetGridPosition | PageLayoutWidgetVerticalListPosition | PageLayoutWidgetCanvasPosition
@@ -949,7 +950,7 @@ type PageLayoutWidgetCanvasPosition {
layoutMode: PageLayoutTabLayoutMode!
}
-union WidgetConfiguration = AggregateChartConfiguration | StandaloneRichTextConfiguration | PieChartConfiguration | LineChartConfiguration | IframeConfiguration | GaugeChartConfiguration | BarChartConfiguration | CalendarConfiguration | FrontComponentConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | NotesConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration
+union WidgetConfiguration = AggregateChartConfiguration | StandaloneRichTextConfiguration | PieChartConfiguration | LineChartConfiguration | IframeConfiguration | GaugeChartConfiguration | BarChartConfiguration | CalendarConfiguration | FrontComponentConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | NotesConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | RecordTableConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration
type AggregateChartConfiguration {
configurationType: WidgetConfigurationType!
@@ -989,6 +990,7 @@ enum WidgetConfigurationType {
WORKFLOW_VERSION
WORKFLOW_RUN
FRONT_COMPONENT
+ RECORD_TABLE
}
type StandaloneRichTextConfiguration {
@@ -1198,6 +1200,11 @@ type ViewConfiguration {
configurationType: WidgetConfigurationType!
}
+type RecordTableConfiguration {
+ configurationType: WidgetConfigurationType!
+ viewId: String
+}
+
type WorkflowConfiguration {
configurationType: WidgetConfigurationType!
}
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts b/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
index 6e1b2ec6af6..3e1c5f2a363 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
+++ b/packages/twenty-sdk/src/clients/generated/metadata/schema.ts
@@ -679,7 +679,7 @@ export interface PageLayoutWidget {
__typename: 'PageLayoutWidget'
}
-export type WidgetType = 'VIEW' | 'IFRAME' | 'FIELD' | 'FIELDS' | 'GRAPH' | 'STANDALONE_RICH_TEXT' | 'TIMELINE' | 'TASKS' | 'NOTES' | 'FILES' | 'EMAILS' | 'CALENDAR' | 'FIELD_RICH_TEXT' | 'WORKFLOW' | 'WORKFLOW_VERSION' | 'WORKFLOW_RUN' | 'FRONT_COMPONENT'
+export type WidgetType = 'VIEW' | 'IFRAME' | 'FIELD' | 'FIELDS' | 'GRAPH' | 'STANDALONE_RICH_TEXT' | 'TIMELINE' | 'TASKS' | 'NOTES' | 'FILES' | 'EMAILS' | 'CALENDAR' | 'FIELD_RICH_TEXT' | 'WORKFLOW' | 'WORKFLOW_VERSION' | 'WORKFLOW_RUN' | 'FRONT_COMPONENT' | 'RECORD_TABLE'
export type PageLayoutWidgetPosition = (PageLayoutWidgetGridPosition | PageLayoutWidgetVerticalListPosition | PageLayoutWidgetCanvasPosition) & { __isUnion?: true }
@@ -705,7 +705,7 @@ export interface PageLayoutWidgetCanvasPosition {
__typename: 'PageLayoutWidgetCanvasPosition'
}
-export type WidgetConfiguration = (AggregateChartConfiguration | StandaloneRichTextConfiguration | PieChartConfiguration | LineChartConfiguration | IframeConfiguration | GaugeChartConfiguration | BarChartConfiguration | CalendarConfiguration | FrontComponentConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | NotesConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration) & { __isUnion?: true }
+export type WidgetConfiguration = (AggregateChartConfiguration | StandaloneRichTextConfiguration | PieChartConfiguration | LineChartConfiguration | IframeConfiguration | GaugeChartConfiguration | BarChartConfiguration | CalendarConfiguration | FrontComponentConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | NotesConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | RecordTableConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration) & { __isUnion?: true }
export interface AggregateChartConfiguration {
configurationType: WidgetConfigurationType
@@ -724,7 +724,7 @@ export interface AggregateChartConfiguration {
__typename: 'AggregateChartConfiguration'
}
-export type WidgetConfigurationType = 'AGGREGATE_CHART' | 'GAUGE_CHART' | 'PIE_CHART' | 'BAR_CHART' | 'LINE_CHART' | 'IFRAME' | 'STANDALONE_RICH_TEXT' | 'VIEW' | 'FIELD' | 'FIELDS' | 'TIMELINE' | 'TASKS' | 'NOTES' | 'FILES' | 'EMAILS' | 'CALENDAR' | 'FIELD_RICH_TEXT' | 'WORKFLOW' | 'WORKFLOW_VERSION' | 'WORKFLOW_RUN' | 'FRONT_COMPONENT'
+export type WidgetConfigurationType = 'AGGREGATE_CHART' | 'GAUGE_CHART' | 'PIE_CHART' | 'BAR_CHART' | 'LINE_CHART' | 'IFRAME' | 'STANDALONE_RICH_TEXT' | 'VIEW' | 'FIELD' | 'FIELDS' | 'TIMELINE' | 'TASKS' | 'NOTES' | 'FILES' | 'EMAILS' | 'CALENDAR' | 'FIELD_RICH_TEXT' | 'WORKFLOW' | 'WORKFLOW_VERSION' | 'WORKFLOW_RUN' | 'FRONT_COMPONENT' | 'RECORD_TABLE'
export interface StandaloneRichTextConfiguration {
configurationType: WidgetConfigurationType
@@ -921,6 +921,12 @@ export interface ViewConfiguration {
__typename: 'ViewConfiguration'
}
+export interface RecordTableConfiguration {
+ configurationType: WidgetConfigurationType
+ viewId?: Scalars['String']
+ __typename: 'RecordTableConfiguration'
+}
+
export interface WorkflowConfiguration {
configurationType: WidgetConfigurationType
__typename: 'WorkflowConfiguration'
@@ -3808,6 +3814,7 @@ export interface WidgetConfigurationGenqlSelection{
on_TasksConfiguration?:TasksConfigurationGenqlSelection,
on_TimelineConfiguration?:TimelineConfigurationGenqlSelection,
on_ViewConfiguration?:ViewConfigurationGenqlSelection,
+ on_RecordTableConfiguration?:RecordTableConfigurationGenqlSelection,
on_WorkflowConfiguration?:WorkflowConfigurationGenqlSelection,
on_WorkflowRunConfiguration?:WorkflowRunConfigurationGenqlSelection,
on_WorkflowVersionConfiguration?:WorkflowVersionConfigurationGenqlSelection,
@@ -4020,6 +4027,13 @@ export interface ViewConfigurationGenqlSelection{
__scalar?: boolean | number
}
+export interface RecordTableConfigurationGenqlSelection{
+ configurationType?: boolean | number
+ viewId?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface WorkflowConfigurationGenqlSelection{
configurationType?: boolean | number
__typename?: boolean | number
@@ -6969,7 +6983,7 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
- const WidgetConfiguration_possibleTypes: string[] = ['AggregateChartConfiguration','StandaloneRichTextConfiguration','PieChartConfiguration','LineChartConfiguration','IframeConfiguration','GaugeChartConfiguration','BarChartConfiguration','CalendarConfiguration','FrontComponentConfiguration','EmailsConfiguration','FieldConfiguration','FieldRichTextConfiguration','FieldsConfiguration','FilesConfiguration','NotesConfiguration','TasksConfiguration','TimelineConfiguration','ViewConfiguration','WorkflowConfiguration','WorkflowRunConfiguration','WorkflowVersionConfiguration']
+ const WidgetConfiguration_possibleTypes: string[] = ['AggregateChartConfiguration','StandaloneRichTextConfiguration','PieChartConfiguration','LineChartConfiguration','IframeConfiguration','GaugeChartConfiguration','BarChartConfiguration','CalendarConfiguration','FrontComponentConfiguration','EmailsConfiguration','FieldConfiguration','FieldRichTextConfiguration','FieldsConfiguration','FilesConfiguration','NotesConfiguration','TasksConfiguration','TimelineConfiguration','ViewConfiguration','RecordTableConfiguration','WorkflowConfiguration','WorkflowRunConfiguration','WorkflowVersionConfiguration']
export const isWidgetConfiguration = (obj?: { __typename?: any } | null): obj is WidgetConfiguration => {
if (!obj?.__typename) throw new Error('__typename is missing in "isWidgetConfiguration"')
return WidgetConfiguration_possibleTypes.includes(obj.__typename)
@@ -7121,6 +7135,14 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const RecordTableConfiguration_possibleTypes: string[] = ['RecordTableConfiguration']
+ export const isRecordTableConfiguration = (obj?: { __typename?: any } | null): obj is RecordTableConfiguration => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isRecordTableConfiguration"')
+ return RecordTableConfiguration_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const WorkflowConfiguration_possibleTypes: string[] = ['WorkflowConfiguration']
export const isWorkflowConfiguration = (obj?: { __typename?: any } | null): obj is WorkflowConfiguration => {
if (!obj?.__typename) throw new Error('__typename is missing in "isWorkflowConfiguration"')
@@ -8924,7 +8946,8 @@ export const enumWidgetType = {
WORKFLOW: 'WORKFLOW' as const,
WORKFLOW_VERSION: 'WORKFLOW_VERSION' as const,
WORKFLOW_RUN: 'WORKFLOW_RUN' as const,
- FRONT_COMPONENT: 'FRONT_COMPONENT' as const
+ FRONT_COMPONENT: 'FRONT_COMPONENT' as const,
+ RECORD_TABLE: 'RECORD_TABLE' as const
}
export const enumPageLayoutTabLayoutMode = {
@@ -8954,7 +8977,8 @@ export const enumWidgetConfigurationType = {
WORKFLOW: 'WORKFLOW' as const,
WORKFLOW_VERSION: 'WORKFLOW_VERSION' as const,
WORKFLOW_RUN: 'WORKFLOW_RUN' as const,
- FRONT_COMPONENT: 'FRONT_COMPONENT' as const
+ FRONT_COMPONENT: 'FRONT_COMPONENT' as const,
+ RECORD_TABLE: 'RECORD_TABLE' as const
}
export const enumObjectRecordGroupByDateGranularity = {
diff --git a/packages/twenty-sdk/src/clients/generated/metadata/types.ts b/packages/twenty-sdk/src/clients/generated/metadata/types.ts
index 5166f0c150b..0f44e721b68 100644
--- a/packages/twenty-sdk/src/clients/generated/metadata/types.ts
+++ b/packages/twenty-sdk/src/clients/generated/metadata/types.ts
@@ -38,58 +38,58 @@ export default {
94,
95,
100,
- 113,
- 118,
+ 114,
119,
120,
- 122,
- 130,
- 146,
+ 121,
+ 123,
+ 131,
147,
- 152,
- 156,
- 180,
- 209,
- 212,
- 214,
- 218,
- 226,
+ 148,
+ 153,
+ 157,
+ 181,
+ 210,
+ 213,
+ 215,
+ 219,
227,
- 237,
+ 228,
238,
239,
240,
- 243,
+ 241,
244,
245,
246,
247,
248,
249,
- 251,
- 253,
- 261,
- 266,
- 269,
- 275,
+ 250,
+ 252,
+ 254,
+ 262,
+ 267,
+ 270,
276,
- 278,
- 283,
- 288,
+ 277,
+ 279,
+ 284,
289,
- 303,
- 323,
+ 290,
+ 304,
324,
- 347,
- 354,
+ 325,
+ 348,
355,
356,
- 358,
- 371,
+ 357,
+ 359,
372,
- 481,
- 486,
- 487
+ 373,
+ 482,
+ 487,
+ 488
],
"types": {
"BillingProductDTO": {
@@ -103,13 +103,13 @@ export default {
1
],
"metadata": [
- 117
+ 118
],
"on_BillingLicensedProduct": [
- 126
+ 127
],
"on_BillingMeteredProduct": [
- 127
+ 128
],
"__typename": [
1
@@ -793,10 +793,10 @@ export default {
3
],
"relation": [
- 179
+ 180
],
"morphRelations": [
- 179
+ 180
],
"object": [
46
@@ -855,7 +855,7 @@ export default {
36
],
"objectMetadata": [
- 167,
+ 168,
{
"paging": [
39,
@@ -868,7 +868,7 @@ export default {
}
],
"indexFieldMetadatas": [
- 165,
+ 166,
{
"paging": [
39,
@@ -1113,7 +1113,7 @@ export default {
37
],
"fields": [
- 172,
+ 173,
{
"paging": [
39,
@@ -1126,7 +1126,7 @@ export default {
}
],
"indexMetadatas": [
- 170,
+ 171,
{
"paging": [
39,
@@ -1698,16 +1698,16 @@ export default {
49
],
"featureFlags": [
- 155
+ 156
],
"billingSubscriptions": [
- 129
+ 130
],
"currentBillingSubscription": [
- 129
+ 130
],
"billingEntitlements": [
- 151
+ 152
],
"hasValidEnterpriseKey": [
6
@@ -1719,7 +1719,7 @@ export default {
6
],
"workspaceUrls": [
- 144
+ 145
],
"workspaceCustomApplicationId": [
1
@@ -1811,7 +1811,7 @@ export default {
20
],
"deletedWorkspaceMembers": [
- 150
+ 151
],
"hasPassword": [
6
@@ -1823,7 +1823,7 @@ export default {
17
],
"availableWorkspaces": [
- 149
+ 150
],
"__typename": [
1
@@ -2024,15 +2024,18 @@ export default {
"on_ViewConfiguration": [
107
],
- "on_WorkflowConfiguration": [
+ "on_RecordTableConfiguration": [
108
],
- "on_WorkflowRunConfiguration": [
+ "on_WorkflowConfiguration": [
109
],
- "on_WorkflowVersionConfiguration": [
+ "on_WorkflowRunConfiguration": [
110
],
+ "on_WorkflowVersionConfiguration": [
+ 111
+ ],
"__typename": [
1
]
@@ -2482,6 +2485,17 @@ export default {
1
]
},
+ "RecordTableConfiguration": {
+ "configurationType": [
+ 84
+ ],
+ "viewId": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"WorkflowConfiguration": {
"configurationType": [
84
@@ -2555,13 +2569,13 @@ export default {
1
],
"type": [
- 113
+ 114
],
"objectMetadataId": [
3
],
"tabs": [
- 111
+ 112
],
"defaultTabToFocusOnMobileAndSidePanelId": [
3
@@ -2607,7 +2621,7 @@ export default {
11
],
"items": [
- 115
+ 116
],
"__typename": [
1
@@ -2615,13 +2629,13 @@ export default {
},
"BillingProductMetadata": {
"planKey": [
- 118
+ 119
],
"priceUsageBased": [
- 119
+ 120
],
"productKey": [
- 120
+ 121
],
"__typename": [
1
@@ -2632,7 +2646,7 @@ export default {
"BillingProductKey": {},
"BillingPriceLicensed": {
"recurringInterval": [
- 122
+ 123
],
"unitAmount": [
11
@@ -2641,7 +2655,7 @@ export default {
1
],
"priceUsageType": [
- 119
+ 120
],
"__typename": [
1
@@ -2664,16 +2678,16 @@ export default {
},
"BillingPriceMetered": {
"tiers": [
- 123
+ 124
],
"recurringInterval": [
- 122
+ 123
],
"stripePriceId": [
1
],
"priceUsageType": [
- 119
+ 120
],
"__typename": [
1
@@ -2690,7 +2704,7 @@ export default {
1
],
"metadata": [
- 117
+ 118
],
"__typename": [
1
@@ -2707,10 +2721,10 @@ export default {
1
],
"metadata": [
- 117
+ 118
],
"prices": [
- 121
+ 122
],
"__typename": [
1
@@ -2727,10 +2741,10 @@ export default {
1
],
"metadata": [
- 117
+ 118
],
"prices": [
- 124
+ 125
],
"__typename": [
1
@@ -2761,13 +2775,13 @@ export default {
3
],
"status": [
- 130
+ 131
],
"interval": [
- 122
+ 123
],
"billingSubscriptionItems": [
- 128
+ 129
],
"currentPeriodEnd": [
4
@@ -2776,7 +2790,7 @@ export default {
15
],
"phases": [
- 116
+ 117
],
"__typename": [
1
@@ -2785,7 +2799,7 @@ export default {
"SubscriptionStatus": {},
"BillingEndTrialPeriod": {
"status": [
- 130
+ 131
],
"hasPaymentMethod": [
6
@@ -2799,7 +2813,7 @@ export default {
},
"BillingMeteredProductUsage": {
"productKey": [
- 120
+ 121
],
"periodStart": [
4
@@ -2828,13 +2842,13 @@ export default {
},
"BillingPlan": {
"planKey": [
- 118
+ 119
],
"licensedProducts": [
- 126
+ 127
],
"meteredProducts": [
- 127
+ 128
],
"__typename": [
1
@@ -2850,10 +2864,10 @@ export default {
},
"BillingUpdate": {
"currentBillingSubscription": [
- 129
+ 130
],
"billingSubscriptions": [
- 129
+ 130
],
"__typename": [
1
@@ -2969,7 +2983,7 @@ export default {
1
],
"result": [
- 141
+ 142
],
"__typename": [
1
@@ -2996,7 +3010,7 @@ export default {
},
"SSOConnection": {
"type": [
- 146
+ 147
],
"id": [
3
@@ -3008,7 +3022,7 @@ export default {
1
],
"status": [
- 147
+ 148
],
"__typename": [
1
@@ -3033,13 +3047,13 @@ export default {
1
],
"workspaceUrls": [
- 144
+ 145
],
"logo": [
1
],
"sso": [
- 145
+ 146
],
"__typename": [
1
@@ -3047,10 +3061,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 148
+ 149
],
"availableWorkspacesForSignUp": [
- 148
+ 149
],
"__typename": [
1
@@ -3078,7 +3092,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 152
+ 153
],
"value": [
6
@@ -3116,7 +3130,7 @@ export default {
1
],
"records": [
- 153
+ 154
],
"__typename": [
1
@@ -3124,7 +3138,7 @@ export default {
},
"FeatureFlag": {
"key": [
- 156
+ 157
],
"value": [
6
@@ -3142,10 +3156,10 @@ export default {
1
],
"type": [
- 146
+ 147
],
"status": [
- 147
+ 148
],
"issuer": [
1
@@ -3156,7 +3170,7 @@ export default {
},
"AuthProviders": {
"sso": [
- 157
+ 158
],
"google": [
6
@@ -3193,10 +3207,10 @@ export default {
3
],
"authProviders": [
- 158
+ 159
],
"authBypassProviders": [
- 159
+ 160
],
"logo": [
1
@@ -3205,7 +3219,7 @@ export default {
1
],
"workspaceUrls": [
- 144
+ 145
],
"__typename": [
1
@@ -3241,10 +3255,10 @@ export default {
},
"IndexConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 161
+ 162
],
"__typename": [
1
@@ -3263,10 +3277,10 @@ export default {
},
"IndexIndexFieldMetadatasConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 164
+ 165
],
"__typename": [
1
@@ -3285,10 +3299,10 @@ export default {
},
"IndexObjectMetadataConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 166
+ 167
],
"__typename": [
1
@@ -3307,10 +3321,10 @@ export default {
},
"ObjectConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 166
+ 167
],
"__typename": [
1
@@ -3318,10 +3332,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 161
+ 162
],
"__typename": [
1
@@ -3340,10 +3354,10 @@ export default {
},
"ObjectFieldsConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 171
+ 172
],
"__typename": [
1
@@ -3379,7 +3393,7 @@ export default {
1
],
"versionDistribution": [
- 174
+ 175
],
"__typename": [
1
@@ -3426,7 +3440,7 @@ export default {
},
"Relation": {
"type": [
- 180
+ 181
],
"sourceObjectMetadata": [
46
@@ -3447,10 +3461,10 @@ export default {
"RelationType": {},
"FieldConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 171
+ 172
],
"__typename": [
1
@@ -3469,7 +3483,7 @@ export default {
3
],
"type": [
- 146
+ 147
],
"issuer": [
1
@@ -3478,7 +3492,7 @@ export default {
1
],
"status": [
- 147
+ 148
],
"__typename": [
1
@@ -3497,7 +3511,7 @@ export default {
},
"FindAvailableSSOIDP": {
"type": [
- 146
+ 147
],
"id": [
3
@@ -3509,10 +3523,10 @@ export default {
1
],
"status": [
- 147
+ 148
],
"workspace": [
- 184
+ 185
],
"__typename": [
1
@@ -3523,7 +3537,7 @@ export default {
3
],
"type": [
- 146
+ 147
],
"issuer": [
1
@@ -3532,7 +3546,7 @@ export default {
1
],
"status": [
- 147
+ 148
],
"__typename": [
1
@@ -3583,10 +3597,10 @@ export default {
},
"AuthTokenPair": {
"accessOrWorkspaceAgnosticToken": [
- 191
+ 192
],
"refreshToken": [
- 191
+ 192
],
"__typename": [
1
@@ -3594,10 +3608,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"tokens": [
- 192
+ 193
],
"availableWorkspaces": [
- 149
+ 150
],
"__typename": [
1
@@ -3635,7 +3649,7 @@ export default {
},
"WorkspaceUrlsAndId": {
"workspaceUrls": [
- 144
+ 145
],
"id": [
3
@@ -3646,10 +3660,10 @@ export default {
},
"SignUp": {
"loginToken": [
- 191
+ 192
],
"workspace": [
- 197
+ 198
],
"__typename": [
1
@@ -3657,7 +3671,7 @@ export default {
},
"TransientToken": {
"transientToken": [
- 191
+ 192
],
"__typename": [
1
@@ -3679,10 +3693,10 @@ export default {
},
"VerifyEmailAndGetLoginToken": {
"loginToken": [
- 191
+ 192
],
"workspaceUrls": [
- 144
+ 145
],
"__typename": [
1
@@ -3698,7 +3712,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 192
+ 193
],
"__typename": [
1
@@ -3706,7 +3720,7 @@ export default {
},
"LoginToken": {
"loginToken": [
- 191
+ 192
],
"__typename": [
1
@@ -3765,7 +3779,7 @@ export default {
3
],
"type": [
- 209
+ 210
],
"name": [
1
@@ -3795,7 +3809,7 @@ export default {
4
],
"targetRecordIdentifier": [
- 207
+ 208
],
"__typename": [
1
@@ -3821,7 +3835,7 @@ export default {
},
"MetadataEvent": {
"type": [
- 212
+ 213
],
"metadataName": [
1
@@ -3830,7 +3844,7 @@ export default {
1
],
"properties": [
- 210
+ 211
],
"updatedCollectionHash": [
1
@@ -3842,7 +3856,7 @@ export default {
"MetadataEventAction": {},
"ObjectRecordEvent": {
"action": [
- 214
+ 215
],
"objectNameSingular": [
1
@@ -3857,7 +3871,7 @@ export default {
1
],
"properties": [
- 210
+ 211
],
"__typename": [
1
@@ -3869,7 +3883,7 @@ export default {
1
],
"objectRecordEvent": [
- 213
+ 214
],
"__typename": [
1
@@ -3880,10 +3894,10 @@ export default {
1
],
"objectRecordEventsWithQueryIds": [
- 215
+ 216
],
"metadataEvents": [
- 211
+ 212
],
"__typename": [
1
@@ -3900,7 +3914,7 @@ export default {
11
],
"status": [
- 218
+ 219
],
"error": [
15
@@ -4061,10 +4075,10 @@ export default {
},
"ApplicationTokenPair": {
"applicationAccessToken": [
- 191
+ 192
],
"applicationRefreshToken": [
- 191
+ 192
],
"__typename": [
1
@@ -4108,7 +4122,7 @@ export default {
6
],
"applicationTokenPair": [
- 223
+ 224
],
"__typename": [
1
@@ -4125,10 +4139,10 @@ export default {
3
],
"frontComponent": [
- 224
+ 225
],
"engineComponentKey": [
- 226
+ 227
],
"label": [
1
@@ -4146,7 +4160,7 @@ export default {
6
],
"availabilityType": [
- 227
+ 228
],
"hotKeys": [
1
@@ -4224,7 +4238,7 @@ export default {
1
],
"parts": [
- 221
+ 222
],
"createdAt": [
4
@@ -4249,7 +4263,7 @@ export default {
},
"AISystemPromptPreview": {
"sections": [
- 230
+ 231
],
"estimatedTokenCount": [
21
@@ -4260,7 +4274,7 @@ export default {
},
"AgentChatThreadEdge": {
"node": [
- 228
+ 229
],
"cursor": [
40
@@ -4271,10 +4285,10 @@ export default {
},
"AgentChatThreadConnection": {
"pageInfo": [
- 162
+ 163
],
"edges": [
- 232
+ 233
],
"__typename": [
1
@@ -4311,10 +4325,10 @@ export default {
3
],
"evaluations": [
- 234
+ 235
],
"messages": [
- 229
+ 230
],
"createdAt": [
4
@@ -4331,19 +4345,19 @@ export default {
1
],
"syncStatus": [
- 237
+ 238
],
"syncStage": [
- 238
+ 239
],
"visibility": [
- 239
+ 240
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 240
+ 241
],
"isSyncEnabled": [
6
@@ -4417,22 +4431,22 @@ export default {
3
],
"visibility": [
- 243
+ 244
],
"handle": [
1
],
"type": [
- 244
+ 245
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 245
+ 246
],
"messageFolderImportPolicy": [
- 246
+ 247
],
"excludeNonProfessionalEmails": [
6
@@ -4441,7 +4455,7 @@ export default {
6
],
"pendingGroupEmailsAction": [
- 247
+ 248
],
"isSyncEnabled": [
6
@@ -4450,10 +4464,10 @@ export default {
4
],
"syncStatus": [
- 248
+ 249
],
"syncStage": [
- 249
+ 250
],
"syncStageStartedAt": [
4
@@ -4504,7 +4518,7 @@ export default {
1
],
"pendingSyncAction": [
- 251
+ 252
],
"messageChannelId": [
3
@@ -4522,7 +4536,7 @@ export default {
"MessageFolderPendingSyncAction": {},
"CollectionHash": {
"collectionName": [
- 253
+ 254
],
"hash": [
1
@@ -4589,13 +4603,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 254
+ 255
],
"views": [
- 255
+ 256
],
"collectionHashes": [
- 252
+ 253
],
"__typename": [
1
@@ -4663,7 +4677,7 @@ export default {
1
],
"modelFamily": [
- 261
+ 262
],
"modelFamilyLabel": [
1
@@ -4678,7 +4692,7 @@ export default {
11
],
"nativeCapabilities": [
- 259
+ 260
],
"isDeprecated": [
6
@@ -4705,7 +4719,7 @@ export default {
1
],
"modelFamily": [
- 261
+ 262
],
"modelFamilyLabel": [
1
@@ -4755,7 +4769,7 @@ export default {
},
"AdminAIModels": {
"models": [
- 262
+ 263
],
"defaultSmartModelId": [
1
@@ -4775,7 +4789,7 @@ export default {
1
],
"trialPeriods": [
- 258
+ 259
],
"__typename": [
1
@@ -4783,7 +4797,7 @@ export default {
},
"Support": {
"supportDriver": [
- 266
+ 267
],
"supportFrontChatId": [
1
@@ -4809,7 +4823,7 @@ export default {
},
"Captcha": {
"provider": [
- 269
+ 270
],
"siteKey": [
1
@@ -4843,10 +4857,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 156
+ 157
],
"metadata": [
- 271
+ 272
],
"__typename": [
1
@@ -4857,13 +4871,13 @@ export default {
1
],
"authProviders": [
- 158
+ 159
],
"billing": [
- 264
+ 265
],
"aiModels": [
- 260
+ 261
],
"signInPrefilled": [
6
@@ -4884,25 +4898,25 @@ export default {
6
],
"support": [
- 265
+ 266
],
"isAttachmentPreviewEnabled": [
6
],
"sentry": [
- 267
+ 268
],
"captcha": [
- 268
+ 269
],
"api": [
- 270
+ 271
],
"canManageFeatureFlags": [
6
],
"publicFeatureFlags": [
- 272
+ 273
],
"isMicrosoftMessagingEnabled": [
6
@@ -4952,13 +4966,13 @@ export default {
6
],
"source": [
- 275
+ 276
],
"isEnvOnly": [
6
],
"type": [
- 276
+ 277
],
"options": [
15
@@ -4971,10 +4985,10 @@ export default {
"ConfigVariableType": {},
"ConfigVariablesGroupData": {
"variables": [
- 274
+ 275
],
"name": [
- 278
+ 279
],
"description": [
1
@@ -4989,7 +5003,7 @@ export default {
"ConfigVariablesGroup": {},
"ConfigVariables": {
"groups": [
- 277
+ 278
],
"__typename": [
1
@@ -5014,7 +5028,7 @@ export default {
21
],
"results": [
- 280
+ 281
],
"__typename": [
1
@@ -5031,7 +5045,7 @@ export default {
15
],
"state": [
- 283
+ 284
],
"timestamp": [
11
@@ -5081,7 +5095,7 @@ export default {
},
"QueueJobsResponse": {
"jobs": [
- 282
+ 283
],
"count": [
11
@@ -5093,7 +5107,7 @@ export default {
6
],
"retentionConfig": [
- 284
+ 285
],
"__typename": [
1
@@ -5104,7 +5118,7 @@ export default {
21
],
"results": [
- 280
+ 281
],
"__typename": [
1
@@ -5112,13 +5126,13 @@ export default {
},
"SystemHealthService": {
"id": [
- 288
+ 289
],
"label": [
1
],
"status": [
- 289
+ 290
],
"__typename": [
1
@@ -5128,7 +5142,7 @@ export default {
"AdminPanelHealthServiceStatus": {},
"SystemHealth": {
"services": [
- 287
+ 288
],
"__typename": [
1
@@ -5168,13 +5182,13 @@ export default {
11
],
"workspaceUrls": [
- 144
+ 145
],
"users": [
- 291
+ 292
],
"featureFlags": [
- 155
+ 156
],
"__typename": [
1
@@ -5182,10 +5196,10 @@ export default {
},
"UserLookup": {
"user": [
- 291
+ 292
],
"workspaces": [
- 292
+ 293
],
"__typename": [
1
@@ -5210,7 +5224,7 @@ export default {
1
],
"status": [
- 289
+ 290
],
"__typename": [
1
@@ -5218,7 +5232,7 @@ export default {
},
"AdminPanelHealthServiceData": {
"id": [
- 288
+ 289
],
"label": [
1
@@ -5227,7 +5241,7 @@ export default {
1
],
"status": [
- 289
+ 290
],
"errorMessage": [
1
@@ -5236,7 +5250,7 @@ export default {
1
],
"queues": [
- 295
+ 296
],
"__typename": [
1
@@ -5307,7 +5321,7 @@ export default {
1
],
"data": [
- 299
+ 300
],
"__typename": [
1
@@ -5350,13 +5364,13 @@ export default {
11
],
"timeRange": [
- 303
+ 304
],
"details": [
- 301
+ 302
],
"data": [
- 300
+ 301
],
"__typename": [
1
@@ -5365,10 +5379,10 @@ export default {
"QueueMetricsTimeRange": {},
"Impersonate": {
"loginToken": [
- 191
+ 192
],
"workspace": [
- 197
+ 198
],
"__typename": [
1
@@ -5462,7 +5476,7 @@ export default {
1
],
"fields": [
- 308
+ 309
],
"__typename": [
1
@@ -5559,10 +5573,10 @@ export default {
6
],
"objectPermissions": [
- 312
+ 313
],
"fieldPermissions": [
- 313
+ 314
],
"permissionFlags": [
1
@@ -5612,19 +5626,19 @@ export default {
1
],
"objects": [
- 309
+ 310
],
"fields": [
- 308
+ 309
],
"logicFunctions": [
- 310
+ 311
],
"frontComponents": [
- 311
+ 312
],
"defaultRole": [
- 314
+ 315
],
"sourcePackage": [
1
@@ -5666,7 +5680,7 @@ export default {
1
],
"dailyUsage": [
- 317
+ 318
],
"__typename": [
1
@@ -5674,13 +5688,13 @@ export default {
},
"UsageAnalytics": {
"usageByUser": [
- 316
+ 317
],
"usageByOperationType": [
- 316
+ 317
],
"timeSeries": [
- 317
+ 318
],
"periodStart": [
4
@@ -5689,7 +5703,7 @@ export default {
4
],
"userDailyUsage": [
- 318
+ 319
],
"__typename": [
1
@@ -5743,13 +5757,13 @@ export default {
1
],
"driver": [
- 323
+ 324
],
"status": [
- 324
+ 325
],
"verificationRecords": [
- 321
+ 322
],
"verifiedAt": [
4
@@ -5796,7 +5810,7 @@ export default {
1
],
"location": [
- 326
+ 327
],
"__typename": [
1
@@ -5824,13 +5838,13 @@ export default {
},
"ImapSmtpCaldavConnectionParameters": {
"IMAP": [
- 328
+ 329
],
"SMTP": [
- 328
+ 329
],
"CALDAV": [
- 328
+ 329
],
"__typename": [
1
@@ -5850,7 +5864,7 @@ export default {
3
],
"connectionParameters": [
- 329
+ 330
],
"__typename": [
1
@@ -5914,7 +5928,7 @@ export default {
1
],
"series": [
- 334
+ 335
],
"xAxisLabel": [
1
@@ -5963,7 +5977,7 @@ export default {
1
],
"data": [
- 336
+ 337
],
"__typename": [
1
@@ -5971,7 +5985,7 @@ export default {
},
"LineChartData": {
"series": [
- 337
+ 338
],
"xAxisLabel": [
1
@@ -6008,7 +6022,7 @@ export default {
},
"PieChartData": {
"data": [
- 339
+ 340
],
"showLegend": [
6
@@ -6091,13 +6105,13 @@ export default {
},
"EventLogQueryResult": {
"records": [
- 342
+ 343
],
"totalCount": [
21
],
"pageInfo": [
- 343
+ 344
],
"__typename": [
1
@@ -6105,10 +6119,10 @@ export default {
},
"Query": {
"navigationMenuItems": [
- 208
+ 209
],
"navigationMenuItem": [
- 208,
+ 209,
{
"id": [
3,
@@ -6135,7 +6149,7 @@ export default {
}
],
"getPageLayoutTabs": [
- 111,
+ 112,
{
"pageLayoutId": [
1,
@@ -6144,7 +6158,7 @@ export default {
}
],
"getPageLayoutTab": [
- 111,
+ 112,
{
"id": [
1,
@@ -6153,18 +6167,18 @@ export default {
}
],
"getPageLayouts": [
- 112,
+ 113,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 113
+ 114
]
}
],
"getPageLayout": [
- 112,
+ 113,
{
"id": [
1,
@@ -6232,7 +6246,7 @@ export default {
32,
{
"input": [
- 346,
+ 347,
"LogicFunctionIdInput!"
]
}
@@ -6244,7 +6258,7 @@ export default {
15,
{
"input": [
- 346,
+ 347,
"LogicFunctionIdInput!"
]
}
@@ -6253,16 +6267,16 @@ export default {
1,
{
"input": [
- 346,
+ 347,
"LogicFunctionIdInput!"
]
}
],
"commandMenuItems": [
- 225
+ 226
],
"commandMenuItem": [
- 225,
+ 226,
{
"id": [
3,
@@ -6271,10 +6285,10 @@ export default {
}
],
"frontComponents": [
- 224
+ 225
],
"frontComponent": [
- 224,
+ 225,
{
"id": [
3,
@@ -6283,7 +6297,7 @@ export default {
}
],
"objectRecordCounts": [
- 168
+ 169
],
"object": [
46,
@@ -6295,7 +6309,7 @@ export default {
}
],
"objects": [
- 169,
+ 170,
{
"paging": [
39,
@@ -6335,7 +6349,7 @@ export default {
}
],
"indexMetadatas": [
- 163,
+ 164,
{
"paging": [
39,
@@ -6354,13 +6368,13 @@ export default {
25,
{
"input": [
- 348,
+ 349,
"AgentIdInput!"
]
}
],
"billingPortalSession": [
- 134,
+ 135,
{
"returnUrlPath": [
1
@@ -6368,10 +6382,10 @@ export default {
}
],
"listPlans": [
- 133
+ 134
],
"getMeteredProductsUsage": [
- 132
+ 133
],
"enterprisePortalSession": [
1,
@@ -6390,16 +6404,16 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 137
+ 138
],
"getRoles": [
29
],
"findWorkspaceInvitations": [
- 141
+ 142
],
"getApprovedAccessDomains": [
- 139
+ 140
],
"apiKeys": [
2
@@ -6408,13 +6422,13 @@ export default {
2,
{
"input": [
- 349,
+ 350,
"GetApiKeyInput!"
]
}
],
"getToolIndex": [
- 220
+ 221
],
"getToolInputSchema": [
15,
@@ -6435,7 +6449,7 @@ export default {
}
],
"fields": [
- 181,
+ 182,
{
"paging": [
39,
@@ -6505,7 +6519,7 @@ export default {
66
],
"getPublicWorkspaceDataByDomain": [
- 160,
+ 161,
{
"origin": [
1
@@ -6513,7 +6527,7 @@ export default {
}
],
"findApplicationRegistrationByClientId": [
- 177,
+ 178,
{
"clientId": [
1,
@@ -6543,7 +6557,7 @@ export default {
}
],
"findApplicationRegistrationStats": [
- 175,
+ 176,
{
"id": [
1,
@@ -6570,7 +6584,7 @@ export default {
}
],
"checkUserExists": [
- 205,
+ 206,
{
"email": [
1,
@@ -6582,7 +6596,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 206,
+ 207,
{
"inviteHash": [
1,
@@ -6600,7 +6614,7 @@ export default {
}
],
"validatePasswordResetToken": [
- 200,
+ 201,
{
"passwordResetToken": [
1,
@@ -6609,10 +6623,10 @@ export default {
}
],
"getSSOIdentityProviders": [
- 185
+ 186
],
"myMessageFolders": [
- 250,
+ 251,
{
"messageChannelId": [
3
@@ -6620,7 +6634,7 @@ export default {
}
],
"myMessageChannels": [
- 242,
+ 243,
{
"connectedAccountId": [
3
@@ -6628,13 +6642,13 @@ export default {
}
],
"myConnectedAccounts": [
- 241
+ 242
],
"connectedAccounts": [
- 241
+ 242
],
"myCalendarChannels": [
- 236,
+ 237,
{
"connectedAccountId": [
3
@@ -6642,10 +6656,10 @@ export default {
}
],
"webhooks": [
- 257
+ 258
],
"webhook": [
- 257,
+ 258,
{
"id": [
3,
@@ -6654,10 +6668,10 @@ export default {
}
],
"minimalMetadata": [
- 256
+ 257
],
"chatThread": [
- 228,
+ 229,
{
"id": [
3,
@@ -6666,7 +6680,7 @@ export default {
}
],
"chatMessages": [
- 229,
+ 230,
{
"threadId": [
3,
@@ -6675,13 +6689,13 @@ export default {
}
],
"getAISystemPromptPreview": [
- 231
+ 232
],
"skills": [
- 222
+ 223
],
"skill": [
- 222,
+ 223,
{
"id": [
3,
@@ -6690,24 +6704,24 @@ export default {
}
],
"chatThreads": [
- 233,
+ 234,
{
"paging": [
39,
"CursorPaging!"
],
"filter": [
- 350,
+ 351,
"AgentChatThreadFilter!"
],
"sorting": [
- 353,
+ 354,
"[AgentChatThreadSort!]!"
]
}
],
"agentTurns": [
- 235,
+ 236,
{
"agentId": [
3,
@@ -6716,43 +6730,43 @@ export default {
}
],
"eventLogs": [
- 344,
+ 345,
{
"input": [
- 357,
+ 358,
"EventLogQueryInput!"
]
}
],
"pieChartData": [
- 340,
+ 341,
{
"input": [
- 361,
+ 362,
"PieChartDataInput!"
]
}
],
"lineChartData": [
- 338,
+ 339,
{
"input": [
- 362,
+ 363,
"LineChartDataInput!"
]
}
],
"barChartData": [
- 335,
+ 336,
{
"input": [
- 363,
+ 364,
"BarChartDataInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 330,
+ 331,
{
"id": [
3,
@@ -6761,7 +6775,7 @@ export default {
}
],
"getAutoCompleteAddress": [
- 325,
+ 326,
{
"address": [
1,
@@ -6780,7 +6794,7 @@ export default {
}
],
"getAddressDetails": [
- 327,
+ 328,
{
"placeId": [
1,
@@ -6793,40 +6807,40 @@ export default {
}
],
"getConfigVariablesGrouped": [
- 279
+ 280
],
"getSystemHealthStatus": [
- 290
+ 291
],
"getIndicatorHealthStatus": [
- 296,
+ 297,
{
"indicatorId": [
- 288,
+ 289,
"HealthIndicatorId!"
]
}
],
"getQueueMetrics": [
- 302,
+ 303,
{
"queueName": [
1,
"String!"
],
"timeRange": [
- 303
+ 304
]
}
],
"versionInfo": [
- 294
+ 295
],
"getAdminAiModels": [
- 263
+ 264
],
"getDatabaseConfigVariable": [
- 274,
+ 275,
{
"key": [
1,
@@ -6835,14 +6849,14 @@ export default {
}
],
"getQueueJobs": [
- 285,
+ 286,
{
"queueName": [
1,
"String!"
],
"state": [
- 283,
+ 284,
"JobState!"
],
"limit": [
@@ -6860,10 +6874,10 @@ export default {
15
],
"getModelsDevProviders": [
- 298
+ 299
],
"getModelsDevSuggestions": [
- 297,
+ 298,
{
"providerType": [
1,
@@ -6872,19 +6886,19 @@ export default {
}
],
"getPostgresCredentials": [
- 332
+ 333
],
"findManyPublicDomains": [
- 320
+ 321
],
"getEmailingDomains": [
- 322
+ 323
],
"findManyMarketplaceApps": [
- 315
+ 316
],
"findOneMarketplaceApp": [
- 315,
+ 316,
{
"universalIdentifier": [
1,
@@ -6907,10 +6921,10 @@ export default {
}
],
"getUsageAnalytics": [
- 319,
+ 320,
{
"input": [
- 364
+ 365
]
}
],
@@ -6920,7 +6934,7 @@ export default {
},
"LogicFunctionIdInput": {
"id": [
- 347
+ 348
],
"__typename": [
1
@@ -6945,16 +6959,16 @@ export default {
},
"AgentChatThreadFilter": {
"and": [
- 350
+ 351
],
"or": [
- 350
+ 351
],
"id": [
42
],
"updatedAt": [
- 351
+ 352
],
"__typename": [
1
@@ -6992,10 +7006,10 @@ export default {
4
],
"between": [
- 352
+ 353
],
"notBetween": [
- 352
+ 353
],
"__typename": [
1
@@ -7014,13 +7028,13 @@ export default {
},
"AgentChatThreadSort": {
"field": [
- 354
+ 355
],
"direction": [
- 355
+ 356
],
"nulls": [
- 356
+ 357
],
"__typename": [
1
@@ -7031,10 +7045,10 @@ export default {
"SortNulls": {},
"EventLogQueryInput": {
"table": [
- 358
+ 359
],
"filters": [
- 359
+ 360
],
"first": [
21
@@ -7055,7 +7069,7 @@ export default {
1
],
"dateRange": [
- 360
+ 361
],
"recordId": [
1
@@ -7130,7 +7144,7 @@ export default {
6,
{
"input": [
- 366,
+ 367,
"AddQuerySubscriptionInput!"
]
}
@@ -7139,31 +7153,31 @@ export default {
6,
{
"input": [
- 367,
+ 368,
"RemoveQueryFromEventStreamInput!"
]
}
],
"createNavigationMenuItem": [
- 208,
+ 209,
{
"input": [
- 368,
+ 369,
"CreateNavigationMenuItemInput!"
]
}
],
"updateNavigationMenuItem": [
- 208,
+ 209,
{
"input": [
- 369,
+ 370,
"UpdateOneNavigationMenuItemInput!"
]
}
],
"deleteNavigationMenuItem": [
- 208,
+ 209,
{
"id": [
3,
@@ -7172,46 +7186,46 @@ export default {
}
],
"uploadAIChatFile": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
]
}
],
"uploadWorkflowFile": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
]
}
],
"uploadWorkspaceLogo": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
]
}
],
"uploadFilesFieldFile": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
],
"fieldMetadataId": [
@@ -7221,10 +7235,10 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 140,
+ 141,
{
"file": [
- 371,
+ 372,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -7234,7 +7248,7 @@ export default {
}
],
"createObjectEvent": [
- 114,
+ 115,
{
"event": [
1,
@@ -7254,10 +7268,10 @@ export default {
}
],
"trackAnalytics": [
- 114,
+ 115,
{
"type": [
- 372,
+ 373,
"AnalyticsType!"
],
"name": [
@@ -7275,7 +7289,7 @@ export default {
75,
{
"input": [
- 373,
+ 374,
"CreatePageLayoutWidgetInput!"
]
}
@@ -7288,7 +7302,7 @@ export default {
"String!"
],
"input": [
- 375,
+ 376,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -7303,23 +7317,23 @@ export default {
}
],
"createPageLayoutTab": [
- 111,
+ 112,
{
"input": [
- 376,
+ 377,
"CreatePageLayoutTabInput!"
]
}
],
"updatePageLayoutTab": [
- 111,
+ 112,
{
"id": [
1,
"String!"
],
"input": [
- 377,
+ 378,
"UpdatePageLayoutTabInput!"
]
}
@@ -7334,23 +7348,23 @@ export default {
}
],
"createPageLayout": [
- 112,
+ 113,
{
"input": [
- 378,
+ 379,
"CreatePageLayoutInput!"
]
}
],
"updatePageLayout": [
- 112,
+ 113,
{
"id": [
1,
"String!"
],
"input": [
- 379,
+ 380,
"UpdatePageLayoutInput!"
]
}
@@ -7365,14 +7379,14 @@ export default {
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 112,
+ 113,
{
"id": [
1,
"String!"
],
"input": [
- 380,
+ 381,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -7381,7 +7395,7 @@ export default {
60,
{
"input": [
- 383,
+ 384,
"CreateViewInput!"
]
}
@@ -7394,7 +7408,7 @@ export default {
"String!"
],
"input": [
- 384,
+ 385,
"UpdateViewInput!"
]
}
@@ -7421,7 +7435,7 @@ export default {
57,
{
"input": [
- 385,
+ 386,
"CreateViewSortInput!"
]
}
@@ -7430,7 +7444,7 @@ export default {
57,
{
"input": [
- 386,
+ 387,
"UpdateViewSortInput!"
]
}
@@ -7439,7 +7453,7 @@ export default {
6,
{
"input": [
- 388,
+ 389,
"DeleteViewSortInput!"
]
}
@@ -7448,7 +7462,7 @@ export default {
6,
{
"input": [
- 389,
+ 390,
"DestroyViewSortInput!"
]
}
@@ -7457,7 +7471,7 @@ export default {
59,
{
"input": [
- 390,
+ 391,
"UpdateViewFieldGroupInput!"
]
}
@@ -7466,7 +7480,7 @@ export default {
59,
{
"input": [
- 392,
+ 393,
"CreateViewFieldGroupInput!"
]
}
@@ -7475,7 +7489,7 @@ export default {
59,
{
"inputs": [
- 392,
+ 393,
"[CreateViewFieldGroupInput!]!"
]
}
@@ -7484,7 +7498,7 @@ export default {
59,
{
"input": [
- 393,
+ 394,
"DeleteViewFieldGroupInput!"
]
}
@@ -7493,7 +7507,7 @@ export default {
59,
{
"input": [
- 394,
+ 395,
"DestroyViewFieldGroupInput!"
]
}
@@ -7502,7 +7516,7 @@ export default {
60,
{
"input": [
- 395,
+ 396,
"UpsertFieldsWidgetInput!"
]
}
@@ -7511,7 +7525,7 @@ export default {
32,
{
"input": [
- 346,
+ 347,
"LogicFunctionIdInput!"
]
}
@@ -7520,16 +7534,16 @@ export default {
32,
{
"input": [
- 398,
+ 399,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"executeOneLogicFunction": [
- 217,
+ 218,
{
"input": [
- 399,
+ 400,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7538,31 +7552,31 @@ export default {
6,
{
"input": [
- 400,
+ 401,
"UpdateLogicFunctionFromSourceInput!"
]
}
],
"createCommandMenuItem": [
- 225,
+ 226,
{
"input": [
- 402,
+ 403,
"CreateCommandMenuItemInput!"
]
}
],
"updateCommandMenuItem": [
- 225,
+ 226,
{
"input": [
- 403,
+ 404,
"UpdateCommandMenuItemInput!"
]
}
],
"deleteCommandMenuItem": [
- 225,
+ 226,
{
"id": [
3,
@@ -7571,25 +7585,25 @@ export default {
}
],
"createFrontComponent": [
- 224,
+ 225,
{
"input": [
- 404,
+ 405,
"CreateFrontComponentInput!"
]
}
],
"updateFrontComponent": [
- 224,
+ 225,
{
"input": [
- 405,
+ 406,
"UpdateFrontComponentInput!"
]
}
],
"deleteFrontComponent": [
- 224,
+ 225,
{
"id": [
3,
@@ -7601,7 +7615,7 @@ export default {
46,
{
"input": [
- 407,
+ 408,
"CreateOneObjectInput!"
]
}
@@ -7610,7 +7624,7 @@ export default {
46,
{
"input": [
- 409,
+ 410,
"DeleteOneObjectInput!"
]
}
@@ -7619,7 +7633,7 @@ export default {
46,
{
"input": [
- 410,
+ 411,
"UpdateOneObjectInput!"
]
}
@@ -7628,7 +7642,7 @@ export default {
50,
{
"input": [
- 412,
+ 413,
"UpdateViewFieldInput!"
]
}
@@ -7637,7 +7651,7 @@ export default {
50,
{
"input": [
- 414,
+ 415,
"CreateViewFieldInput!"
]
}
@@ -7646,7 +7660,7 @@ export default {
50,
{
"inputs": [
- 414,
+ 415,
"[CreateViewFieldInput!]!"
]
}
@@ -7655,7 +7669,7 @@ export default {
50,
{
"input": [
- 415,
+ 416,
"DeleteViewFieldInput!"
]
}
@@ -7664,7 +7678,7 @@ export default {
50,
{
"input": [
- 416,
+ 417,
"DestroyViewFieldInput!"
]
}
@@ -7673,7 +7687,7 @@ export default {
25,
{
"input": [
- 417,
+ 418,
"CreateAgentInput!"
]
}
@@ -7682,7 +7696,7 @@ export default {
25,
{
"input": [
- 418,
+ 419,
"UpdateAgentInput!"
]
}
@@ -7691,20 +7705,20 @@ export default {
25,
{
"input": [
- 348,
+ 349,
"AgentIdInput!"
]
}
],
"checkoutSession": [
- 134,
+ 135,
{
"recurringInterval": [
- 122,
+ 123,
"SubscriptionInterval!"
],
"plan": [
- 118,
+ 119,
"BillingPlanKey!"
],
"requirePaymentMethod": [
@@ -7717,19 +7731,19 @@ export default {
}
],
"switchSubscriptionInterval": [
- 135
+ 136
],
"switchBillingPlan": [
- 135
+ 136
],
"cancelSwitchBillingPlan": [
- 135
+ 136
],
"cancelSwitchBillingInterval": [
- 135
+ 136
],
"setMeteredSubscriptionPrice": [
- 135,
+ 136,
{
"priceId": [
1,
@@ -7738,16 +7752,16 @@ export default {
}
],
"endSubscriptionTrialPeriod": [
- 131
+ 132
],
"cancelSwitchMeteredPrice": [
- 135
+ 136
],
"refreshEnterpriseValidityToken": [
6
],
"setEnterpriseKey": [
- 136,
+ 137,
{
"enterpriseKey": [
1,
@@ -7772,7 +7786,7 @@ export default {
29,
{
"createRoleInput": [
- 419,
+ 420,
"CreateRoleInput!"
]
}
@@ -7781,7 +7795,7 @@ export default {
29,
{
"updateRoleInput": [
- 420,
+ 421,
"UpdateRoleInput!"
]
}
@@ -7799,7 +7813,7 @@ export default {
16,
{
"upsertObjectPermissionsInput": [
- 422,
+ 423,
"UpsertObjectPermissionsInput!"
]
}
@@ -7808,7 +7822,7 @@ export default {
27,
{
"upsertPermissionFlagsInput": [
- 424,
+ 425,
"UpsertPermissionFlagsInput!"
]
}
@@ -7817,16 +7831,16 @@ export default {
26,
{
"upsertFieldPermissionsInput": [
- 425,
+ 426,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 173,
+ 174,
{
"input": [
- 427,
+ 428,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -7854,10 +7868,10 @@ export default {
}
],
"skipSyncEmailOnboardingStep": [
- 138
+ 139
],
"skipBookOnboardingStep": [
- 138
+ 139
],
"deleteWorkspaceInvitation": [
1,
@@ -7869,7 +7883,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 142,
+ 143,
{
"appTokenId": [
1,
@@ -7878,7 +7892,7 @@ export default {
}
],
"sendInvitations": [
- 142,
+ 143,
{
"emails": [
1,
@@ -7890,10 +7904,10 @@ export default {
}
],
"createApprovedAccessDomain": [
- 139,
+ 140,
{
"input": [
- 430,
+ 431,
"CreateApprovedAccessDomainInput!"
]
}
@@ -7902,16 +7916,16 @@ export default {
6,
{
"input": [
- 431,
+ 432,
"DeleteApprovedAccessDomainInput!"
]
}
],
"validateApprovedAccessDomain": [
- 139,
+ 140,
{
"input": [
- 432,
+ 433,
"ValidateApprovedAccessDomainInput!"
]
}
@@ -7920,7 +7934,7 @@ export default {
2,
{
"input": [
- 433,
+ 434,
"CreateApiKeyInput!"
]
}
@@ -7929,7 +7943,7 @@ export default {
2,
{
"input": [
- 434,
+ 435,
"UpdateApiKeyInput!"
]
}
@@ -7938,7 +7952,7 @@ export default {
2,
{
"input": [
- 435,
+ 436,
"RevokeApiKeyInput!"
]
}
@@ -7960,7 +7974,7 @@ export default {
34,
{
"input": [
- 436,
+ 437,
"CreateOneFieldMetadataInput!"
]
}
@@ -7969,7 +7983,7 @@ export default {
34,
{
"input": [
- 438,
+ 439,
"UpdateOneFieldMetadataInput!"
]
}
@@ -7978,7 +7992,7 @@ export default {
34,
{
"input": [
- 440,
+ 441,
"DeleteOneFieldInput!"
]
}
@@ -7987,7 +8001,7 @@ export default {
56,
{
"input": [
- 441,
+ 442,
"CreateViewGroupInput!"
]
}
@@ -7996,7 +8010,7 @@ export default {
56,
{
"inputs": [
- 441,
+ 442,
"[CreateViewGroupInput!]!"
]
}
@@ -8005,7 +8019,7 @@ export default {
56,
{
"input": [
- 442,
+ 443,
"UpdateViewGroupInput!"
]
}
@@ -8014,7 +8028,7 @@ export default {
56,
{
"input": [
- 444,
+ 445,
"DeleteViewGroupInput!"
]
}
@@ -8023,7 +8037,7 @@ export default {
56,
{
"input": [
- 445,
+ 446,
"DestroyViewGroupInput!"
]
}
@@ -8032,7 +8046,7 @@ export default {
54,
{
"input": [
- 446,
+ 447,
"CreateViewFilterInput!"
]
}
@@ -8041,7 +8055,7 @@ export default {
54,
{
"input": [
- 447,
+ 448,
"UpdateViewFilterInput!"
]
}
@@ -8050,7 +8064,7 @@ export default {
54,
{
"input": [
- 449,
+ 450,
"DeleteViewFilterInput!"
]
}
@@ -8059,7 +8073,7 @@ export default {
54,
{
"input": [
- 450,
+ 451,
"DestroyViewFilterInput!"
]
}
@@ -8068,7 +8082,7 @@ export default {
52,
{
"input": [
- 451,
+ 452,
"CreateViewFilterGroupInput!"
]
}
@@ -8081,7 +8095,7 @@ export default {
"String!"
],
"input": [
- 452,
+ 453,
"UpdateViewFilterGroupInput!"
]
}
@@ -8129,7 +8143,7 @@ export default {
}
],
"resendEmailVerificationToken": [
- 143,
+ 144,
{
"email": [
1,
@@ -8145,7 +8159,7 @@ export default {
66,
{
"data": [
- 453,
+ 454,
"ActivateWorkspaceInput!"
]
}
@@ -8154,7 +8168,7 @@ export default {
66,
{
"data": [
- 454,
+ 455,
"UpdateWorkspaceInput!"
]
}
@@ -8163,13 +8177,13 @@ export default {
66
],
"checkCustomDomainValidRecords": [
- 154
+ 155
],
"createApplicationRegistration": [
- 176,
+ 177,
{
"input": [
- 455,
+ 456,
"CreateApplicationRegistrationInput!"
]
}
@@ -8178,7 +8192,7 @@ export default {
7,
{
"input": [
- 456,
+ 457,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8193,7 +8207,7 @@ export default {
}
],
"rotateApplicationRegistrationClientSecret": [
- 178,
+ 179,
{
"id": [
1,
@@ -8205,7 +8219,7 @@ export default {
5,
{
"input": [
- 458,
+ 459,
"CreateApplicationRegistrationVariableInput!"
]
}
@@ -8214,7 +8228,7 @@ export default {
5,
{
"input": [
- 459,
+ 460,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8232,7 +8246,7 @@ export default {
7,
{
"file": [
- 371,
+ 372,
"Upload!"
],
"universalIdentifier": [
@@ -8254,16 +8268,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 195,
+ 196,
{
"input": [
- 461,
+ 462,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 204,
+ 205,
{
"email": [
1,
@@ -8289,7 +8303,7 @@ export default {
}
],
"signIn": [
- 193,
+ 194,
{
"email": [
1,
@@ -8311,7 +8325,7 @@ export default {
}
],
"verifyEmailAndGetLoginToken": [
- 201,
+ 202,
{
"emailVerificationToken": [
1,
@@ -8331,7 +8345,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 193,
+ 194,
{
"emailVerificationToken": [
1,
@@ -8347,7 +8361,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 203,
+ 204,
{
"otp": [
1,
@@ -8367,7 +8381,7 @@ export default {
}
],
"signUp": [
- 193,
+ 194,
{
"email": [
1,
@@ -8389,7 +8403,7 @@ export default {
}
],
"signUpInWorkspace": [
- 198,
+ 199,
{
"email": [
1,
@@ -8420,13 +8434,13 @@ export default {
}
],
"signUpInNewWorkspace": [
- 198
+ 199
],
"generateTransientToken": [
- 199
+ 200
],
"getAuthTokensFromLoginToken": [
- 203,
+ 204,
{
"loginToken": [
1,
@@ -8439,7 +8453,7 @@ export default {
}
],
"authorizeApp": [
- 190,
+ 191,
{
"clientId": [
1,
@@ -8461,7 +8475,7 @@ export default {
}
],
"renewToken": [
- 203,
+ 204,
{
"appToken": [
1,
@@ -8470,7 +8484,7 @@ export default {
}
],
"generateApiKeyToken": [
- 202,
+ 203,
{
"apiKeyId": [
3,
@@ -8483,7 +8497,7 @@ export default {
}
],
"emailPasswordResetLink": [
- 194,
+ 195,
{
"email": [
1,
@@ -8495,7 +8509,7 @@ export default {
}
],
"updatePasswordViaResetToken": [
- 196,
+ 197,
{
"passwordResetToken": [
1,
@@ -8508,7 +8522,7 @@ export default {
}
],
"initiateOTPProvisioning": [
- 188,
+ 189,
{
"loginToken": [
1,
@@ -8521,10 +8535,10 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 188
+ 189
],
"deleteTwoFactorAuthenticationMethod": [
- 187,
+ 188,
{
"twoFactorAuthenticationMethodId": [
3,
@@ -8533,7 +8547,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 189,
+ 190,
{
"otp": [
1,
@@ -8542,70 +8556,70 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 186,
+ 187,
{
"input": [
- 462,
+ 463,
"SetupOIDCSsoInput!"
]
}
],
"createSAMLIdentityProvider": [
- 186,
+ 187,
{
"input": [
- 463,
+ 464,
"SetupSAMLSsoInput!"
]
}
],
"deleteSSOIdentityProvider": [
- 182,
+ 183,
{
"input": [
- 464,
+ 465,
"DeleteSsoInput!"
]
}
],
"editSSOIdentityProvider": [
- 183,
+ 184,
{
"input": [
- 465,
+ 466,
"EditSsoInput!"
]
}
],
"updateMessageFolder": [
- 250,
+ 251,
{
"input": [
- 466,
+ 467,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 250,
+ 251,
{
"input": [
- 468,
+ 469,
"UpdateMessageFoldersInput!"
]
}
],
"updateMessageChannel": [
- 242,
+ 243,
{
"input": [
- 469,
+ 470,
"UpdateMessageChannelInput!"
]
}
],
"deleteConnectedAccount": [
- 241,
+ 242,
{
"id": [
3,
@@ -8614,34 +8628,34 @@ export default {
}
],
"updateCalendarChannel": [
- 236,
+ 237,
{
"input": [
- 471,
+ 472,
"UpdateCalendarChannelInput!"
]
}
],
"createWebhook": [
- 257,
+ 258,
{
"input": [
- 473,
+ 474,
"CreateWebhookInput!"
]
}
],
"updateWebhook": [
- 257,
+ 258,
{
"input": [
- 474,
+ 475,
"UpdateWebhookInput!"
]
}
],
"deleteWebhook": [
- 257,
+ 258,
{
"id": [
3,
@@ -8650,28 +8664,28 @@ export default {
}
],
"createChatThread": [
- 228
+ 229
],
"createSkill": [
- 222,
+ 223,
{
"input": [
- 476,
+ 477,
"CreateSkillInput!"
]
}
],
"updateSkill": [
- 222,
+ 223,
{
"input": [
- 477,
+ 478,
"UpdateSkillInput!"
]
}
],
"deleteSkill": [
- 222,
+ 223,
{
"id": [
3,
@@ -8680,7 +8694,7 @@ export default {
}
],
"activateSkill": [
- 222,
+ 223,
{
"id": [
3,
@@ -8689,7 +8703,7 @@ export default {
}
],
"deactivateSkill": [
- 222,
+ 223,
{
"id": [
3,
@@ -8698,7 +8712,7 @@ export default {
}
],
"evaluateAgentTurn": [
- 234,
+ 235,
{
"turnId": [
3,
@@ -8707,7 +8721,7 @@ export default {
}
],
"runEvaluationInput": [
- 235,
+ 236,
{
"agentId": [
3,
@@ -8720,7 +8734,7 @@ export default {
}
],
"duplicateDashboard": [
- 341,
+ 342,
{
"id": [
3,
@@ -8729,7 +8743,7 @@ export default {
}
],
"impersonate": [
- 304,
+ 305,
{
"userId": [
3,
@@ -8742,7 +8756,7 @@ export default {
}
],
"startChannelSync": [
- 333,
+ 334,
{
"connectedAccountId": [
3,
@@ -8751,7 +8765,7 @@ export default {
}
],
"saveImapSmtpCaldavAccount": [
- 331,
+ 332,
{
"accountOwnerId": [
3,
@@ -8762,7 +8776,7 @@ export default {
"String!"
],
"connectionParameters": [
- 478,
+ 479,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -8771,16 +8785,16 @@ export default {
}
],
"updateLabPublicFeatureFlag": [
- 155,
+ 156,
{
"input": [
- 480,
+ 481,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"userLookupAdminPanel": [
- 293,
+ 294,
{
"userIdentifier": [
1,
@@ -8835,7 +8849,7 @@ export default {
6,
{
"role": [
- 481,
+ 482,
"AiModelRole!"
],
"modelId": [
@@ -8880,7 +8894,7 @@ export default {
}
],
"retryJobs": [
- 286,
+ 287,
{
"queueName": [
1,
@@ -8893,7 +8907,7 @@ export default {
}
],
"deleteJobs": [
- 281,
+ 282,
{
"queueName": [
1,
@@ -8954,13 +8968,13 @@ export default {
}
],
"enablePostgresProxy": [
- 332
+ 333
],
"disablePostgresProxy": [
- 332
+ 333
],
"createPublicDomain": [
- 320,
+ 321,
{
"domain": [
1,
@@ -8978,7 +8992,7 @@ export default {
}
],
"checkPublicDomainValidRecords": [
- 154,
+ 155,
{
"domain": [
1,
@@ -8987,14 +9001,14 @@ export default {
}
],
"createEmailingDomain": [
- 322,
+ 323,
{
"domain": [
1,
"String!"
],
"driver": [
- 323,
+ 324,
"EmailingDomainDriver!"
]
}
@@ -9009,7 +9023,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 322,
+ 323,
{
"id": [
1,
@@ -9021,7 +9035,7 @@ export default {
68,
{
"input": [
- 482,
+ 483,
"CreateOneAppTokenInput!"
]
}
@@ -9054,7 +9068,7 @@ export default {
6,
{
"workspaceMigration": [
- 484,
+ 485,
"WorkspaceMigrationInput!"
]
}
@@ -9086,7 +9100,7 @@ export default {
}
],
"createDevelopmentApplication": [
- 305,
+ 306,
{
"universalIdentifier": [
1,
@@ -9099,7 +9113,7 @@ export default {
}
],
"generateApplicationToken": [
- 223,
+ 224,
{
"applicationId": [
3,
@@ -9108,7 +9122,7 @@ export default {
}
],
"syncApplication": [
- 306,
+ 307,
{
"manifest": [
15,
@@ -9117,10 +9131,10 @@ export default {
}
],
"uploadApplicationFile": [
- 307,
+ 308,
{
"file": [
- 371,
+ 372,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -9128,7 +9142,7 @@ export default {
"String!"
],
"fileFolder": [
- 487,
+ 488,
"FileFolder!"
],
"filePath": [
@@ -9151,7 +9165,7 @@ export default {
}
],
"renewApplicationToken": [
- 223,
+ 224,
{
"applicationRefreshToken": [
1,
@@ -9205,7 +9219,7 @@ export default {
3
],
"type": [
- 209
+ 210
],
"name": [
1
@@ -9234,7 +9248,7 @@ export default {
3
],
"update": [
- 370
+ 371
],
"__typename": [
1
@@ -9279,7 +9293,7 @@ export default {
3
],
"gridPosition": [
- 374
+ 375
],
"position": [
15
@@ -9319,7 +9333,7 @@ export default {
3
],
"gridPosition": [
- 374
+ 375
],
"position": [
15
@@ -9373,7 +9387,7 @@ export default {
1
],
"type": [
- 113
+ 114
],
"objectMetadataId": [
3
@@ -9387,7 +9401,7 @@ export default {
1
],
"type": [
- 113
+ 114
],
"objectMetadataId": [
3
@@ -9401,13 +9415,13 @@ export default {
1
],
"type": [
- 113
+ 114
],
"objectMetadataId": [
3
],
"tabs": [
- 381
+ 382
],
"__typename": [
1
@@ -9430,7 +9444,7 @@ export default {
79
],
"widgets": [
- 382
+ 383
],
"__typename": [
1
@@ -9453,7 +9467,7 @@ export default {
3
],
"gridPosition": [
- 374
+ 375
],
"position": [
15
@@ -9596,7 +9610,7 @@ export default {
3
],
"update": [
- 387
+ 388
],
"__typename": [
1
@@ -9631,7 +9645,7 @@ export default {
3
],
"update": [
- 391
+ 392
],
"__typename": [
1
@@ -9695,10 +9709,10 @@ export default {
3
],
"groups": [
- 396
+ 397
],
"fields": [
- 397
+ 398
],
"__typename": [
1
@@ -9718,7 +9732,7 @@ export default {
6
],
"fields": [
- 397
+ 398
],
"__typename": [
1
@@ -9792,7 +9806,7 @@ export default {
3
],
"update": [
- 401
+ 402
],
"__typename": [
1
@@ -9844,7 +9858,7 @@ export default {
3
],
"engineComponentKey": [
- 226
+ 227
],
"label": [
1
@@ -9862,7 +9876,7 @@ export default {
6
],
"availabilityType": [
- 227
+ 228
],
"hotKeys": [
1
@@ -9897,13 +9911,13 @@ export default {
6
],
"availabilityType": [
- 227
+ 228
],
"availabilityObjectMetadataId": [
3
],
"engineComponentKey": [
- 226
+ 227
],
"hotKeys": [
1
@@ -9943,7 +9957,7 @@ export default {
3
],
"update": [
- 406
+ 407
],
"__typename": [
1
@@ -9962,7 +9976,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 408
+ 409
],
"__typename": [
1
@@ -10022,7 +10036,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 411
+ 412
],
"id": [
3
@@ -10077,7 +10091,7 @@ export default {
3
],
"update": [
- 413
+ 414
],
"__typename": [
1
@@ -10267,7 +10281,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 421
+ 422
],
"id": [
3
@@ -10322,7 +10336,7 @@ export default {
3
],
"objectPermissions": [
- 423
+ 424
],
"__typename": [
1
@@ -10364,7 +10378,7 @@ export default {
3
],
"fieldPermissions": [
- 426
+ 427
],
"__typename": [
1
@@ -10395,10 +10409,10 @@ export default {
3
],
"predicates": [
- 428
+ 429
],
"predicateGroups": [
- 429
+ 430
],
"__typename": [
1
@@ -10530,7 +10544,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 437
+ 438
],
"__typename": [
1
@@ -10603,7 +10617,7 @@ export default {
3
],
"update": [
- 439
+ 440
],
"__typename": [
1
@@ -10692,7 +10706,7 @@ export default {
3
],
"update": [
- 443
+ 444
],
"__typename": [
1
@@ -10765,7 +10779,7 @@ export default {
3
],
"update": [
- 448
+ 449
],
"__typename": [
1
@@ -10969,7 +10983,7 @@ export default {
1
],
"update": [
- 457
+ 458
],
"__typename": [
1
@@ -11032,7 +11046,7 @@ export default {
1
],
"update": [
- 460
+ 461
],
"__typename": [
1
@@ -11113,7 +11127,7 @@ export default {
3
],
"status": [
- 147
+ 148
],
"__typename": [
1
@@ -11124,7 +11138,7 @@ export default {
3
],
"update": [
- 467
+ 468
],
"__typename": [
1
@@ -11143,7 +11157,7 @@ export default {
3
],
"update": [
- 467
+ 468
],
"__typename": [
1
@@ -11154,7 +11168,7 @@ export default {
3
],
"update": [
- 470
+ 471
],
"__typename": [
1
@@ -11162,16 +11176,16 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"visibility": [
- 243
+ 244
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 245
+ 246
],
"messageFolderImportPolicy": [
- 246
+ 247
],
"isSyncEnabled": [
6
@@ -11191,7 +11205,7 @@ export default {
3
],
"update": [
- 472
+ 473
],
"__typename": [
1
@@ -11199,13 +11213,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 239
+ 240
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 240
+ 241
],
"isSyncEnabled": [
6
@@ -11239,7 +11253,7 @@ export default {
3
],
"update": [
- 475
+ 476
],
"__typename": [
1
@@ -11313,13 +11327,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"IMAP": [
- 479
+ 480
],
"SMTP": [
- 479
+ 480
],
"CALDAV": [
- 479
+ 480
],
"__typename": [
1
@@ -11359,7 +11373,7 @@ export default {
"AiModelRole": {},
"CreateOneAppTokenInput": {
"appToken": [
- 483
+ 484
],
"__typename": [
1
@@ -11375,7 +11389,7 @@ export default {
},
"WorkspaceMigrationInput": {
"actions": [
- 485
+ 486
],
"__typename": [
1
@@ -11383,10 +11397,10 @@ export default {
},
"WorkspaceMigrationDeleteActionInput": {
"type": [
- 486
+ 487
],
"metadataName": [
- 253
+ 254
],
"universalIdentifier": [
1
@@ -11399,7 +11413,7 @@ export default {
"FileFolder": {},
"Subscription": {
"onEventSubscription": [
- 216,
+ 217,
{
"eventStreamId": [
1,
@@ -11408,10 +11422,10 @@ export default {
}
],
"logicFunctionLogs": [
- 219,
+ 220,
{
"input": [
- 489,
+ 490,
"LogicFunctionLogsInput!"
]
}
diff --git a/packages/twenty-server/src/database/typeorm/core/migrations/common/1774072000000-addRecordTableWidgetType.ts b/packages/twenty-server/src/database/typeorm/core/migrations/common/1774072000000-addRecordTableWidgetType.ts
new file mode 100644
index 00000000000..039773a6004
--- /dev/null
+++ b/packages/twenty-server/src/database/typeorm/core/migrations/common/1774072000000-addRecordTableWidgetType.ts
@@ -0,0 +1,47 @@
+import { type MigrationInterface, type QueryRunner } from 'typeorm';
+
+export class AddRecordTableWidgetType1774072000000
+ implements MigrationInterface
+{
+ name = 'AddRecordTableWidgetType1774072000000';
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TYPE "core"."pageLayoutWidget_type_enum" RENAME TO "pageLayoutWidget_type_enum_old"`,
+ );
+ await queryRunner.query(
+ `CREATE TYPE "core"."pageLayoutWidget_type_enum" AS ENUM('VIEW', 'IFRAME', 'FIELD', 'FIELDS', 'GRAPH', 'STANDALONE_RICH_TEXT', 'TIMELINE', 'TASKS', 'NOTES', 'FILES', 'EMAILS', 'CALENDAR', 'FIELD_RICH_TEXT', 'WORKFLOW', 'WORKFLOW_VERSION', 'WORKFLOW_RUN', 'FRONT_COMPONENT', 'RECORD_TABLE')`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" DROP DEFAULT`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" TYPE "core"."pageLayoutWidget_type_enum" USING "type"::"text"::"core"."pageLayoutWidget_type_enum"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" SET DEFAULT 'VIEW'`,
+ );
+ await queryRunner.query(
+ `DROP TYPE "core"."pageLayoutWidget_type_enum_old"`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `CREATE TYPE "core"."pageLayoutWidget_type_enum_old" AS ENUM('VIEW', 'IFRAME', 'FIELD', 'FIELDS', 'GRAPH', 'STANDALONE_RICH_TEXT', 'TIMELINE', 'TASKS', 'NOTES', 'FILES', 'EMAILS', 'CALENDAR', 'FIELD_RICH_TEXT', 'WORKFLOW', 'WORKFLOW_VERSION', 'WORKFLOW_RUN', 'FRONT_COMPONENT')`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" DROP DEFAULT`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" TYPE "core"."pageLayoutWidget_type_enum_old" USING "type"::"text"::"core"."pageLayoutWidget_type_enum_old"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."pageLayoutWidget" ALTER COLUMN "type" SET DEFAULT 'VIEW'`,
+ );
+ await queryRunner.query(`DROP TYPE "core"."pageLayoutWidget_type_enum"`);
+ await queryRunner.query(
+ `ALTER TYPE "core"."pageLayoutWidget_type_enum_old" RENAME TO "pageLayoutWidget_type_enum"`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/engine/api/graphql/direct-execution/direct-execution.service.ts b/packages/twenty-server/src/engine/api/graphql/direct-execution/direct-execution.service.ts
index 0007fdc18bd..f4c56d0a916 100644
--- a/packages/twenty-server/src/engine/api/graphql/direct-execution/direct-execution.service.ts
+++ b/packages/twenty-server/src/engine/api/graphql/direct-execution/direct-execution.service.ts
@@ -280,7 +280,14 @@ export class DirectExecutionService {
);
}
- private formatError(error: any, req: Request): GraphQLFormattedError {
+ private formatError(error: unknown, req: Request): GraphQLFormattedError {
+ if (!(error instanceof Error)) {
+ return {
+ message: 'Internal server error',
+ extensions: { code: 'INTERNAL_SERVER_ERROR' },
+ };
+ }
+
try {
workspaceQueryRunnerGraphqlApiExceptionHandler(error);
} catch (graphqlError) {
@@ -301,9 +308,7 @@ export class DirectExecutionService {
}
return {
- message: isDefined(error.message)
- ? error.message
- : 'Internal server error',
+ message: error.message,
extensions: { code: 'INTERNAL_SERVER_ERROR' },
};
}
diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
index d5a0ffed7bc..c09ea57e670 100644
--- a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
+++ b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts
@@ -1,4 +1,4 @@
-import { type QueryFailedError } from 'typeorm';
+import { QueryFailedError } from 'typeorm';
import { CommonQueryRunnerException } from 'src/engine/api/common/common-query-runners/errors/common-query-runner.exception';
import { commonQueryRunnerToGraphqlApiExceptionHandler } from 'src/engine/api/common/common-query-runners/utils/common-query-runner-to-graphql-api-exception-handler.util';
@@ -23,12 +23,8 @@ import { twentyORMGraphqlApiExceptionHandler } from 'src/engine/twenty-orm/utils
import { WorkflowQueryValidationException } from 'src/modules/workflow/common/exceptions/workflow-query-validation.exception';
import { workflowQueryValidationGraphqlApiExceptionHandler } from 'src/modules/workflow/common/utils/workflow-query-validation-graphql-api-exception-handler.util';
-interface QueryFailedErrorWithCode extends QueryFailedError {
- code: string;
-}
-
export const workspaceQueryRunnerGraphqlApiExceptionHandler = (
- error: QueryFailedErrorWithCode,
+ error: Error | QueryFailedError,
) => {
switch (true) {
case error instanceof RecordTransformerException:
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/services/flat-page-layout-widget-type-validator.service.ts b/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/services/flat-page-layout-widget-type-validator.service.ts
index d5382a89746..635491a1843 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/services/flat-page-layout-widget-type-validator.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/services/flat-page-layout-widget-type-validator.service.ts
@@ -89,6 +89,9 @@ export class FlatPageLayoutWidgetTypeValidatorService {
WORKFLOW_RUN: validateSimpleRecordPageWidgetForCreation(
WidgetConfigurationType.WORKFLOW_RUN,
),
+ RECORD_TABLE: validateSimpleRecordPageWidgetForCreation(
+ WidgetConfigurationType.RECORD_TABLE,
+ ),
};
private readonly PAGE_LAYOUT_WIDGET_TYPE_VALIDATOR_FOR_UPDATE_HASHMAP: FlatPageLayoutWidgetTypeValidatorForUpdate =
@@ -137,6 +140,9 @@ export class FlatPageLayoutWidgetTypeValidatorService {
WORKFLOW_RUN: validateSimpleRecordPageWidgetForUpdate(
WidgetConfigurationType.WORKFLOW_RUN,
),
+ RECORD_TABLE: validateSimpleRecordPageWidgetForUpdate(
+ WidgetConfigurationType.RECORD_TABLE,
+ ),
};
public validateFlatPageLayoutWidgetTypeSpecificitiesForCreation(
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/utils/from-page-layout-widget-configuration-to-universal-configuration.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/utils/from-page-layout-widget-configuration-to-universal-configuration.util.ts
index a1c4f9e1987..419a92ff8fd 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/utils/from-page-layout-widget-configuration-to-universal-configuration.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-page-layout-widget/utils/from-page-layout-widget-configuration-to-universal-configuration.util.ts
@@ -299,6 +299,32 @@ export const fromPageLayoutWidgetConfigurationToUniversalConfiguration = ({
};
}
+ case WidgetConfigurationType.RECORD_TABLE: {
+ const { viewId, ...rest } = configuration;
+
+ let viewUniversalIdentifier: string | undefined = undefined;
+
+ if (isDefined(viewId)) {
+ viewUniversalIdentifier =
+ viewUniversalIdentifierById[viewId] ?? undefined;
+
+ if (
+ !isDefined(viewUniversalIdentifier) &&
+ shouldThrowOnMissingIdentifier
+ ) {
+ throw new FlatEntityMapsException(
+ `View universal identifier not found for id: ${viewId}`,
+ FlatEntityMapsExceptionCode.RELATION_UNIVERSAL_IDENTIFIER_NOT_FOUND,
+ );
+ }
+ }
+
+ return {
+ ...rest,
+ viewId: viewUniversalIdentifier,
+ };
+ }
+
case WidgetConfigurationType.FRONT_COMPONENT: {
const { frontComponentId, configurationType } = configuration;
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/constants/all-widget-configuration-type-validator-by-widget-configuration-type.constant.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/constants/all-widget-configuration-type-validator-by-widget-configuration-type.constant.ts
index 2e7d0f97e54..3d6d4f89f66 100644
--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/constants/all-widget-configuration-type-validator-by-widget-configuration-type.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/constants/all-widget-configuration-type-validator-by-widget-configuration-type.constant.ts
@@ -11,6 +11,7 @@ import { GaugeChartConfigurationDTO } from 'src/engine/metadata-modules/page-lay
import { IframeConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/iframe-configuration.dto';
import { LineChartConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/line-chart-configuration.dto';
import { NotesConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/notes-configuration.dto';
+import { RecordTableConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/record-table-configuration.dto';
import { PieChartConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/pie-chart-configuration.dto';
import { StandaloneRichTextConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/standalone-rich-text-configuration.dto';
import { TasksConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/tasks-configuration.dto';
@@ -42,6 +43,7 @@ export const ALL_WIDGET_CONFIGURATION_TYPE_VALIDATOR_BY_WIDGET_CONFIGURATION_TYP
TASKS: TasksConfigurationDTO,
TIMELINE: TimelineConfigurationDTO,
VIEW: ViewConfigurationDTO,
+ RECORD_TABLE: RecordTableConfigurationDTO,
WORKFLOW: WorkflowConfigurationDTO,
WORKFLOW_RUN: WorkflowRunConfigurationDTO,
WORKFLOW_VERSION: WorkflowVersionConfigurationDTO,
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/dtos/record-table-configuration.dto.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/dtos/record-table-configuration.dto.ts
new file mode 100644
index 00000000000..7fc6fca31f1
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/dtos/record-table-configuration.dto.ts
@@ -0,0 +1,19 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+import { IsIn, IsNotEmpty, IsOptional, IsUUID } from 'class-validator';
+import { type RecordTableConfiguration } from 'twenty-shared/types';
+
+import { WidgetConfigurationType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type';
+
+@ObjectType('RecordTableConfiguration')
+export class RecordTableConfigurationDTO implements RecordTableConfiguration {
+ @Field(() => WidgetConfigurationType)
+ @IsIn([WidgetConfigurationType.RECORD_TABLE])
+ @IsNotEmpty()
+ configurationType: WidgetConfigurationType.RECORD_TABLE;
+
+ @Field(() => String, { nullable: true })
+ @IsOptional()
+ @IsUUID()
+ viewId?: string;
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type.ts
index 5dc05dea9ea..6479cb378af 100644
--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type.ts
@@ -26,6 +26,7 @@ export enum WidgetConfigurationType {
WORKFLOW_VERSION = 'WORKFLOW_VERSION',
WORKFLOW_RUN = 'WORKFLOW_RUN',
FRONT_COMPONENT = 'FRONT_COMPONENT',
+ RECORD_TABLE = 'RECORD_TABLE',
}
export type AllGraphWidgetConfigurationType =
| WidgetConfigurationType.AGGREGATE_CHART
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum.ts
index 56e7fa1cc55..b50aa69af61 100644
--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/enums/widget-type.enum.ts
@@ -16,4 +16,5 @@ export enum WidgetType {
WORKFLOW_VERSION = 'WORKFLOW_VERSION',
WORKFLOW_RUN = 'WORKFLOW_RUN',
FRONT_COMPONENT = 'FRONT_COMPONENT',
+ RECORD_TABLE = 'RECORD_TABLE',
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/utils/validate-widget-configuration-input.util.ts b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/utils/validate-widget-configuration-input.util.ts
index 586b1b9bb63..2dd2cecf4cc 100644
--- a/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/utils/validate-widget-configuration-input.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/page-layout-widget/utils/validate-widget-configuration-input.util.ts
@@ -7,6 +7,7 @@ import { GaugeChartConfigurationDTO } from 'src/engine/metadata-modules/page-lay
import { IframeConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/iframe-configuration.dto';
import { LineChartConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/line-chart-configuration.dto';
import { PieChartConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/pie-chart-configuration.dto';
+import { RecordTableConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/record-table-configuration.dto';
import { StandaloneRichTextConfigurationDTO } from 'src/engine/metadata-modules/page-layout-widget/dtos/standalone-rich-text-configuration.dto';
import { WidgetConfigurationType } from 'src/engine/metadata-modules/page-layout-widget/enums/widget-configuration-type.type';
import {
@@ -120,6 +121,12 @@ export const validateWidgetConfigurationInput = ({
configuration,
);
break;
+ case WidgetConfigurationType.RECORD_TABLE:
+ errors = validateWidgetConfigurationByDto(
+ RecordTableConfigurationDTO,
+ configuration,
+ );
+ break;
case WidgetConfigurationType.VIEW:
throw new PageLayoutWidgetException(
'View configuration is not supported yet',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
index 39703abb63e..a5006db8742 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
@@ -451,7 +451,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {
isPinned: true,
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
- 'pageType == "RECORD_PAGE" and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "pageLayoutId") and objectPermissions.canUpdateObjectRecords',
+ 'pageType == "RECORD_PAGE" and not isPageInEditMode and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "pageLayoutId") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.dashboard.universalIdentifier,
frontComponentUniversalIdentifier: null,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts
index 65a60261daa..cbe69e74299 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-widget/build-standard-flat-page-layout-widget-metadata-maps.util.ts
@@ -60,6 +60,7 @@ const WIDGET_TYPE_TO_CONFIGURATION_TYPE: Partial<
[WidgetType.WORKFLOW]: WidgetConfigurationType.WORKFLOW,
[WidgetType.WORKFLOW_VERSION]: WidgetConfigurationType.WORKFLOW_VERSION,
[WidgetType.WORKFLOW_RUN]: WidgetConfigurationType.WORKFLOW_RUN,
+ [WidgetType.RECORD_TABLE]: WidgetConfigurationType.RECORD_TABLE,
};
const RECORD_PAGE_FIELDS_VIEW_NAME_BY_OBJECT: Partial<
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/page-layout-widget/services/utils/from-universal-configuration-to-flat-page-layout-widget-configuration.util.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/page-layout-widget/services/utils/from-universal-configuration-to-flat-page-layout-widget-configuration.util.ts
index d26ad8d7634..b3a0d535dbb 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/page-layout-widget/services/utils/from-universal-configuration-to-flat-page-layout-widget-configuration.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/page-layout-widget/services/utils/from-universal-configuration-to-flat-page-layout-widget-configuration.util.ts
@@ -282,6 +282,31 @@ export const fromUniversalConfigurationToFlatPageLayoutWidgetConfiguration = ({
return { ...rest, viewId, newFieldDefaultVisibility };
}
+ case WidgetConfigurationType.RECORD_TABLE: {
+ const { viewId: viewUniversalIdentifier, ...rest } =
+ universalConfiguration;
+
+ let viewId: string | undefined = undefined;
+
+ if (isDefined(viewUniversalIdentifier)) {
+ const flatView = findFlatEntityByUniversalIdentifier({
+ flatEntityMaps: flatViewMaps,
+ universalIdentifier: viewUniversalIdentifier,
+ });
+
+ if (!isDefined(flatView)) {
+ throw new FlatEntityMapsException(
+ `View not found for universal identifier: ${viewUniversalIdentifier}`,
+ FlatEntityMapsExceptionCode.ENTITY_NOT_FOUND,
+ );
+ }
+
+ viewId = flatView.id;
+ }
+
+ return { ...rest, viewId };
+ }
+
case WidgetConfigurationType.FRONT_COMPONENT: {
const { frontComponentUniversalIdentifier, configurationType } =
universalConfiguration;
diff --git a/packages/twenty-shared/src/types/SidePanelPages.ts b/packages/twenty-shared/src/types/SidePanelPages.ts
index 279341903a8..358c8d784d9 100644
--- a/packages/twenty-shared/src/types/SidePanelPages.ts
+++ b/packages/twenty-shared/src/types/SidePanelPages.ts
@@ -21,6 +21,7 @@ export enum SidePanelPages {
PageLayoutIframeSettings = 'page-layout-iframe-settings',
PageLayoutTabSettings = 'page-layout-tab-settings',
PageLayoutFieldsSettings = 'page-layout-fields-settings',
+ PageLayoutRecordTableSettings = 'page-layout-record-table-settings',
ViewFrontComponent = 'view-front-component',
NavigationMenuItemEdit = 'navigation-menu-item-edit',
NavigationMenuAddItem = 'navigation-menu-add-item',
diff --git a/packages/twenty-shared/src/types/index.ts b/packages/twenty-shared/src/types/index.ts
index bb5d483b9a0..d4de7206aa4 100644
--- a/packages/twenty-shared/src/types/index.ts
+++ b/packages/twenty-shared/src/types/index.ts
@@ -174,6 +174,7 @@ export type {
BarChartConfiguration,
LineChartConfiguration,
ViewConfiguration,
+ RecordTableConfiguration,
FieldConfiguration,
FieldsConfiguration,
FieldRichTextConfiguration,
diff --git a/packages/twenty-shared/src/types/page-layout/page-layout-widget-configuration.type.ts b/packages/twenty-shared/src/types/page-layout/page-layout-widget-configuration.type.ts
index a89d55a02d8..5b53f1cf373 100644
--- a/packages/twenty-shared/src/types/page-layout/page-layout-widget-configuration.type.ts
+++ b/packages/twenty-shared/src/types/page-layout/page-layout-widget-configuration.type.ts
@@ -91,6 +91,11 @@ export type ViewConfiguration = {
configurationType: 'VIEW';
};
+export type RecordTableConfiguration = {
+ configurationType: 'RECORD_TABLE';
+ viewId?: string;
+};
+
export type FieldConfiguration = {
configurationType: 'FIELD';
fieldMetadataId: string;
@@ -169,6 +174,7 @@ export type PageLayoutWidgetConfiguration =
| BarChartConfiguration
| LineChartConfiguration
| ViewConfiguration
+ | RecordTableConfiguration
| FieldConfiguration
| FieldsConfiguration
| FieldRichTextConfiguration