Skip to content

The open alternative to Salesforce, designed for AI.

fix(twenty-ui): keep IconButton tooltips on hover after loading or disabled changes (#26710)

martmull717392981476
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 12fb3b96db1..3649d0563ef 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -413,6 +413,7 @@ type WorkspaceMember {
dateFormat: WorkspaceMemberDateFormatEnum
timeFormat: WorkspaceMemberTimeFormatEnum
roles: [Role!]
+ userId: UUID!
userWorkspaceId: UUID
numberFormat: WorkspaceMemberNumberFormatEnum
}
@@ -2067,6 +2068,7 @@ enum FeatureFlagKey {
IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED
IS_EXECUTION_QUOTA_ENABLED
IS_RECORD_CREATION_FORM_ENABLED
+ IS_LOGS_SETTINGS_SECTION_ENABLED
}
type WorkspaceUrls {
@@ -4033,6 +4035,7 @@ input EventLogFiltersInput {
dateRange: EventLogDateRangeInput
recordId: String
objectMetadataId: String
+ fieldFilters: [EventLogFieldFilterInput!]
}
input EventLogDateRangeInput {
@@ -4040,6 +4043,17 @@ input EventLogDateRangeInput {
end: DateTime
}
+input EventLogFieldFilterInput {
+ field: String!
+ operand: EventLogFilterOperand!
+ values: [String!]!
+}
+
+enum EventLogFilterOperand {
+ IS
+ IS_NOT
+}
+
input PieChartDataInput {
objectMetadataId: UUID!
configuration: JSON!
@@ -5682,7 +5696,7 @@ type Subscription {
onEventSubscription(eventStreamId: String!): EventSubscription
logicFunctionLogs(input: LogicFunctionLogsInput!): LogicFunctionLogs!
onAgentChatEvent(threadId: UUID!): AgentChatEvent!
- eventLogsLive(table: EventLogTable!): [EventLogRecord!]
+ eventLogsLive(table: EventLogTable!, fieldFilters: [EventLogFieldFilterInput!]): [EventLogRecord!]
exportRecords(input: CreateRecordExportInput!): RecordExport!
}
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 5503cd16422..65f6f7a4095 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -253,6 +253,7 @@ export interface WorkspaceMember {
dateFormat?: WorkspaceMemberDateFormatEnum
timeFormat?: WorkspaceMemberTimeFormatEnum
roles?: Role[]
+ userId: Scalars['UUID']
userWorkspaceId?: Scalars['UUID']
numberFormat?: WorkspaceMemberNumberFormatEnum
__typename: 'WorkspaceMember'
@@ -1669,7 +1670,7 @@ export interface FeatureFlag {
__typename: 'FeatureFlag'
}
-export type FeatureFlagKey = 'IS_ASYNC_CSV_EXPORT_ENABLED' | 'IS_UNIQUE_INDEXES_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_MESSAGE_CAMPAIGN_ENABLED' | 'IS_JUNCTION_RELATIONS_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT' | 'IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED' | 'IS_WORKFLOW_CORE_INDEX_PAGE_ENABLED' | 'IS_RECORD_SHARING_ENABLED' | 'IS_AI_CHAT_SHARING_DROPDOWN_ENABLED' | 'IS_INITIAL_OBJECT_VIEW_ENABLED' | 'IS_WEBHOOK_RATE_LIMIT_ENABLED' | 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED' | 'IS_EXECUTION_QUOTA_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED'
+export type FeatureFlagKey = 'IS_ASYNC_CSV_EXPORT_ENABLED' | 'IS_UNIQUE_INDEXES_ENABLED' | 'IS_CONFIGURABLE_SEARCH_FIELDS_ENABLED' | 'IS_JSON_FILTER_ENABLED' | 'IS_MESSAGE_CAMPAIGN_ENABLED' | 'IS_JUNCTION_RELATIONS_ENABLED' | 'IS_REST_METADATA_API_NEW_FORMAT_DIRECT' | 'IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED' | 'IS_WORKFLOW_CORE_INDEX_PAGE_ENABLED' | 'IS_RECORD_SHARING_ENABLED' | 'IS_AI_CHAT_SHARING_DROPDOWN_ENABLED' | 'IS_INITIAL_OBJECT_VIEW_ENABLED' | 'IS_WEBHOOK_RATE_LIMIT_ENABLED' | 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED' | 'IS_EXECUTION_QUOTA_ENABLED' | 'IS_RECORD_CREATION_FORM_ENABLED' | 'IS_LOGS_SETTINGS_SECTION_ENABLED'
export interface WorkspaceUrls {
customUrl?: Scalars['String']
@@ -3459,6 +3460,8 @@ export interface Query {
export type EventLogTable = 'WORKSPACE_EVENT' | 'PAGEVIEW' | 'OBJECT_EVENT' | 'USAGE_EVENT' | 'APPLICATION_LOG'
+export type EventLogFilterOperand = 'IS' | 'IS_NOT'
+
export interface Mutation {
addQueryToEventStream: Scalars['Boolean']
removeQueryFromEventStream: Scalars['Boolean']
@@ -4030,6 +4033,7 @@ export interface WorkspaceMemberGenqlSelection{
dateFormat?: boolean | number
timeFormat?: boolean | number
roles?: RoleGenqlSelection
+ userId?: boolean | number
userWorkspaceId?: boolean | number
numberFormat?: boolean | number
__typename?: boolean | number
@@ -7394,10 +7398,12 @@ export interface RecordPermissionsTargetInput {objectMetadataId: Scalars['UUID']
export interface EventLogQueryInput {table: EventLogTable,filters?: (EventLogFiltersInput | null),first?: (Scalars['Int'] | null),after?: (Scalars['String'] | null)}
-export interface EventLogFiltersInput {eventType?: (Scalars['String'] | null),userWorkspaceId?: (Scalars['String'] | null),dateRange?: (EventLogDateRangeInput | null),recordId?: (Scalars['String'] | null),objectMetadataId?: (Scalars['String'] | null)}
+export interface EventLogFiltersInput {eventType?: (Scalars['String'] | null),userWorkspaceId?: (Scalars['String'] | null),dateRange?: (EventLogDateRangeInput | null),recordId?: (Scalars['String'] | null),objectMetadataId?: (Scalars['String'] | null),fieldFilters?: (EventLogFieldFilterInput[] | null)}
export interface EventLogDateRangeInput {start?: (Scalars['DateTime'] | null),end?: (Scalars['DateTime'] | null)}
+export interface EventLogFieldFilterInput {field: Scalars['String'],operand: EventLogFilterOperand,values: Scalars['String'][]}
+
export interface PieChartDataInput {objectMetadataId: Scalars['UUID'],configuration: Scalars['JSON']}
export interface LineChartDataInput {objectMetadataId: Scalars['UUID'],configuration: Scalars['JSON']}
@@ -8129,7 +8135,7 @@ export interface SubscriptionGenqlSelection{
onEventSubscription?: (EventSubscriptionGenqlSelection & { __args: {eventStreamId: Scalars['String']} })
logicFunctionLogs?: (LogicFunctionLogsGenqlSelection & { __args: {input: LogicFunctionLogsInput} })
onAgentChatEvent?: (AgentChatEventGenqlSelection & { __args: {threadId: Scalars['UUID']} })
- eventLogsLive?: (EventLogRecordGenqlSelection & { __args: {table: EventLogTable} })
+ eventLogsLive?: (EventLogRecordGenqlSelection & { __args: {table: EventLogTable, fieldFilters?: (EventLogFieldFilterInput[] | null)} })
exportRecords?: (RecordExportGenqlSelection & { __args: {input: CreateRecordExportInput} })
__typename?: boolean | number
__scalar?: boolean | number
@@ -11203,7 +11209,8 @@ export const enumFeatureFlagKey = {
IS_WEBHOOK_RATE_LIMIT_ENABLED: 'IS_WEBHOOK_RATE_LIMIT_ENABLED' as const,
IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED: 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED' as const,
IS_EXECUTION_QUOTA_ENABLED: 'IS_EXECUTION_QUOTA_ENABLED' as const,
- IS_RECORD_CREATION_FORM_ENABLED: 'IS_RECORD_CREATION_FORM_ENABLED' as const
+ IS_RECORD_CREATION_FORM_ENABLED: 'IS_RECORD_CREATION_FORM_ENABLED' as const,
+ IS_LOGS_SETTINGS_SECTION_ENABLED: 'IS_LOGS_SETTINGS_SECTION_ENABLED' as const
}
export const enumIdentityProviderType = {
@@ -11514,6 +11521,11 @@ export const enumEventLogTable = {
APPLICATION_LOG: 'APPLICATION_LOG' as const
}
+export const enumEventLogFilterOperand = {
+ IS: 'IS' as const,
+ IS_NOT: 'IS_NOT' as const
+}
+
export const enumMessageParticipantRole = {
FROM: 'FROM' as const,
TO: 'TO' as const,
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 68ca6c428d4..77105004182 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -103,10 +103,11 @@ export default {
406,
412,
431,
- 444,
- 565,
- 569,
- 596
+ 435,
+ 446,
+ 567,
+ 571,
+ 598
],
"types": {
"BillingProductDTO": {
@@ -848,6 +849,9 @@ export default {
"roles": [
50
],
+ "userId": [
+ 3
+ ],
"userWorkspaceId": [
3
],
@@ -8313,7 +8317,7 @@ export default {
370,
{
"input": [
- 434,
+ 436,
"PieChartDataInput!"
]
}
@@ -8322,7 +8326,7 @@ export default {
368,
{
"input": [
- 435,
+ 437,
"LineChartDataInput!"
]
}
@@ -8331,7 +8335,7 @@ export default {
365,
{
"input": [
- 436,
+ 438,
"BarChartDataInput!"
]
}
@@ -8639,6 +8643,9 @@ export default {
"objectMetadataId": [
1
],
+ "fieldFilters": [
+ 434
+ ],
"__typename": [
1
]
@@ -8654,6 +8661,21 @@ export default {
1
]
},
+ "EventLogFieldFilterInput": {
+ "field": [
+ 1
+ ],
+ "operand": [
+ 435
+ ],
+ "values": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "EventLogFilterOperand": {},
"PieChartDataInput": {
"objectMetadataId": [
3
@@ -8692,7 +8714,7 @@ export default {
8,
{
"input": [
- 438,
+ 440,
"AddQuerySubscriptionInput!"
]
}
@@ -8701,7 +8723,7 @@ export default {
8,
{
"input": [
- 439,
+ 441,
"RemoveQueryFromEventStreamInput!"
]
}
@@ -8714,7 +8736,7 @@ export default {
"RecordSharingTargetInput!"
],
"principal": [
- 440,
+ 442,
"RecordSharePrincipalInput!"
],
"enabled": [
@@ -8730,7 +8752,7 @@ export default {
164,
{
"inputs": [
- 441,
+ 443,
"[CreateNavigationMenuItemInput!]!"
]
}
@@ -8739,7 +8761,7 @@ export default {
164,
{
"input": [
- 441,
+ 443,
"CreateNavigationMenuItemInput!"
]
}
@@ -8748,7 +8770,7 @@ export default {
164,
{
"inputs": [
- 442,
+ 444,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -8757,7 +8779,7 @@ export default {
164,
{
"input": [
- 442,
+ 444,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -8831,7 +8853,7 @@ export default {
161,
{
"file": [
- 444,
+ 446,
"Upload!"
]
}
@@ -8840,7 +8862,7 @@ export default {
161,
{
"file": [
- 444,
+ 446,
"Upload!"
]
}
@@ -8867,7 +8889,7 @@ export default {
161,
{
"file": [
- 444,
+ 446,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -8880,7 +8902,7 @@ export default {
160,
{
"input": [
- 445,
+ 447,
"CreateUsageLimitInput!"
]
}
@@ -8889,7 +8911,7 @@ export default {
160,
{
"input": [
- 446,
+ 448,
"UpdateUsageLimitInput!"
]
}
@@ -8907,7 +8929,7 @@ export default {
57,
{
"input": [
- 447,
+ 449,
"CreateViewFilterGroupInput!"
]
}
@@ -8920,7 +8942,7 @@ export default {
"String!"
],
"input": [
- 448,
+ 450,
"UpdateViewFilterGroupInput!"
]
}
@@ -8947,7 +8969,7 @@ export default {
59,
{
"input": [
- 449,
+ 451,
"CreateViewFilterInput!"
]
}
@@ -8956,7 +8978,7 @@ export default {
59,
{
"input": [
- 450,
+ 452,
"UpdateViewFilterInput!"
]
}
@@ -8965,7 +8987,7 @@ export default {
59,
{
"input": [
- 452,
+ 454,
"DeleteViewFilterInput!"
]
}
@@ -8974,7 +8996,7 @@ export default {
59,
{
"input": [
- 453,
+ 455,
"DestroyViewFilterInput!"
]
}
@@ -8983,7 +9005,7 @@ export default {
65,
{
"input": [
- 454,
+ 456,
"CreateViewInput!"
]
}
@@ -8996,7 +9018,7 @@ export default {
"String!"
],
"input": [
- 455,
+ 457,
"UpdateViewInput!"
]
}
@@ -9023,7 +9045,7 @@ export default {
65,
{
"input": [
- 456,
+ 458,
"UpsertViewWidgetInput!"
]
}
@@ -9032,7 +9054,7 @@ export default {
62,
{
"input": [
- 462,
+ 464,
"CreateViewSortInput!"
]
}
@@ -9041,7 +9063,7 @@ export default {
62,
{
"input": [
- 463,
+ 465,
"UpdateViewSortInput!"
]
}
@@ -9050,7 +9072,7 @@ export default {
8,
{
"input": [
- 465,
+ 467,
"DeleteViewSortInput!"
]
}
@@ -9059,7 +9081,7 @@ export default {
8,
{
"input": [
- 466,
+ 468,
"DestroyViewSortInput!"
]
}
@@ -9068,7 +9090,7 @@ export default {
55,
{
"input": [
- 467,
+ 469,
"UpdateViewFieldInput!"
]
}
@@ -9077,7 +9099,7 @@ export default {
55,
{
"input": [
- 469,
+ 471,
"CreateViewFieldInput!"
]
}
@@ -9086,7 +9108,7 @@ export default {
55,
{
"inputs": [
- 469,
+ 471,
"[CreateViewFieldInput!]!"
]
}
@@ -9095,7 +9117,7 @@ export default {
55,
{
"input": [
- 470,
+ 472,
"DeleteViewFieldInput!"
]
}
@@ -9104,7 +9126,7 @@ export default {
55,
{
"input": [
- 471,
+ 473,
"DestroyViewFieldInput!"
]
}
@@ -9113,7 +9135,7 @@ export default {
64,
{
"input": [
- 472,
+ 474,
"UpdateViewFieldGroupInput!"
]
}
@@ -9122,7 +9144,7 @@ export default {
64,
{
"input": [
- 474,
+ 476,
"CreateViewFieldGroupInput!"
]
}
@@ -9131,7 +9153,7 @@ export default {
64,
{
"inputs": [
- 474,
+ 476,
"[CreateViewFieldGroupInput!]!"
]
}
@@ -9140,7 +9162,7 @@ export default {
64,
{
"input": [
- 475,
+ 477,
"DeleteViewFieldGroupInput!"
]
}
@@ -9149,7 +9171,7 @@ export default {
64,
{
"input": [
- 476,
+ 478,
"DestroyViewFieldGroupInput!"
]
}
@@ -9158,7 +9180,7 @@ export default {
65,
{
"input": [
- 477,
+ 479,
"UpsertFieldsWidgetInput!"
]
}
@@ -9167,7 +9189,7 @@ export default {
2,
{
"input": [
- 480,
+ 482,
"CreateApiKeyInput!"
]
}
@@ -9176,7 +9198,7 @@ export default {
2,
{
"input": [
- 481,
+ 483,
"UpdateApiKeyInput!"
]
}
@@ -9185,7 +9207,7 @@ export default {
2,
{
"input": [
- 482,
+ 484,
"RevokeApiKeyInput!"
]
}
@@ -9395,7 +9417,7 @@ export default {
192,
{
"input": [
- 483,
+ 485,
"CreateApprovedAccessDomainInput!"
]
}
@@ -9404,7 +9426,7 @@ export default {
8,
{
"input": [
- 484,
+ 486,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -9413,7 +9435,7 @@ export default {
192,
{
"input": [
- 485,
+ 487,
"ValidateApprovedAccessDomainInput!"
]
}
@@ -9422,7 +9444,7 @@ export default {
144,
{
"input": [
- 486,
+ 488,
"CreatePageLayoutTabInput!"
]
}
@@ -9435,7 +9457,7 @@ export default {
"String!"
],
"input": [
- 487,
+ 489,
"UpdatePageLayoutTabInput!"
]
}
@@ -9453,7 +9475,7 @@ export default {
145,
{
"input": [
- 488,
+ 490,
"CreatePageLayoutInput!"
]
}
@@ -9466,7 +9488,7 @@ export default {
"String!"
],
"input": [
- 489,
+ 491,
"UpdatePageLayoutInput!"
]
}
@@ -9488,7 +9510,7 @@ export default {
"String!"
],
"input": [
- 490,
+ 492,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -9524,7 +9546,7 @@ export default {
100,
{
"input": [
- 493,
+ 495,
"CreatePageLayoutWidgetInput!"
]
}
@@ -9537,7 +9559,7 @@ export default {
"String!"
],
"input": [
- 494,
+ 496,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -9555,7 +9577,7 @@ export default {
10,
{
"input": [
- 495,
+ 497,
"CreateAgentInput!"
]
}
@@ -9564,7 +9586,7 @@ export default {
10,
{
"input": [
- 496,
+ 498,
"UpdateAgentInput!"
]
}
@@ -9582,7 +9604,7 @@ export default {
25,
{
"input": [
- 497,
+ 499,
"CreateOneObjectInput!"
]
}
@@ -9591,7 +9613,7 @@ export default {
25,
{
"input": [
- 499,
+ 501,
"DeleteOneObjectInput!"
]
}
@@ -9600,7 +9622,7 @@ export default {
25,
{
"input": [
- 500,
+ 502,
"UpdateOneObjectInput!"
]
}
@@ -9609,7 +9631,7 @@ export default {
25,
{
"inputs": [
- 500,
+ 502,
"[UpdateOneObjectInput!]!"
]
}
@@ -9618,7 +9640,7 @@ export default {
270,
{
"input": [
- 503,
+ 505,
"CreateOneIndexInput!"
]
}
@@ -9627,7 +9649,7 @@ export default {
270,
{
"input": [
- 506,
+ 508,
"DeleteOneIndexInput!"
]
}
@@ -9645,7 +9667,7 @@ export default {
23,
{
"input": [
- 507,
+ 509,
"CreateLogicFunctionFromSourceInput!"
]
}
@@ -9654,7 +9676,7 @@ export default {
149,
{
"input": [
- 508,
+ 510,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -9663,7 +9685,7 @@ export default {
8,
{
"input": [
- 509,
+ 511,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -9672,7 +9694,7 @@ export default {
14,
{
"input": [
- 511,
+ 513,
"CreateCommandMenuItemInput!"
]
}
@@ -9681,7 +9703,7 @@ export default {
14,
{
"input": [
- 512,
+ 514,
"UpdateCommandMenuItemInput!"
]
}
@@ -9717,7 +9739,7 @@ export default {
13,
{
"input": [
- 513,
+ 515,
"CreateFrontComponentInput!"
]
}
@@ -9726,7 +9748,7 @@ export default {
13,
{
"input": [
- 514,
+ 516,
"UpdateFrontComponentInput!"
]
}
@@ -9744,7 +9766,7 @@ export default {
71,
{
"data": [
- 516,
+ 518,
"ActivateWorkspaceInput!"
]
}
@@ -9753,7 +9775,7 @@ export default {
71,
{
"data": [
- 517,
+ 519,
"UpdateWorkspaceInput!"
]
}
@@ -9762,7 +9784,7 @@ export default {
71,
{
"data": [
- 518,
+ 520,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
@@ -9793,7 +9815,7 @@ export default {
234,
{
"input": [
- 519,
+ 521,
"CreateApplicationRegistrationInput!"
]
}
@@ -9802,7 +9824,7 @@ export default {
78,
{
"input": [
- 520,
+ 522,
"UpdateApplicationRegistrationInput!"
]
}
@@ -9829,7 +9851,7 @@ export default {
206,
{
"input": [
- 522,
+ 524,
"CreateApplicationRegistrationVariableInput!"
]
}
@@ -9838,7 +9860,7 @@ export default {
206,
{
"input": [
- 523,
+ 525,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -9865,7 +9887,7 @@ export default {
78,
{
"file": [
- 444,
+ 446,
"Upload!"
],
"universalIdentifier": [
@@ -9899,7 +9921,7 @@ export default {
258,
{
"input": [
- 525,
+ 527,
"GrantApplicationCapabilitiesInput!"
]
}
@@ -9932,7 +9954,7 @@ export default {
256,
{
"input": [
- 526,
+ 528,
"TriggerInstallApplicationJobInput!"
]
}
@@ -9941,7 +9963,7 @@ export default {
257,
{
"input": [
- 527,
+ 529,
"TriggerUninstallApplicationJobInput!"
]
}
@@ -9954,7 +9976,7 @@ export default {
"UUID!"
],
"input": [
- 528,
+ 530,
"UpdateApplicationInput!"
]
}
@@ -9984,7 +10006,7 @@ export default {
262,
{
"input": [
- 529,
+ 531,
"CreateOneFieldMetadataInput!"
]
}
@@ -9993,7 +10015,7 @@ export default {
262,
{
"input": [
- 531,
+ 533,
"UpdateOneFieldMetadataInput!"
]
}
@@ -10002,7 +10024,7 @@ export default {
262,
{
"input": [
- 533,
+ 535,
"DeleteOneFieldInput!"
]
}
@@ -10011,7 +10033,7 @@ export default {
61,
{
"input": [
- 534,
+ 536,
"CreateViewGroupInput!"
]
}
@@ -10020,7 +10042,7 @@ export default {
61,
{
"inputs": [
- 534,
+ 536,
"[CreateViewGroupInput!]!"
]
}
@@ -10029,7 +10051,7 @@ export default {
61,
{
"input": [
- 535,
+ 537,
"UpdateViewGroupInput!"
]
}
@@ -10038,7 +10060,7 @@ export default {
61,
{
"inputs": [
- 535,
+ 537,
"[UpdateViewGroupInput!]!"
]
}
@@ -10047,7 +10069,7 @@ export default {
61,
{
"input": [
- 537,
+ 539,
"DeleteViewGroupInput!"
]
}
@@ -10056,7 +10078,7 @@ export default {
61,
{
"input": [
- 538,
+ 540,
"DestroyViewGroupInput!"
]
}
@@ -10078,7 +10100,7 @@ export default {
50,
{
"createRoleInput": [
- 539,
+ 541,
"CreateRoleInput!"
]
}
@@ -10087,7 +10109,7 @@ export default {
50,
{
"updateRoleInput": [
- 540,
+ 542,
"UpdateRoleInput!"
]
}
@@ -10105,7 +10127,7 @@ export default {
47,
{
"upsertObjectPermissionsInput": [
- 542,
+ 544,
"UpsertObjectPermissionsInput!"
]
}
@@ -10114,7 +10136,7 @@ export default {
48,
{
"upsertPermissionFlagsInput": [
- 544,
+ 546,
"UpsertPermissionFlagsInput!"
]
}
@@ -10123,7 +10145,7 @@ export default {
42,
{
"upsertFieldPermissionsInput": [
- 545,
+ 547,
"UpsertFieldPermissionsInput!"
]
}
@@ -10132,7 +10154,7 @@ export default {
283,
{
"input": [
- 547,
+ 549,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -10163,7 +10185,7 @@ export default {
343,
{
"input": [
- 550,
+ 552,
"SendMessageCampaignInput!"
]
}
@@ -10172,7 +10194,7 @@ export default {
341,
{
"input": [
- 551,
+ 553,
"CancelMessageCampaignInput!"
]
}
@@ -10181,7 +10203,7 @@ export default {
342,
{
"input": [
- 552,
+ 554,
"SendMessageCampaignTestInput!"
]
}
@@ -10199,7 +10221,7 @@ export default {
345,
{
"input": [
- 553,
+ 555,
"CreateMessageSuppressionInput!"
]
}
@@ -10217,7 +10239,7 @@ export default {
349,
{
"input": [
- 554,
+ 556,
"CreateUnsubscribeTopicInput!"
]
}
@@ -10226,7 +10248,7 @@ export default {
349,
{
"input": [
- 555,
+ 557,
"UpdateUnsubscribeTopicInput!"
]
}
@@ -10244,7 +10266,7 @@ export default {
329,
{
"input": [
- 556,
+ 558,
"UpdateMessageChannelInput!"
]
}
@@ -10253,7 +10275,7 @@ export default {
339,
{
"input": [
- 558,
+ 560,
"CreateEmailGroupChannelInput!"
]
}
@@ -10262,7 +10284,7 @@ export default {
329,
{
"input": [
- 559,
+ 561,
"UpdateEmailGroupChannelInput!"
]
}
@@ -10280,7 +10302,7 @@ export default {
329,
{
"input": [
- 560,
+ 562,
"CreateAppMessageChannelInput!"
]
}
@@ -10289,7 +10311,7 @@ export default {
329,
{
"input": [
- 561,
+ 563,
"UpdateAppMessageChannelInput!"
]
}
@@ -10307,7 +10329,7 @@ export default {
338,
{
"input": [
- 562,
+ 564,
"IngestAppMessagesInput!"
]
}
@@ -10316,7 +10338,7 @@ export default {
325,
{
"input": [
- 566,
+ 568,
"CreateEmailingDomainInput!"
]
}
@@ -10343,7 +10365,7 @@ export default {
361,
{
"input": [
- 567,
+ 569,
"RunAgentInput!"
]
}
@@ -10352,7 +10374,7 @@ export default {
358,
{
"input": [
- 571,
+ 573,
"CreateWebhookInput!"
]
}
@@ -10361,7 +10383,7 @@ export default {
358,
{
"input": [
- 572,
+ 574,
"UpdateWebhookInput!"
]
}
@@ -10379,7 +10401,7 @@ export default {
403,
{
"input": [
- 574,
+ 576,
"UpdateMessageFolderInput!"
]
}
@@ -10388,7 +10410,7 @@ export default {
403,
{
"input": [
- 576,
+ 578,
"UpdateMessageFoldersInput!"
]
}
@@ -10397,7 +10419,7 @@ export default {
398,
{
"input": [
- 577,
+ 579,
"UpdateCalendarChannelInput!"
]
}
@@ -10406,7 +10428,7 @@ export default {
396,
{
"input": [
- 579,
+ 581,
"SetAppKeyValueInput!"
]
}
@@ -10427,7 +10449,7 @@ export default {
394,
{
"input": [
- 580,
+ 582,
"EnqueueJobInput!"
]
}
@@ -10436,7 +10458,7 @@ export default {
395,
{
"input": [
- 581,
+ 583,
"EnqueueJobsInput!"
]
}
@@ -10445,7 +10467,7 @@ export default {
8,
{
"input": [
- 583,
+ 585,
"ReportAppConnectionAuthFailureInput!"
]
}
@@ -10509,7 +10531,7 @@ export default {
1
],
"fileAttachments": [
- 584,
+ 586,
"[FileAttachmentInput!]"
]
}
@@ -10538,14 +10560,14 @@ export default {
"UUID!"
],
"answers": [
- 585,
+ 587,
"[AgentChatQuestionAnswerInput!]!"
],
"modelId": [
1
],
"fileAttachments": [
- 584,
+ 586,
"[FileAttachmentInput!]"
]
}
@@ -10623,7 +10645,7 @@ export default {
379,
{
"input": [
- 586,
+ 588,
"CreateSkillInput!"
]
}
@@ -10632,7 +10654,7 @@ export default {
379,
{
"input": [
- 587,
+ 589,
"UpdateSkillInput!"
]
}
@@ -10690,7 +10712,7 @@ export default {
409,
{
"input": [
- 588,
+ 590,
"UpdateTimelineActivityTypeInput!"
]
}
@@ -10708,7 +10730,7 @@ export default {
292,
{
"input": [
- 589,
+ 591,
"GetAuthorizationUrlForSSOInput!"
]
}
@@ -10874,7 +10896,7 @@ export default {
295,
{
"input": [
- 590
+ 592
]
}
],
@@ -10886,7 +10908,7 @@ export default {
"String!"
],
"file": [
- 444,
+ 446,
"Upload!"
]
}
@@ -11082,7 +11104,7 @@ export default {
8,
{
"input": [
- 591,
+ 593,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -11116,7 +11138,7 @@ export default {
243,
{
"input": [
- 592,
+ 594,
"SetupOIDCSsoInput!"
]
}
@@ -11125,7 +11147,7 @@ export default {
243,
{
"input": [
- 593,
+ 595,
"SetupSAMLSsoInput!"
]
}
@@ -11134,7 +11156,7 @@ export default {
239,
{
"input": [
- 594,
+ 596,
"DeleteSsoInput!"
]
}
@@ -11143,7 +11165,7 @@ export default {
240,
{
"input": [
- 595,
+ 597,
"EditSsoInput!"
]
}
@@ -11172,7 +11194,7 @@ export default {
373,
{
"type": [
- 596,
+ 598,
"AnalyticsType!"
],
"name": [
@@ -11215,7 +11237,7 @@ export default {
363,
{
"input": [
- 597,
+ 599,
"CreateCalendarEventInput!"
]
}
@@ -11224,7 +11246,7 @@ export default {
372,
{
"input": [
- 598,
+ 600,
"SendEmailInput!"
]
}
@@ -11246,7 +11268,7 @@ export default {
"String!"
],
"connectionParameters": [
- 600,
+ 602,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -11258,7 +11280,7 @@ export default {
203,
{
"input": [
- 602,
+ 604,
"UpdateLabPublicFeatureFlagInput!"
]
}
@@ -11326,7 +11348,7 @@ export default {
314,
{
"file": [
- 444,
+ 446,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -11351,7 +11373,7 @@ export default {
"String!"
],
"files": [
- 603,
+ 605,
"[ApplicationFileUploadRequestInput!]!"
]
}
@@ -11479,7 +11501,7 @@ export default {
3
],
"update": [
- 443
+ 445
],
"__typename": [
1
@@ -11552,7 +11574,7 @@ export default {
3
],
"payload": [
- 445
+ 447
],
"__typename": [
1
@@ -11635,7 +11657,7 @@ export default {
3
],
"update": [
- 451
+ 453
],
"__typename": [
1
@@ -11812,19 +11834,19 @@ export default {
3
],
"view": [
- 457
+ 459
],
"viewFields": [
- 458
+ 460
],
"viewFilters": [
- 459
+ 461
],
"viewFilterGroups": [
- 460
+ 462
],
"viewSorts": [
- 461
+ 463
],
"__typename": [
1
@@ -11973,7 +11995,7 @@ export default {
3
],
"update": [
- 464
+ 466
],
"__typename": [
1
@@ -12011,7 +12033,7 @@ export default {
3
],
"update": [
- 468
+ 470
],
"__typename": [
1
@@ -12087,7 +12109,7 @@ export default {
3
],
"update": [
- 473
+ 475
],
"__typename": [
1
@@ -12151,10 +12173,10 @@ export default {
3
],
"groups": [
- 478
+ 480
],
"fields": [
- 479
+ 481
],
"__typename": [
1
@@ -12174,7 +12196,7 @@ export default {
8
],
"fields": [
- 479
+ 481
],
"__typename": [
1
@@ -12345,7 +12367,7 @@ export default {
8
],
"tabs": [
- 491
+ 493
],
"__typename": [
1
@@ -12368,7 +12390,7 @@ export default {
104
],
"widgets": [
- 492
+ 494
],
"__typename": [
1
@@ -12533,7 +12555,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 498
+ 500
],
"__typename": [
1
@@ -12593,7 +12615,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 501
+ 503
],
"id": [
3
@@ -12649,7 +12671,7 @@ export default {
27
],
"translations": [
- 502
+ 504
],
"__typename": [
1
@@ -12671,7 +12693,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 504
+ 506
],
"__typename": [
1
@@ -12682,7 +12704,7 @@ export default {
3
],
"fields": [
- 505
+ 507
],
"indexType": [
271
@@ -12767,7 +12789,7 @@ export default {
3
],
"update": [
- 510
+ 512
],
"__typename": [
1
@@ -12936,7 +12958,7 @@ export default {
3
],
"update": [
- 515
+ 517
],
"__typename": [
1
@@ -13077,7 +13099,7 @@ export default {
1
],
"update": [
- 521
+ 523
],
"__typename": [
1
@@ -13122,7 +13144,7 @@ export default {
1
],
"update": [
- 524
+ 526
],
"__typename": [
1
@@ -13179,7 +13201,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 530
+ 532
],
"__typename": [
1
@@ -13258,7 +13280,7 @@ export default {
3
],
"update": [
- 532
+ 534
],
"__typename": [
1
@@ -13323,7 +13345,7 @@ export default {
9
],
"translations": [
- 502
+ 504
],
"__typename": [
1
@@ -13362,7 +13384,7 @@ export default {
3
],
"update": [
- 536
+ 538
],
"__typename": [
1
@@ -13447,7 +13469,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 541
+ 543
],
"id": [
3
@@ -13502,7 +13524,7 @@ export default {
3
],
"objectPermissions": [
- 543
+ 545
],
"__typename": [
1
@@ -13544,7 +13566,7 @@ export default {
3
],
"fieldPermissions": [
- 546
+ 548
],
"__typename": [
1
@@ -13575,10 +13597,10 @@ export default {
3
],
"predicates": [
- 548
+ 550
],
"predicateGroups": [
- 549
+ 551
],
"__typename": [
1
@@ -13722,7 +13744,7 @@ export default {
3
],
"update": [
- 557
+ 559
],
"__typename": [
1
@@ -13815,7 +13837,7 @@ export default {
3
],
"messages": [
- 563
+ 565
],
"__typename": [
1
@@ -13838,7 +13860,7 @@ export default {
4
],
"participants": [
- 564
+ 566
],
"__typename": [
1
@@ -13846,7 +13868,7 @@ export default {
},
"AppMessageParticipantInput": {
"role": [
- 565
+ 567
],
"handle": [
1
@@ -13884,7 +13906,7 @@ export default {
3
],
"messages": [
- 568
+ 570
],
"__typename": [
1
@@ -13892,13 +13914,13 @@ export default {
},
"RunAgentMessageInput": {
"role": [
- 569
+ 571
],
"content": [
1
],
"attachments": [
- 570
+ 572
],
"__typename": [
1
@@ -13941,7 +13963,7 @@ export default {
3
],
"update": [
- 573
+ 575
],
"__typename": [
1
@@ -13969,7 +13991,7 @@ export default {
3
],
"update": [
- 575
+ 577
],
"__typename": [
1
@@ -13988,7 +14010,7 @@ export default {
3
],
"update": [
- 575
+ 577
],
"__typename": [
1
@@ -13999,7 +14021,7 @@ export default {
3
],
"update": [
- 578
+ 580
],
"__typename": [
1
@@ -14064,7 +14086,7 @@ export default {
9
],
"jobs": [
- 582
+ 584
],
"retryLimit": [
30
@@ -14186,7 +14208,7 @@ export default {
8
],
"translations": [
- 502
+ 504
],
"__typename": [
1
@@ -14352,7 +14374,7 @@ export default {
1
],
"files": [
- 599
+ 601
],
"__typename": [
1
@@ -14374,13 +14396,13 @@ export default {
1
],
"IMAP": [
- 601
+ 603
],
"SMTP": [
- 601
+ 603
],
"CALDAV": [
- 601
+ 603
],
"__typename": [
1
@@ -14445,7 +14467,7 @@ export default {
284,
{
"input": [
- 605,
+ 607,
"LogicFunctionLogsInput!"
]
}
@@ -14465,6 +14487,10 @@ export default {
"table": [
431,
"EventLogTable!"
+ ],
+ "fieldFilters": [
+ 434,
+ "[EventLogFieldFilterInput!]"
]
}
],
@@ -14472,7 +14498,7 @@ export default {
377,
{
"input": [
- 606,
+ 608,
"CreateRecordExportInput!"
]
}
diff --git a/packages/twenty-docs/snippets/ui/generated/tokens.mdx b/packages/twenty-docs/snippets/ui/generated/tokens.mdx
index 350c7df1dc6..d3f7dd2dfb5 100644
--- a/packages/twenty-docs/snippets/ui/generated/tokens.mdx
+++ b/packages/twenty-docs/snippets/ui/generated/tokens.mdx
@@ -114,6 +114,7 @@
| Token path | CSS variable | Light | Dark | Numeric |
| --- | --- | --- | --- | --- |
+| boxShadow.bottomPanel | --t-box-shadow-bottom-panel | 0px 0px 20px 0px color(display-p3 0 0 0 / 0.1) | 0px 0px 20px 0px rgba(0, 0, 0, 0.1) | |
| boxShadow.color | --t-box-shadow-color | color(display-p3 0 0 0 / 0.039) | rgba(0, 0, 0, 0.6) | |
| boxShadow.light | --t-box-shadow-light | 0px 2px 4px 0px color(display-p3 0 0 0 / 0.039), 0px 0px 4px 0px color(display-p3 0 0 0 / 0.078) | 0px 2px 4px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.08) | |
| boxShadow.sidebar | --t-box-shadow-sidebar | -4px 4px 4px 0px rgba(0, 0, 0, 0.005) | -4px 4px 4px 0px rgba(0, 0, 0, 0.03) | |
diff --git a/packages/twenty-front/src/generated-admin/graphql.ts b/packages/twenty-front/src/generated-admin/graphql.ts
index 399fed76113..9bc9c0e6c1c 100644
--- a/packages/twenty-front/src/generated-admin/graphql.ts
+++ b/packages/twenty-front/src/generated-admin/graphql.ts
@@ -484,6 +484,7 @@ export enum FeatureFlagKey {
IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED',
IS_JUNCTION_RELATIONS_ENABLED = 'IS_JUNCTION_RELATIONS_ENABLED',
IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED = 'IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED',
+ IS_LOGS_SETTINGS_SECTION_ENABLED = 'IS_LOGS_SETTINGS_SECTION_ENABLED',
IS_MESSAGE_CAMPAIGN_ENABLED = 'IS_MESSAGE_CAMPAIGN_ENABLED',
IS_RECORD_CREATION_FORM_ENABLED = 'IS_RECORD_CREATION_FORM_ENABLED',
IS_RECORD_SHARING_ENABLED = 'IS_RECORD_SHARING_ENABLED',
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 59ca20fe581..a856225d4fb 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -2038,9 +2038,21 @@ export type EventLogDateRangeInput = {
start?: InputMaybe<Scalars['DateTime']['input']>;
};
+export type EventLogFieldFilterInput = {
+ field: Scalars['String']['input'];
+ operand: EventLogFilterOperand;
+ values: Array<Scalars['String']['input']>;
+};
+
+export enum EventLogFilterOperand {
+ IS = 'IS',
+ IS_NOT = 'IS_NOT'
+}
+
export type EventLogFiltersInput = {
dateRange?: InputMaybe<EventLogDateRangeInput>;
eventType?: InputMaybe<Scalars['String']['input']>;
+ fieldFilters?: InputMaybe<Array<EventLogFieldFilterInput>>;
objectMetadataId?: InputMaybe<Scalars['String']['input']>;
recordId?: InputMaybe<Scalars['String']['input']>;
userWorkspaceId?: InputMaybe<Scalars['String']['input']>;
@@ -2116,6 +2128,7 @@ export enum FeatureFlagKey {
IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED',
IS_JUNCTION_RELATIONS_ENABLED = 'IS_JUNCTION_RELATIONS_ENABLED',
IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED = 'IS_LOGIC_FUNCTION_PREBUILT_MODE_ENABLED',
+ IS_LOGS_SETTINGS_SECTION_ENABLED = 'IS_LOGS_SETTINGS_SECTION_ENABLED',
IS_MESSAGE_CAMPAIGN_ENABLED = 'IS_MESSAGE_CAMPAIGN_ENABLED',
IS_RECORD_CREATION_FORM_ENABLED = 'IS_RECORD_CREATION_FORM_ENABLED',
IS_RECORD_SHARING_ENABLED = 'IS_RECORD_SHARING_ENABLED',
@@ -6307,6 +6320,7 @@ export type Subscription = {
export type SubscriptionEventLogsLiveArgs = {
+ fieldFilters?: InputMaybe<Array<EventLogFieldFilterInput>>;
table: EventLogTable;
};
@@ -7736,6 +7750,7 @@ export type WorkspaceMember = {
timeZone?: Maybe<Scalars['String']['output']>;
uiScale: Scalars['String']['output'];
userEmail: Scalars['String']['output'];
+ userId: Scalars['UUID']['output'];
userWorkspaceId?: Maybe<Scalars['UUID']['output']>;
};
@@ -9865,6 +9880,7 @@ export type EventLogsQuery = { __typename?: 'Query', eventLogs: { __typename?: '
export type EventLogsLiveSubscriptionVariables = Exact<{
table: EventLogTable;
+ fieldFilters?: InputMaybe<Array<EventLogFieldFilterInput> | EventLogFieldFilterInput>;
}>;
@@ -9957,7 +9973,7 @@ export type UpdateWorkspaceMemberRoleMutationVariables = Exact<{
}>;
-export type UpdateWorkspaceMemberRoleMutation = { __typename?: 'Mutation', updateWorkspaceMemberRole: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, roles?: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean }> | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } };
+export type UpdateWorkspaceMemberRoleMutation = { __typename?: 'Mutation', updateWorkspaceMemberRole: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, roles?: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean }> | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } };
export type UpsertFieldPermissionsMutationVariables = Exact<{
upsertFieldPermissionsInput: UpsertFieldPermissionsInput;
@@ -9990,7 +10006,7 @@ export type UpsertRowLevelPermissionPredicatesMutation = { __typename?: 'Mutatio
export type GetRolesQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetRolesQuery = { __typename?: 'Query', getPermissionFlags: Array<{ __typename?: 'PermissionFlag', id: string, applicationId: string, key: string, label: string, description?: string | null, icon?: string | null, permissionType: string }>, getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }>, apiKeys: Array<{ __typename?: 'ApiKeyForRole', id: string, name: string, expiresAt: string, revokedAt?: string | null }>, permissionFlags?: Array<{ __typename?: 'RolePermissionFlag', id: string, flag: string, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, fieldPermissions?: Array<{ __typename?: 'FieldPermission', objectMetadataId: string, fieldMetadataId: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null, id: string, roleId: string }> | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> };
+export type GetRolesQuery = { __typename?: 'Query', getPermissionFlags: Array<{ __typename?: 'PermissionFlag', id: string, applicationId: string, key: string, label: string, description?: string | null, icon?: string | null, permissionType: string }>, getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }>, apiKeys: Array<{ __typename?: 'ApiKeyForRole', id: string, name: string, expiresAt: string, revokedAt?: string | null }>, permissionFlags?: Array<{ __typename?: 'RolePermissionFlag', id: string, flag: string, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, fieldPermissions?: Array<{ __typename?: 'FieldPermission', objectMetadataId: string, fieldMetadataId: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null, id: string, roleId: string }> | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> };
export type CreateApprovedAccessDomainMutationVariables = Exact<{
input: CreateApprovedAccessDomainInput;
@@ -10128,7 +10144,7 @@ export type CurrentBillingSubscriptionFragmentFragment = { __typename?: 'Billing
| { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType, isLegacy?: string | null } }
}> | null };
-export type UserQueryFragmentFragment = { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, previousOnboardingStatus?: OnboardingStatus | null, isWorkspaceCreator?: boolean | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array<PermissionFlagType> | null, isImpersonating?: boolean | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, workspaceMembersCount?: number | null, aiChatModelTier: AiModelTier, aiAgentModelTier: AiModelTier, isAutoModelSelectionEnabled: boolean, aiModelIdByTier: any, aiAdditionalInstructions?: string | null, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array<string> | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logoUrl?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, unitAmount?: number | null, creditAmount?: number | null, billingProduct:
+export type UserQueryFragmentFragment = { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, previousOnboardingStatus?: OnboardingStatus | null, isWorkspaceCreator?: boolean | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array<PermissionFlagType> | null, isImpersonating?: boolean | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, workspaceMembersCount?: number | null, aiChatModelTier: AiModelTier, aiAgentModelTier: AiModelTier, isAutoModelSelectionEnabled: boolean, aiModelIdByTier: any, aiAdditionalInstructions?: string | null, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array<string> | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logoUrl?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, unitAmount?: number | null, creditAmount?: number | null, billingProduct:
| { __typename?: 'BillingLicensedProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType, isLegacy?: string | null } }
| { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType, isLegacy?: string | null } }
}> | null } | null, billingCustomer?: { __typename?: 'BillingCustomer', id: string, hasPaymentMethod?: boolean | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, metadata: any, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }> }>, billingEntitlements: Array<{ __typename?: 'BillingEntitlement', key: BillingEntitlementKey, value: boolean }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } };
@@ -10150,7 +10166,7 @@ export type DeleteUserWorkspaceMutation = { __typename?: 'Mutation', deleteUserF
export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, previousOnboardingStatus?: OnboardingStatus | null, isWorkspaceCreator?: boolean | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array<PermissionFlagType> | null, isImpersonating?: boolean | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, workspaceMembersCount?: number | null, aiChatModelTier: AiModelTier, aiAgentModelTier: AiModelTier, isAutoModelSelectionEnabled: boolean, aiModelIdByTier: any, aiAdditionalInstructions?: string | null, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array<string> | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logoUrl?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, unitAmount?: number | null, creditAmount?: number | null, billingProduct:
+export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, firstName: string, lastName: string, email: string, hasPassword: boolean, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, previousOnboardingStatus?: OnboardingStatus | null, isWorkspaceCreator?: boolean | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', id: string, permissionFlags?: Array<PermissionFlagType> | null, isImpersonating?: boolean | null, objectsPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> | null, twoFactorAuthenticationMethodSummary?: Array<{ __typename?: 'TwoFactorAuthenticationMethodSummary', twoFactorAuthenticationMethodId: string, status: string, strategy: string }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, workspaceDiscoverability: WorkspaceDiscoverability, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, isGoogleAuthBypassEnabled: boolean, isMicrosoftAuthBypassEnabled: boolean, isPasswordAuthBypassEnabled: boolean, subdomain: string, customDomain?: string | null, hasValidSignedEnterpriseKey: boolean, hasValidEnterpriseValidityToken: boolean, isCustomDomainEnabled: boolean, workspaceMembersCount?: number | null, aiChatModelTier: AiModelTier, aiAgentModelTier: AiModelTier, isAutoModelSelectionEnabled: boolean, aiModelIdByTier: any, aiAdditionalInstructions?: string | null, isTwoFactorAuthenticationEnforced: boolean, trashRetentionDays: number, eventLogRetentionDays: number, editableProfileFields?: Array<string> | null, isInternalMessagesImportEnabled: boolean, workspaceCustomApplication?: { __typename?: 'Application', id: string } | null, installedApplications: Array<{ __typename?: 'Application', id: string, name: string, universalIdentifier: string, logoUrl?: string | null }>, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, currentPeriodEnd?: string | null, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }>, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: string, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, stripePriceId: string, unitAmount?: number | null, creditAmount?: number | null, billingProduct:
| { __typename?: 'BillingLicensedProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType, isLegacy?: string | null } }
| { __typename?: 'BillingMeteredProduct', name: string, description: string, images?: Array<string> | null, metadata: { __typename?: 'BillingProductMetadata', productKey: BillingProductKey, planKey: BillingPlanKey, priceUsageBased: BillingUsageType, isLegacy?: string | null } }
}> | null } | null, billingCustomer?: { __typename?: 'BillingCustomer', id: string, hasPaymentMethod?: boolean | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: string, status: SubscriptionStatus, metadata: any, cancelAt?: string | null, phases: Array<{ __typename?: 'BillingSubscriptionSchedulePhase', start_date: number, end_date: number, items: Array<{ __typename?: 'BillingSubscriptionSchedulePhaseItem', price: string, quantity?: number | null }> }> }>, billingEntitlements: Array<{ __typename?: 'BillingEntitlement', key: BillingEntitlementKey, value: boolean }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } } };
@@ -10348,9 +10364,9 @@ export type GetWorkspaceInvitationsQuery = { __typename?: 'Query', findWorkspace
export type DeletedWorkspaceMemberQueryFragmentFragment = { __typename?: 'DeletedWorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } };
-export type PartialWorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } };
+export type PartialWorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } };
-export type WorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } };
+export type WorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: string, colorScheme: string, uiScale: string, openRecordIn: OpenRecordIn, avatarUrl?: string | null, locale?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, calendarStartDay?: number | null, numberFormat?: WorkspaceMemberNumberFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } };
export type ActivateWorkspaceMutationVariables = Exact<{
input: ActivateWorkspaceInput;
@@ -10449,8 +10465,8 @@ export const WebhookFragmentFragmentDoc = {"kind":"Document","definitions":[{"ki
export const ApiKeyForRoleFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApiKeyForRoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApiKeyForRole"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"revokedAt"}}]}}]} as unknown as DocumentNode<ApiKeyForRoleFragmentFragment, unknown>;
export const FieldPermissionFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<FieldPermissionFragmentFragment, unknown>;
export const RolePermissionFlagFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<RolePermissionFlagFragmentFragment, unknown>;
-export const WorkspaceMemberQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}}]} as unknown as DocumentNode<WorkspaceMemberQueryFragmentFragment, unknown>;
-export const PartialWorkspaceMemberQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}}]} as unknown as DocumentNode<PartialWorkspaceMemberQueryFragmentFragment, unknown>;
+export const WorkspaceMemberQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}}]} as unknown as DocumentNode<WorkspaceMemberQueryFragmentFragment, unknown>;
+export const PartialWorkspaceMemberQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}}]} as unknown as DocumentNode<PartialWorkspaceMemberQueryFragmentFragment, unknown>;
export const DeletedWorkspaceMemberQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}}]} as unknown as DocumentNode<DeletedWorkspaceMemberQueryFragmentFragment, unknown>;
export const RowLevelPermissionPredicateFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]} as unknown as DocumentNode<RowLevelPermissionPredicateFragmentFragment, unknown>;
export const RowLevelPermissionPredicateGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]} as unknown as DocumentNode<RowLevelPermissionPredicateGroupFragmentFragment, unknown>;
@@ -10463,7 +10479,7 @@ export const BillingSubscriptionFragmentFragmentDoc = {"kind":"Document","defini
export const RoleFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode<RoleFragmentFragment, unknown>;
export const AvailableWorkspaceFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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"}}]}}]}}]} as unknown as DocumentNode<AvailableWorkspaceFragmentFragment, unknown>;
export const AvailableWorkspacesFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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"}}]}}]}}]} as unknown as DocumentNode<AvailableWorkspacesFragmentFragment, unknown>;
-export const UserQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"previousOnboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isWorkspaceCreator"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"isImpersonating"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAgentModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"isAutoModelSelectionEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"aiModelIdByTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}}]} as unknown as DocumentNode<UserQueryFragmentFragment, unknown>;
+export const UserQueryFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"previousOnboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isWorkspaceCreator"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"isImpersonating"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAgentModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"isAutoModelSelectionEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"aiModelIdByTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}}]} as unknown as DocumentNode<UserQueryFragmentFragment, unknown>;
export const ViewFieldFragmentFragmentDoc = {"kind":"Document","definitions":[{"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":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldFragmentFragment, unknown>;
export const ViewFieldGroupFragmentFragmentDoc = {"kind":"Document","definitions":[{"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":"isActive"}},{"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":"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":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<ViewFieldGroupFragmentFragment, unknown>;
export const ViewFilterFragmentFragmentDoc = {"kind":"Document","definitions":[{"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":"relationTargetFieldMetadataId"}},{"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"}}]}}]} as unknown as DocumentNode<ViewFilterFragmentFragment, unknown>;
@@ -10710,7 +10726,7 @@ export const EnterpriseCheckoutSessionDocument = {"kind":"Document","definitions
export const EnterprisePortalSessionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EnterprisePortalSession"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"returnUrlPath"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enterprisePortalSession"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"returnUrlPath"},"value":{"kind":"Variable","name":{"kind":"Name","value":"returnUrlPath"}}}]}]}}]} as unknown as DocumentNode<EnterprisePortalSessionQuery, EnterprisePortalSessionQueryVariables>;
export const EnterpriseSubscriptionStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EnterpriseSubscriptionStatus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enterpriseSubscriptionStatus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"licensee"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"isCancellationScheduled"}}]}}]}}]} as unknown as DocumentNode<EnterpriseSubscriptionStatusQuery, EnterpriseSubscriptionStatusQueryVariables>;
export const EventLogsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EventLogs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EventLogQueryInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventLogs"},"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":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"properties"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"endCursor"}},{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}}]}}]}}]}}]} as unknown as DocumentNode<EventLogsQuery, EventLogsQueryVariables>;
-export const EventLogsLiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"EventLogsLive"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"table"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EventLogTable"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventLogsLive"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"table"},"value":{"kind":"Variable","name":{"kind":"Name","value":"table"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"properties"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]}}]} as unknown as DocumentNode<EventLogsLiveSubscription, EventLogsLiveSubscriptionVariables>;
+export const EventLogsLiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"EventLogsLive"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"table"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EventLogTable"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilters"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EventLogFieldFilterInput"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventLogsLive"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"table"},"value":{"kind":"Variable","name":{"kind":"Name","value":"table"}}},{"kind":"Argument","name":{"kind":"Name","value":"fieldFilters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"timestamp"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"properties"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]}}]} as unknown as DocumentNode<EventLogsLiveSubscription, EventLogsLiveSubscriptionVariables>;
export const UpdateLabPublicFeatureFlagDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateLabPublicFeatureFlag"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateLabPublicFeatureFlagInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateLabPublicFeatureFlag"},"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":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]} as unknown as DocumentNode<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>;
export const CompleteWorkspaceMemberProfilePictureUploadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CompleteWorkspaceMemberProfilePictureUpload"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fileId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeWorkspaceMemberProfilePictureUpload"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fileId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fileId"}}}],"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<CompleteWorkspaceMemberProfilePictureUploadMutation, CompleteWorkspaceMemberProfilePictureUploadMutationVariables>;
export const RevokeAllOtherUserSessionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RevokeAllOtherUserSessions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"revokeAllOtherUserSessions"}}]}}]} as unknown as DocumentNode<RevokeAllOtherUserSessionsMutation, RevokeAllOtherUserSessionsMutationVariables>;
@@ -10721,12 +10737,12 @@ export const UpdateWorkspaceMemberSettingsDocument = {"kind":"Document","definit
export const CreateOneRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneRole"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"createRoleInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateRoleInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneRole"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"createRoleInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"createRoleInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode<CreateOneRoleMutation, CreateOneRoleMutationVariables>;
export const DeleteOneRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneRole"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneRole"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}]}]}}]} as unknown as DocumentNode<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>;
export const UpdateOneRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneRole"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updateRoleInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateRoleInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneRole"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"updateRoleInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updateRoleInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>;
-export const UpdateWorkspaceMemberRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateWorkspaceMemberRole"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateWorkspaceMemberRole"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
+export const UpdateWorkspaceMemberRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateWorkspaceMemberRole"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateWorkspaceMemberRole"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}}]} as unknown as DocumentNode<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
export const UpsertFieldPermissionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertFieldPermissions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"upsertFieldPermissionsInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertFieldPermissionsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertFieldPermissions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"upsertFieldPermissionsInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"upsertFieldPermissionsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FieldPermissionFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<UpsertFieldPermissionsMutation, UpsertFieldPermissionsMutationVariables>;
export const UpsertObjectPermissionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertObjectPermissions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"upsertObjectPermissionsInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertObjectPermissionsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertObjectPermissions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"upsertObjectPermissionsInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"upsertObjectPermissionsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]} as unknown as DocumentNode<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>;
export const UpsertPermissionFlagsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertPermissionFlags"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"upsertPermissionFlagsInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertPermissionFlagsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertPermissionFlags"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"upsertPermissionFlagsInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"upsertPermissionFlagsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<UpsertPermissionFlagsMutation, UpsertPermissionFlagsMutationVariables>;
export const UpsertRowLevelPermissionPredicatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertRowLevelPermissionPredicates"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertRowLevelPermissionPredicatesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertRowLevelPermissionPredicates"},"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":"predicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"predicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]} as unknown as DocumentNode<UpsertRowLevelPermissionPredicatesMutation, UpsertRowLevelPermissionPredicatesMutationVariables>;
-export const GetRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPermissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"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":"permissionType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"getRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"apiKeys"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApiKeyForRoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FieldPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"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":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApiKeyForRoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApiKeyForRole"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"revokedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<GetRolesQuery, GetRolesQueryVariables>;
+export const GetRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPermissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"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":"permissionType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"getRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"apiKeys"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApiKeyForRoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FieldPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"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":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApiKeyForRoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApiKeyForRole"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"revokedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<GetRolesQuery, GetRolesQueryVariables>;
export const CreateApprovedAccessDomainDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateApprovedAccessDomain"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateApprovedAccessDomainInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createApprovedAccessDomain"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"domain"}},{"kind":"Field","name":{"kind":"Name","value":"isValidated"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
export const CreateOidcIdentityProviderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOIDCIdentityProvider"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetupOIDCSsoInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOIDCIdentityProvider"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
export const CreateSamlIdentityProviderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateSAMLIdentityProvider"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetupSAMLSsoInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createSAMLIdentityProvider"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
@@ -10748,7 +10764,7 @@ export const RemoveQueryFromEventStreamDocument = {"kind":"Document","definition
export const OnEventSubscriptionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"OnEventSubscription"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventStreamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"onEventSubscription"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"eventStreamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventStreamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventStreamId"}},{"kind":"Field","name":{"kind":"Name","value":"objectRecordEventsWithQueryIds"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectRecordEvent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"action"}},{"kind":"Field","name":{"kind":"Name","value":"objectNameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberId"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatedFields"}},{"kind":"Field","name":{"kind":"Name","value":"before"}},{"kind":"Field","name":{"kind":"Name","value":"after"}},{"kind":"Field","name":{"kind":"Name","value":"diff"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"queryIds"}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadataEvents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"metadataName"}},{"kind":"Field","name":{"kind":"Name","value":"recordId"}},{"kind":"Field","name":{"kind":"Name","value":"updatedCollectionHash"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatedFields"}},{"kind":"Field","name":{"kind":"Name","value":"before"}},{"kind":"Field","name":{"kind":"Name","value":"after"}},{"kind":"Field","name":{"kind":"Name","value":"diff"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"queueJobEvents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"attemptsMade"}},{"kind":"Field","name":{"kind":"Name","value":"failedReason"}},{"kind":"Field","name":{"kind":"Name","value":"enqueuedAt"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"finishedAt"}}]}}]}}]}}]} as unknown as DocumentNode<OnEventSubscriptionSubscription, OnEventSubscriptionSubscriptionVariables>;
export const DeleteUserAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
export const DeleteUserWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUserFromWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberIdToDelete"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<DeleteUserWorkspaceMutation, DeleteUserWorkspaceMutationVariables>;
-export const GetCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCurrentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserQueryFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"previousOnboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isWorkspaceCreator"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"isImpersonating"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAgentModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"isAutoModelSelectionEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"aiModelIdByTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}}]} as unknown as DocumentNode<GetCurrentUserQuery, GetCurrentUserQueryVariables>;
+export const GetCurrentUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCurrentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserQueryFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"colorScheme"}},{"kind":"Field","name":{"kind":"Name","value":"uiScale"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"locale"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"dateFormat"}},{"kind":"Field","name":{"kind":"Name","value":"timeFormat"}},{"kind":"Field","name":{"kind":"Name","value":"calendarStartDay"}},{"kind":"Field","name":{"kind":"Name","value":"numberFormat"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedWorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"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":"restrictedFields"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"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":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"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":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspaceFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspace"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"loginToken"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"personalInviteToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"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":"FragmentDefinition","name":{"kind":"Name","value":"AvailableWorkspacesFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AvailableWorkspaces"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspacesForSignUp"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspaceFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessFullAdminPanel"}},{"kind":"Field","name":{"kind":"Name","value":"canImpersonate"}},{"kind":"Field","name":{"kind":"Name","value":"supportUserHash"}},{"kind":"Field","name":{"kind":"Name","value":"onboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"previousOnboardingStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isWorkspaceCreator"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMember"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedWorkspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentUserWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"}},{"kind":"Field","name":{"kind":"Name","value":"isImpersonating"}},{"kind":"Field","name":{"kind":"Name","value":"objectsPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"twoFactorAuthenticationMethodId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"strategy"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"inviteHash"}},{"kind":"Field","name":{"kind":"Name","value":"allowImpersonation"}},{"kind":"Field","name":{"kind":"Name","value":"activationStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isPublicInviteLinkEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceDiscoverability"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isGoogleAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isMicrosoftAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"isPasswordAuthBypassEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"subdomain"}},{"kind":"Field","name":{"kind":"Name","value":"customDomain"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidSignedEnterpriseKey"}},{"kind":"Field","name":{"kind":"Name","value":"hasValidEnterpriseValidityToken"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceCustomApplication"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"installedApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCustomDomainEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"featureFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCustomer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasPaymentMethod"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingEntitlements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembersCount"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRole"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAgentModelTier"}},{"kind":"Field","name":{"kind":"Name","value":"isAutoModelSelectionEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"aiModelIdByTier"}},{"kind":"Field","name":{"kind":"Name","value":"aiAdditionalInstructions"}},{"kind":"Field","name":{"kind":"Name","value":"isTwoFactorAuthenticationEnforced"}},{"kind":"Field","name":{"kind":"Name","value":"trashRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"eventLogRetentionDays"}},{"kind":"Field","name":{"kind":"Name","value":"editableProfileFields"}},{"kind":"Field","name":{"kind":"Name","value":"isInternalMessagesImportEnabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"availableWorkspaces"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AvailableWorkspacesFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userVars"}}]}}]} as unknown as DocumentNode<GetCurrentUserQuery, GetCurrentUserQueryVariables>;
export const CreateManyViewFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewFieldInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewFields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewFieldFragment"}}]}}]}},{"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":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}}]}}]} as unknown as DocumentNode<CreateManyViewFieldsMutation, CreateManyViewFieldsMutationVariables>;
export const CreateManyViewGroupsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateManyViewGroups"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewGroupInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createManyViewGroups"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inputs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inputs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ViewGroupFragment"}}]}}]}},{"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"}}]}}]} as unknown as DocumentNode<CreateManyViewGroupsMutation, CreateManyViewGroupsMutationVariables>;
export const CreateViewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateView"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateViewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createView"},"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":"isActive"}},{"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":"isActive"}},{"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":"relationTargetFieldMetadataId"}},{"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":"subFieldName"}},{"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":"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":"kanbanColumnWidth"}},{"kind":"Field","name":{"kind":"Name","value":"groupLoadLimit"}},{"kind":"Field","name":{"kind":"Name","value":"anyFieldFilterValue"}},{"kind":"Field","name":{"kind":"Name","value":"calendarFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"calendarEndFieldMetadataId"}},{"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":"isActive"}},{"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<CreateViewMutation, CreateViewMutationVariables>;
diff --git a/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx b/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx
index cd158b11c11..3a1535c29fd 100644
--- a/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx
+++ b/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx
@@ -3,6 +3,7 @@ import { useWorkspaceRouteObjects } from '@/app/routing/components/WorkspaceRout
import { isAppEffectRedirectEnabledState } from '@/app/states/isAppEffectRedirectEnabledState';
import { useReturnToPath } from '@/auth/hooks/useReturnToPath';
import { useIsOnAuthOrOnboardingPage } from '@/auth/hooks/useIsOnAuthOrOnboardingPage';
+import { isLogConsoleFullScreenState } from '@/log-console/states/isLogConsoleFullScreenState';
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
import { SIDE_PANEL_PATH_SEARCH_PARAM } from '@/side-panel/routing/constants/SidePanelPathSearchParam';
import { isWorkspaceLocationAvailableOnSurface } from '@/app/routing/utils/isWorkspaceLocationAvailableOnSurface';
@@ -131,6 +132,7 @@ export const PageChangeEffect = () => {
setPreviousLocation(location.pathname);
executeTasksOnAnyLocationChange();
+ store.set(isLogConsoleFullScreenState.atom, false);
const newPageLayoutId = getPageLayoutIdForLocation({
location,
diff --git a/packages/twenty-front/src/modules/command-menu-item/constants/CommandMenuItemSectionsInDisplayOrder.ts b/packages/twenty-front/src/modules/command-menu-item/constants/CommandMenuItemSectionsInDisplayOrder.ts
index b23b0e4493a..4b372237e8d 100644
--- a/packages/twenty-front/src/modules/command-menu-item/constants/CommandMenuItemSectionsInDisplayOrder.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/constants/CommandMenuItemSectionsInDisplayOrder.ts
@@ -8,4 +8,5 @@ export const COMMAND_MENU_ITEM_SECTIONS_IN_DISPLAY_ORDER = [
'CREATE_RECORD',
'WORKSPACE',
'GO_TO',
+ 'DEVELOPER',
] as const satisfies readonly CommandMenuItemSection[];
diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx
index 6ea400f6a5c..540480cbc45 100644
--- a/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx
@@ -31,6 +31,7 @@ import {
IconArrowUpRight,
IconBox,
IconCheckbox,
+ IconCommand,
IconLifebuoy,
IconPlus,
IconSearch,
@@ -50,6 +51,7 @@ const SECTION_ICONS: Record<CommandMenuItemSection, IconComponent> = {
CREATE_RECORD: IconPlus,
WORKSPACE: IconApps,
GO_TO: IconArrowUpRight,
+ DEVELOPER: IconCommand,
FALLBACK: IconLifebuoy,
};
@@ -129,6 +131,8 @@ export const SidePanelCommandMenuItemDisplayPage = () => {
return t`Workspace`;
case 'GO_TO':
return t`Go to`;
+ case 'DEVELOPER':
+ return t`Developer`;
case 'FALLBACK':
return t`Fallback`;
}
@@ -149,6 +153,9 @@ export const SidePanelCommandMenuItemDisplayPage = () => {
}
};
+ const getSectionAppActions = (section: CommandMenuItemSection) =>
+ appActions.filter((item) => item.section === section);
+
const getSectionExtraItemIds = (section: CommandMenuItemSection) => {
if (section === 'CURRENT_VIEW') {
return coreViewCommandIds;
@@ -158,11 +165,7 @@ export const SidePanelCommandMenuItemDisplayPage = () => {
return coreSelectionCommandIds;
}
- if (section === 'WORKSPACE') {
- return appActions.map((item) => item.id);
- }
-
- return [];
+ return getSectionAppActions(section).map((item) => item.id);
};
const hasNoMatchingItems =
@@ -221,28 +224,27 @@ export const SidePanelCommandMenuItemDisplayPage = () => {
{(section === 'CURRENT_VIEW' || section === 'SELECTION') && (
<CoreObjectsCommands section={section} />
)}
- {section === 'WORKSPACE' &&
- appActions.map((item) => {
- const handleClick = () => {
- item.onClick();
- closeSidePanelMenu();
- };
+ {getSectionAppActions(section).map((item) => {
+ const handleClick = () => {
+ item.onClick();
+ closeSidePanelMenu();
+ };
- return (
- <SelectableListItem
- key={item.id}
- itemId={item.id}
- onEnter={handleClick}
- >
- <CommandMenuItem
- id={item.id}
- label={item.label}
- Icon={item.Icon}
- onClick={handleClick}
- />
- </SelectableListItem>
- );
- })}
+ return (
+ <SelectableListItem
+ key={item.id}
+ itemId={item.id}
+ onEnter={handleClick}
+ >
+ <CommandMenuItem
+ id={item.id}
+ label={item.label}
+ Icon={item.Icon}
+ onClick={handleClick}
+ />
+ </SelectableListItem>
+ );
+ })}
</CommandMenuItemSectionGroup>
);
})}
diff --git a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuAppActions.ts b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuAppActions.ts
index 325c1886bed..411fc754890 100644
--- a/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuAppActions.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/display/hooks/useCommandMenuAppActions.ts
@@ -1,15 +1,26 @@
import { CommandMenuContext } from '@/command-menu-item/contexts/CommandMenuContext';
+import { useIsLogConsoleAllowed } from '@/log-console/hooks/useIsLogConsoleAllowed';
+import { isLogConsoleFullScreenState } from '@/log-console/states/isLogConsoleFullScreenState';
+import { logConsoleDisplayModeState } from '@/log-console/states/logConsoleDisplayModeState';
+import { logConsoleSelectedLogState } from '@/log-console/states/logConsoleSelectedLogState';
import { useIsSettingsDrawer } from '@/navigation/hooks/useIsSettingsDrawer';
import { useNavigationDrawerTogglePresentation } from '@/navigation/hooks/useNavigationDrawerTogglePresentation';
+import { useSetAdvancedMode } from '@/navigation/hooks/useSetAdvancedMode';
import { useToggleNavigationDrawer } from '@/navigation/hooks/useToggleNavigationDrawer';
import { sidePanelSearchState } from '@/side-panel/states/sidePanelSearchState';
+import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
+import { isSelectOptionMatchingSearch } from '@/ui/input/components/internal/select/utils/isSelectOptionMatchingSearch';
import { useColorScheme } from '@/ui/theme/hooks/useColorScheme';
import { useIsMobile } from 'twenty-ui/utilities';
+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
+import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { type ColorScheme } from '@/workspace-member/types/WorkspaceMember';
import { useLingui } from '@lingui/react/macro';
import { useContext } from 'react';
-import { IconCopy } from 'twenty-ui/icon';
+import { IconCode, IconCopy, IconTerminal } from 'twenty-ui/icon';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';
import { normalizeSearchText } from '~/utils/normalizeSearchText';
@@ -26,6 +37,19 @@ export const useCommandMenuAppActions = () => {
);
const { copyToClipboard } = useCopyToClipboard();
const { colorScheme, setColorScheme, colorSchemeList } = useColorScheme();
+ const isLogsSettingsSectionEnabled = useIsFeatureEnabled(
+ FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED,
+ );
+ const isAdvancedModeEnabled = useAtomStateValue(isAdvancedModeEnabledState);
+ const { setAdvancedMode } = useSetAdvancedMode();
+ const isLogConsoleAllowed = useIsLogConsoleAllowed();
+ const [logConsoleDisplayMode, setLogConsoleDisplayMode] = useAtomState(
+ logConsoleDisplayModeState,
+ );
+ const setIsLogConsoleFullScreen = useSetAtomState(
+ isLogConsoleFullScreenState,
+ );
+ const setLogConsoleSelectedLog = useSetAtomState(logConsoleSelectedLogState);
const themeLabels: Record<ColorScheme, string> = {
Light: t`Change theme to light`,
@@ -33,15 +57,23 @@ export const useCommandMenuAppActions = () => {
System: t`Change theme to system`,
};
+ const closeLogConsole = () => {
+ setLogConsoleSelectedLog(null);
+ setLogConsoleDisplayMode('closed');
+ setIsLogConsoleFullScreen(false);
+ };
+
const appActions = [
{
id: 'toggle-navigation-drawer',
+ section: 'WORKSPACE',
...navigationDrawerPresentation,
onClick: toggleNavigationDrawer,
isAvailable: !isMobile && !isSettingsDrawer,
},
{
id: 'copy-page-link',
+ section: 'WORKSPACE',
label: t`Copy link to page`,
Icon: IconCopy,
onClick: () =>
@@ -50,11 +82,47 @@ export const useCommandMenuAppActions = () => {
},
...colorSchemeList.map((theme) => ({
id: `change-theme-${theme.id.toLowerCase()}`,
+ section: 'WORKSPACE',
label: themeLabels[theme.id],
Icon: theme.icon,
onClick: () => setColorScheme(theme.id),
isAvailable: theme.id !== colorScheme,
})),
+ {
+ id: 'turn-on-developer-mode',
+ section: 'DEVELOPER',
+ label: t`Turn on developer mode`,
+ searchKeywords: t`logs`,
+ Icon: IconCode,
+ onClick: () => setAdvancedMode(true),
+ isAvailable: isLogsSettingsSectionEnabled && !isAdvancedModeEnabled,
+ },
+ {
+ id: 'turn-off-developer-mode',
+ section: 'DEVELOPER',
+ label: t`Turn off developer mode`,
+ Icon: IconCode,
+ onClick: () => setAdvancedMode(false),
+ isAvailable: isLogsSettingsSectionEnabled && isAdvancedModeEnabled,
+ },
+ {
+ id: 'open-log-console',
+ section: 'DEVELOPER',
+ label: t`Open logs console`,
+ searchKeywords: t`developer`,
+ Icon: IconTerminal,
+ onClick: () => setLogConsoleDisplayMode('open'),
+ isAvailable: isLogConsoleAllowed && logConsoleDisplayMode !== 'open',
+ },
+ {
+ id: 'close-log-console',
+ section: 'DEVELOPER',
+ label: t`Close logs console`,
+ searchKeywords: t`developer`,
+ Icon: IconTerminal,
+ onClick: closeLogConsole,
+ isAvailable: isLogConsoleAllowed && logConsoleDisplayMode !== 'closed',
+ },
];
const normalizedSearch = normalizeSearchText(sidePanelSearch.trim());
@@ -64,7 +132,10 @@ export const useCommandMenuAppActions = () => {
(item) =>
!isInPreviewMode &&
item.isAvailable &&
- normalizeSearchText(item.label).includes(normalizedSearch),
+ isSelectOptionMatchingSearch({
+ option: item,
+ normalizedSearchInputValue: normalizedSearch,
+ }),
),
};
};
diff --git a/packages/twenty-front/src/modules/command-menu-item/types/CommandMenuItemSection.ts b/packages/twenty-front/src/modules/command-menu-item/types/CommandMenuItemSection.ts
index 05b63e3a9d6..beccd297ff0 100644
--- a/packages/twenty-front/src/modules/command-menu-item/types/CommandMenuItemSection.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/types/CommandMenuItemSection.ts
@@ -6,4 +6,5 @@ export type CommandMenuItemSection =
| 'CREATE_RECORD'
| 'WORKSPACE'
| 'GO_TO'
+ | 'DEVELOPER'
| 'FALLBACK';
diff --git a/packages/twenty-front/src/modules/command-menu-item/utils/__tests__/groupCommandMenuItemsBySection.test.ts b/packages/twenty-front/src/modules/command-menu-item/utils/__tests__/groupCommandMenuItemsBySection.test.ts
index 48052f0241c..c4121463e0c 100644
--- a/packages/twenty-front/src/modules/command-menu-item/utils/__tests__/groupCommandMenuItemsBySection.test.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/utils/__tests__/groupCommandMenuItemsBySection.test.ts
@@ -26,6 +26,7 @@ describe('groupCommandMenuItemsBySection', () => {
'CREATE_RECORD',
'WORKSPACE',
'GO_TO',
+ 'DEVELOPER',
'FALLBACK',
]);
});
diff --git a/packages/twenty-front/src/modules/command-menu-item/utils/groupCommandMenuItemsBySection.ts b/packages/twenty-front/src/modules/command-menu-item/utils/groupCommandMenuItemsBySection.ts
index 691b62aabf4..bc41f277493 100644
--- a/packages/twenty-front/src/modules/command-menu-item/utils/groupCommandMenuItemsBySection.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/utils/groupCommandMenuItemsBySection.ts
@@ -16,6 +16,7 @@ export const groupCommandMenuItemsBySection = (
CREATE_RECORD: [],
WORKSPACE: [],
GO_TO: [],
+ DEVELOPER: [],
FALLBACK: [],
};
diff --git a/packages/twenty-front/src/modules/localization/constants/DateFormatWithoutYear.ts b/packages/twenty-front/src/modules/localization/constants/DateFormatWithoutYear.ts
new file mode 100644
index 00000000000..d65bfb42ba4
--- /dev/null
+++ b/packages/twenty-front/src/modules/localization/constants/DateFormatWithoutYear.ts
@@ -0,0 +1,11 @@
+import { type DateFormat } from '@/localization/constants/DateFormat';
+
+type DateFormatWithoutYear = {
+ [K in keyof typeof DateFormat]: string;
+};
+export const DATE_FORMAT_WITHOUT_YEAR: DateFormatWithoutYear = {
+ SYSTEM: 'SYSTEM',
+ MONTH_FIRST: 'MMM d',
+ DAY_FIRST: 'd MMM',
+ YEAR_FIRST: 'MMM d',
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsole.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsole.tsx
new file mode 100644
index 00000000000..934e3026a0c
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsole.tsx
@@ -0,0 +1,636 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { useReducedMotion } from 'framer-motion';
+import { type TransitionEvent, useSyncExternalStore, useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { IconButton, LightIconButton, useToast } from 'twenty-ui/components';
+import {
+ IconChevronDown,
+ IconChevronUp,
+ IconLock,
+ IconMaximize,
+ IconMinimize,
+ IconX,
+} from 'twenty-ui/icon';
+import { themeCssVariables, useTheme } from 'twenty-ui/theme';
+import {
+ getOsControlSymbol,
+ getOsShortcutSeparator,
+} from 'twenty-ui/utilities';
+
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { isClickHouseConfiguredState } from '@/client-config/states/isClickHouseConfiguredState';
+import { LogConsoleDetailPanel } from '@/log-console/components/LogConsoleDetailPanel';
+import { LogConsoleToggleHotkeyEffect } from '@/log-console/components/LogConsoleToggleHotkeyEffect';
+import { LogConsoleResults } from '@/log-console/components/LogConsoleResults';
+import { LOG_CONSOLE_ANIMATION_EASING } from '@/log-console/constants/LogConsoleAnimationEasing';
+import { LOG_CONSOLE_HEIGHT_CONSTRAINTS } from '@/log-console/constants/LogConsoleHeightConstraints';
+import { LOG_CONSOLE_NARROW_BODY_MAX_WIDTH } from '@/log-console/constants/LogConsoleNarrowBodyMaxWidth';
+import { LOG_CONSOLE_SOURCES } from '@/log-console/constants/LogConsoleSources';
+import { LOG_CONSOLE_TAB_LIST_INSTANCE_ID } from '@/log-console/constants/LogConsoleTabListInstanceId';
+import { useIsLogConsoleAllowed } from '@/log-console/hooks/useIsLogConsoleAllowed';
+import { isLogConsoleFullScreenState } from '@/log-console/states/isLogConsoleFullScreenState';
+import { logConsoleDisplayModeState } from '@/log-console/states/logConsoleDisplayModeState';
+import { logConsoleFiltersState } from '@/log-console/states/logConsoleFiltersState';
+import { logConsoleHeightState } from '@/log-console/states/logConsoleHeightState';
+import { logConsoleSelectedLogState } from '@/log-console/states/logConsoleSelectedLogState';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { SettingsEmptyPlaceholder } from '@/settings/components/SettingsEmptyPlaceholder';
+import { SettingsEnterpriseFeatureGateCard } from '@/settings/components/SettingsEnterpriseFeatureGateCard';
+import { SETTINGS_CONTENT_MAX_WIDTH } from '@/settings/constants/SettingsContentMaxWidth';
+import { APP_HEADER_HEIGHT } from '@/ui/layout/constants/AppHeaderHeight';
+import { RootStackingContextZIndices } from '@/ui/layout/constants/RootStackingContextZIndices';
+import { ResizablePanelEdge } from '@/ui/layout/resizable-panel/components/ResizablePanelEdge';
+import { TabList } from '@/ui/layout/tab-list/components/TabList';
+import { TabListRoot } from '@/ui/layout/tab-list/components/TabListRoot';
+import { TAB_LIST_HEIGHT } from '@/ui/layout/tab-list/constants/TabListHeight';
+import { TAB_LIST_ROW_HEIGHT_CSS_VARIABLE } from '@/ui/layout/tab-list/constants/TabListRowHeightCssVariable';
+import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
+import { getUiZoom } from '@/ui/theme/utils/getUiZoom';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
+import { BillingEntitlementKey } from '~/generated-metadata/graphql';
+
+const LOG_CONSOLE_HEIGHT_CSS_VARIABLE = '--log-console-height';
+
+const LOG_CONSOLE_DETAIL_PANEL_CSS_VARIABLE =
+ '--log-console-detail-panel-width';
+
+const LOG_CONSOLE_MIN_PAGE_HEIGHT = 120;
+
+const LOG_CONSOLE_TOP_BORDER_WIDTH = '1px';
+
+const LOG_CONSOLE_BAR_BOTTOM_BORDER_WIDTH = '1px';
+
+const LOG_CONSOLE_TRANSITION_TIMING = `calc(${themeCssVariables.animation.duration.normal} * 1s) ${LOG_CONSOLE_ANIMATION_EASING}`;
+
+const LOG_CONSOLE_DETAIL_PANEL_WIDTH_CONSTRAINTS = {
+ min: 280,
+ max: 800,
+ default: 380,
+};
+
+type LogConsoleLayout = {
+ isOpen: boolean;
+ isFullScreen: boolean;
+};
+
+const getLogConsoleTransition = (isResizing: boolean, properties: string[]) =>
+ isResizing
+ ? 'none'
+ : properties
+ .map((property) => `${property} ${LOG_CONSOLE_TRANSITION_TIMING}`)
+ .join(', ');
+
+const StyledSpacer = styled.div<{
+ isResizing: boolean;
+ spacerHeight: string;
+}>`
+ flex: none;
+ height: ${({ spacerHeight }) => spacerHeight};
+ transition: ${({ isResizing }) =>
+ getLogConsoleTransition(isResizing, ['height'])};
+
+ @media (prefers-reduced-motion: no-preference) {
+ &[data-animate-entrance='true'] {
+ animation: logConsoleSpacerEntrance ${LOG_CONSOLE_TRANSITION_TIMING};
+ }
+ }
+
+ @keyframes logConsoleSpacerEntrance {
+ from {
+ height: 0;
+ }
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ transition: none;
+ }
+
+ @media print {
+ display: none;
+ }
+`;
+
+const StyledPanel = styled.div<{
+ isExiting: boolean;
+ isFullScreen: boolean;
+ isResizing: boolean;
+ panelHeight: string;
+}>`
+ ${TAB_LIST_ROW_HEIGHT_CSS_VARIABLE}: ${({ isFullScreen }) =>
+ isFullScreen ? `${APP_HEADER_HEIGHT}px` : TAB_LIST_HEIGHT};
+
+ background: ${themeCssVariables.background.primary};
+ border-left: 1px solid ${themeCssVariables.border.color.medium};
+ border-top: ${({ isFullScreen }) =>
+ isFullScreen ? '0px' : LOG_CONSOLE_TOP_BORDER_WIDTH}
+ solid ${themeCssVariables.border.color.medium};
+ bottom: 0;
+ box-shadow: ${themeCssVariables.boxShadow.bottomPanel};
+ box-sizing: border-box;
+ clip-path: inset(calc(-1 * ${themeCssVariables.spacing[6]}) 0 0 0);
+ display: flex;
+ flex-direction: column;
+ height: ${({ panelHeight }) => panelHeight};
+ left: 0;
+ opacity: ${({ isExiting }) => (isExiting ? 0 : 1)};
+ overflow: hidden;
+ position: absolute;
+ right: 0;
+ transition: ${({ isResizing }) =>
+ getLogConsoleTransition(isResizing, [
+ 'height',
+ 'border-top-width',
+ 'opacity',
+ ])};
+ z-index: ${RootStackingContextZIndices.LogConsole};
+
+ @media (prefers-reduced-motion: no-preference) {
+ &[data-animate-entrance='true'] {
+ animation: logConsolePanelEntrance ${LOG_CONSOLE_TRANSITION_TIMING};
+ }
+ }
+
+ @keyframes logConsolePanelEntrance {
+ from {
+ height: 0;
+ opacity: 0;
+ }
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ transition: none;
+ }
+
+ @media print {
+ display: none;
+ }
+`;
+
+const StyledTabList = styled(TabList)`
+ && {
+ background-color: ${themeCssVariables.background.secondary};
+ flex-shrink: 0;
+ height: var(${TAB_LIST_ROW_HEIGHT_CSS_VARIABLE});
+ padding-left: ${themeCssVariables.spacing[2]};
+ transition: height ${LOG_CONSOLE_TRANSITION_TIMING};
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ && {
+ transition: none;
+ }
+ }
+
+ &&::after {
+ background-color: ${themeCssVariables.border.color.medium};
+ }
+`;
+
+const StyledBarActions = styled.div`
+ display: flex;
+ gap: ${themeCssVariables.spacing[1]};
+ padding-right: ${themeCssVariables.spacing[3]};
+`;
+
+const StyledBody = styled.div`
+ container-name: log-console-body;
+ container-type: inline-size;
+ display: flex;
+ flex: 1;
+ min-height: 0;
+ position: relative;
+`;
+
+const StyledActiveSource = styled.div<{ isDetailPanelOpen: boolean }>`
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ min-width: 0;
+
+ @container log-console-body (max-width: ${LOG_CONSOLE_NARROW_BODY_MAX_WIDTH}px) {
+ visibility: ${({ isDetailPanelOpen }) =>
+ isDetailPanelOpen ? 'hidden' : 'visible'};
+ }
+`;
+
+const subscribeToWindowResize = (onWindowResize: () => void) => {
+ window.addEventListener('resize', onWindowResize);
+
+ return () => window.removeEventListener('resize', onWindowResize);
+};
+
+const getWindowHeight = () => window.innerHeight;
+
+const StyledUpgradeCardContainer = styled.div`
+ box-sizing: border-box;
+ margin: auto;
+ max-width: ${SETTINGS_CONTENT_MAX_WIDTH}px;
+ padding: 0 ${themeCssVariables.spacing[8]};
+ width: 100%;
+`;
+
+const StyledDetailPanelWrapper = styled.div<{
+ detailPanelWidth: number;
+ isOpen: boolean;
+ isResizing: boolean;
+}>`
+ overflow: hidden;
+ position: relative;
+ transition: ${({ isResizing }) =>
+ getLogConsoleTransition(isResizing, ['width'])};
+ width: ${({ isOpen, isResizing, detailPanelWidth }) =>
+ !isOpen
+ ? '0px'
+ : isResizing
+ ? `var(${LOG_CONSOLE_DETAIL_PANEL_CSS_VARIABLE}, ${detailPanelWidth}px)`
+ : `${detailPanelWidth}px`};
+
+ @container log-console-body (max-width: ${LOG_CONSOLE_NARROW_BODY_MAX_WIDTH}px) {
+ position: static;
+ }
+`;
+
+export const LogConsole = () => {
+ const { t } = useLingui();
+ const theme = useTheme();
+ const { enqueueToast } = useToast();
+ const shouldReduceMotion = useReducedMotion();
+
+ const isLogConsoleAllowed = useIsLogConsoleAllowed();
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
+ const isClickHouseConfigured = useAtomStateValue(isClickHouseConfiguredState);
+
+ const [logConsoleDisplayMode, setLogConsoleDisplayMode] = useAtomState(
+ logConsoleDisplayModeState,
+ );
+ const [isLogConsoleFullScreen, setIsLogConsoleFullScreen] = useAtomState(
+ isLogConsoleFullScreenState,
+ );
+ const activeTabId = useAtomComponentStateValue(
+ activeTabIdComponentState,
+ LOG_CONSOLE_TAB_LIST_INSTANCE_ID,
+ );
+ const [logConsoleHeight, setLogConsoleHeight] = useAtomState(
+ logConsoleHeightState,
+ );
+ const setLogConsoleFilters = useSetAtomState(logConsoleFiltersState);
+ const [logConsoleSelectedLog, setLogConsoleSelectedLog] = useAtomState(
+ logConsoleSelectedLogState,
+ );
+ const [detailPanelWidth, setDetailPanelWidth] = useState(
+ LOG_CONSOLE_DETAIL_PANEL_WIDTH_CONSTRAINTS.default,
+ );
+ const [isDetailPanelResizing, setIsDetailPanelResizing] = useState(false);
+ const [isResizing, setIsResizing] = useState(false);
+
+ const isOpen = logConsoleDisplayMode === 'open';
+ const isFullScreen = isOpen && isLogConsoleFullScreen;
+ const isVisible = isLogConsoleAllowed && logConsoleDisplayMode !== 'closed';
+
+ const [renderedLayout, setRenderedLayout] = useState<LogConsoleLayout | null>(
+ isVisible ? { isOpen, isFullScreen } : null,
+ );
+ const [shouldAnimateEntrance, setShouldAnimateEntrance] = useState(false);
+ const [isBodyMounted, setIsBodyMounted] = useState(isVisible && isOpen);
+
+ if (
+ isVisible &&
+ (renderedLayout?.isOpen !== isOpen ||
+ renderedLayout?.isFullScreen !== isFullScreen)
+ ) {
+ if (!isDefined(renderedLayout)) {
+ setShouldAnimateEntrance(true);
+ }
+ setRenderedLayout({ isOpen, isFullScreen });
+ }
+
+ if (!isVisible && isDefined(renderedLayout) && shouldReduceMotion) {
+ setRenderedLayout(null);
+ setIsBodyMounted(false);
+ }
+
+ const displayedLayout = isVisible ? { isOpen, isFullScreen } : renderedLayout;
+ const isExiting = !isVisible && isDefined(renderedLayout);
+
+ if (displayedLayout?.isOpen && !isBodyMounted) {
+ setIsBodyMounted(true);
+ }
+
+ if (!isDefined(logConsoleSelectedLog) && isDetailPanelResizing) {
+ setIsDetailPanelResizing(false);
+ }
+
+ const windowHeight = useSyncExternalStore(
+ subscribeToWindowResize,
+ getWindowHeight,
+ );
+
+ const appHeight = windowHeight / getUiZoom();
+ const logConsoleResizeConstraints = {
+ min: 0,
+ max: Math.max(
+ appHeight - APP_HEADER_HEIGHT - LOG_CONSOLE_MIN_PAGE_HEIGHT,
+ LOG_CONSOLE_HEIGHT_CONSTRAINTS.min,
+ ),
+ default: appHeight / 2,
+ };
+ const logConsoleBodyHeight = Math.min(
+ Math.max(
+ logConsoleHeight ?? logConsoleResizeConstraints.default,
+ LOG_CONSOLE_HEIGHT_CONSTRAINTS.min,
+ ),
+ logConsoleResizeConstraints.max,
+ );
+
+ const toggleLogConsoleOpen = () => {
+ setLogConsoleDisplayMode(isOpen ? 'collapsed' : 'open');
+ setIsLogConsoleFullScreen(false);
+ };
+
+ const toggleHotkeyLabel = [getOsControlSymbol(), 'J'].join(
+ getOsShortcutSeparator(),
+ );
+
+ const toggleHotkeyEffect = isLogConsoleAllowed ? (
+ <LogConsoleToggleHotkeyEffect onToggle={toggleLogConsoleOpen} />
+ ) : null;
+
+ if (!isDefined(displayedLayout)) {
+ return toggleHotkeyEffect;
+ }
+
+ const isBodyRendered =
+ displayedLayout.isOpen || (isBodyMounted && !shouldReduceMotion);
+
+ const resizedBodyHeight = isResizing
+ ? `var(${LOG_CONSOLE_HEIGHT_CSS_VARIABLE}, ${logConsoleBodyHeight}px)`
+ : `${logConsoleBodyHeight}px`;
+ const bodyHeight = `max(${LOG_CONSOLE_HEIGHT_CONSTRAINTS.min}px, ${resizedBodyHeight})`;
+ const collapsedHeight = `calc(${TAB_LIST_HEIGHT} + ${LOG_CONSOLE_TOP_BORDER_WIDTH} - ${LOG_CONSOLE_BAR_BOTTOM_BORDER_WIDTH})`;
+ const openHeight = `calc(${TAB_LIST_HEIGHT} + ${LOG_CONSOLE_TOP_BORDER_WIDTH} + ${bodyHeight})`;
+ const spacerHeight = isExiting
+ ? '0px'
+ : displayedLayout.isOpen
+ ? openHeight
+ : collapsedHeight;
+ const panelHeight =
+ !isExiting && displayedLayout.isFullScreen ? '100%' : spacerHeight;
+
+ const hasAuditLogsEntitlement =
+ currentWorkspace?.billingEntitlements?.some(
+ (entitlement) =>
+ entitlement.key === BillingEntitlementKey.AUDIT_LOGS &&
+ entitlement.value,
+ ) ?? false;
+
+ const isSourceLocked = (source: LogConsoleSource) =>
+ source.requiresAuditLogs && !hasAuditLogsEntitlement;
+
+ const sources = [
+ ...LOG_CONSOLE_SOURCES.filter((source) => !isSourceLocked(source)),
+ ...LOG_CONSOLE_SOURCES.filter(isSourceLocked),
+ ];
+
+ const activeSource =
+ sources.find((source) => source.id === activeTabId) ?? sources[0];
+
+ const tabs = sources.map((source) => ({
+ id: source.id,
+ title: t(source.label),
+ Icon: source.Icon,
+ pill: isSourceLocked(source) ? (
+ <IconLock
+ size={theme.icon.size.sm}
+ stroke={theme.icon.stroke.sm}
+ color={theme.font.color.tertiary}
+ />
+ ) : undefined,
+ }));
+
+ const openLogConsole = () => {
+ if (!isOpen) {
+ setLogConsoleDisplayMode('open');
+ setIsLogConsoleFullScreen(false);
+ }
+ };
+
+ const handleResizeStart = (height: number) => {
+ setIsResizing(true);
+
+ if (height > 0) {
+ openLogConsole();
+ }
+ };
+
+ const handleDetailPanelWidthChange = (width: number) => {
+ document.documentElement.style.removeProperty(
+ LOG_CONSOLE_DETAIL_PANEL_CSS_VARIABLE,
+ );
+ setDetailPanelWidth(
+ Math.max(width, LOG_CONSOLE_DETAIL_PANEL_WIDTH_CONSTRAINTS.min),
+ );
+ setIsDetailPanelResizing(false);
+ };
+
+ const handleHeightChange = (height: number) => {
+ setIsResizing(false);
+
+ if (height === 0) {
+ setLogConsoleDisplayMode('collapsed');
+ return;
+ }
+
+ setLogConsoleHeight(Math.max(height, LOG_CONSOLE_HEIGHT_CONSTRAINTS.min));
+ openLogConsole();
+ };
+
+ const toggleLogConsoleFullScreen = () => {
+ setLogConsoleDisplayMode('open');
+ setIsLogConsoleFullScreen(!isFullScreen);
+ };
+
+ const closeSelectedLog = () => {
+ setLogConsoleSelectedLog(null);
+ };
+
+ const changeSource = (sourceId: string) => {
+ const filterFields =
+ sources.find((source) => source.id === sourceId)?.filterFields ?? [];
+
+ closeSelectedLog();
+ setLogConsoleFilters((filters) =>
+ filters.filter((filter) =>
+ filterFields.some(
+ (filterField) => filterField.id === filter.filterFieldId,
+ ),
+ ),
+ );
+ };
+
+ const closeLogConsole = () => {
+ closeSelectedLog();
+ setLogConsoleDisplayMode('closed');
+ setIsLogConsoleFullScreen(false);
+ enqueueToast({
+ variant: 'info',
+ children: t`Logs console hidden. Press ${toggleHotkeyLabel} to open it again.`,
+ });
+ };
+
+ const handlePanelTransitionEnd = (event: TransitionEvent<HTMLDivElement>) => {
+ if (
+ event.target !== event.currentTarget ||
+ event.propertyName !== 'height'
+ ) {
+ return;
+ }
+
+ if (isExiting) {
+ setRenderedLayout(null);
+ setIsBodyMounted(false);
+ return;
+ }
+
+ if (!displayedLayout.isOpen) {
+ setIsBodyMounted(false);
+ }
+ };
+
+ const openOrCollapseLabel = displayedLayout.isOpen ? t`Collapse` : t`Open`;
+ const fullScreenLabel = displayedLayout.isFullScreen
+ ? t`Exit full screen`
+ : t`Full screen`;
+ const closeLabel = t`Close`;
+
+ const renderActiveSource = () => {
+ if (!isClickHouseConfigured) {
+ return (
+ <SettingsEmptyPlaceholder>
+ {t`Logs require ClickHouse to be configured. Please contact your administrator.`}
+ </SettingsEmptyPlaceholder>
+ );
+ }
+
+ if (isSourceLocked(activeSource)) {
+ return (
+ <StyledUpgradeCardContainer>
+ <SettingsEnterpriseFeatureGateCard
+ title={t`Upgrade to access audit logs`}
+ description={t`Record changes and app logs are available on your current plan. Other log types require an Organization subscription.`}
+ buttonTitle={t`Upgrade`}
+ />
+ </StyledUpgradeCardContainer>
+ );
+ }
+
+ return <LogConsoleResults key={activeSource.id} source={activeSource} />;
+ };
+
+ return (
+ <>
+ {toggleHotkeyEffect}
+ <StyledSpacer
+ data-animate-entrance={shouldAnimateEntrance}
+ isResizing={isResizing}
+ spacerHeight={spacerHeight}
+ />
+ <StyledPanel
+ isExiting={isExiting}
+ isFullScreen={displayedLayout.isFullScreen}
+ isResizing={isResizing}
+ panelHeight={panelHeight}
+ data-animate-entrance={shouldAnimateEntrance}
+ onTransitionEnd={handlePanelTransitionEnd}
+ >
+ <TabListRoot componentInstanceId={LOG_CONSOLE_TAB_LIST_INSTANCE_ID}>
+ <StyledTabList
+ aria-label={t`Log sources`}
+ tabs={tabs}
+ behaveAsLinks={false}
+ componentInstanceId={LOG_CONSOLE_TAB_LIST_INSTANCE_ID}
+ onClickTab={openLogConsole}
+ onChangeTab={changeSource}
+ rightComponent={
+ <StyledBarActions>
+ <LightIconButton
+ emphasis="subtle"
+ tooltip={closeLabel}
+ aria-label={closeLabel}
+ onClick={closeLogConsole}
+ >
+ <IconX />
+ </LightIconButton>
+ <LightIconButton
+ emphasis="subtle"
+ tooltip={fullScreenLabel}
+ aria-label={fullScreenLabel}
+ onClick={toggleLogConsoleFullScreen}
+ >
+ {displayedLayout.isFullScreen ? (
+ <IconMinimize />
+ ) : (
+ <IconMaximize />
+ )}
+ </LightIconButton>
+ <IconButton
+ size="sm"
+ variant="outline"
+ tooltip={`${openOrCollapseLabel} | ${toggleHotkeyLabel}`}
+ aria-label={openOrCollapseLabel}
+ onClick={toggleLogConsoleOpen}
+ >
+ {displayedLayout.isOpen ? (
+ <IconChevronDown />
+ ) : (
+ <IconChevronUp />
+ )}
+ </IconButton>
+ </StyledBarActions>
+ }
+ />
+ {isBodyRendered && (
+ <StyledBody>
+ <StyledActiveSource
+ isDetailPanelOpen={isDefined(logConsoleSelectedLog)}
+ >
+ {renderActiveSource()}
+ </StyledActiveSource>
+ <StyledDetailPanelWrapper
+ detailPanelWidth={detailPanelWidth}
+ isOpen={isDefined(logConsoleSelectedLog)}
+ isResizing={isDetailPanelResizing}
+ >
+ {isDefined(logConsoleSelectedLog) && (
+ <ResizablePanelEdge
+ side="left"
+ constraints={LOG_CONSOLE_DETAIL_PANEL_WIDTH_CONSTRAINTS}
+ currentSize={detailPanelWidth}
+ onSizeChange={handleDetailPanelWidthChange}
+ cssVariableName={LOG_CONSOLE_DETAIL_PANEL_CSS_VARIABLE}
+ showHandle={false}
+ onResizeStart={() => setIsDetailPanelResizing(true)}
+ />
+ )}
+ <LogConsoleDetailPanel />
+ </StyledDetailPanelWrapper>
+ </StyledBody>
+ )}
+ </TabListRoot>
+ {!displayedLayout.isFullScreen && (
+ <ResizablePanelEdge
+ side="top"
+ constraints={logConsoleResizeConstraints}
+ currentSize={isOpen ? logConsoleBodyHeight : 0}
+ onSizeChange={handleHeightChange}
+ cssVariableName={LOG_CONSOLE_HEIGHT_CSS_VARIABLE}
+ onResizeStart={handleResizeStart}
+ />
+ )}
+ </StyledPanel>
+ </>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleChangesCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleChangesCell.tsx
new file mode 100644
index 00000000000..dc029ebc08e
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleChangesCell.tsx
@@ -0,0 +1,71 @@
+import { styled } from '@linaria/react';
+import { plural } from '@lingui/core/macro';
+import { useLingui } from '@lingui/react/macro';
+import { useId } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { Text } from 'twenty-ui/primitives/typography';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { EventFieldDiffContainer } from '@/activities/timeline-activities/rows/main-object/components/EventFieldDiffContainer';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { getLogConsoleRecordChangeFieldDiffs } from '@/log-console/utils/getLogConsoleRecordChangeFieldDiffs';
+import { objectMetadataItemsByIdMapSelector } from '@/object-metadata/states/objectMetadataItemsByIdMapSelector';
+import { TableCell } from '@/ui/layout/table/components/TableCell';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+const StyledOtherFieldDiffCount = styled.span`
+ flex-shrink: 0;
+`;
+
+type LogConsoleChangesCellProps = {
+ entry: EventLogRecord;
+};
+
+export const LogConsoleChangesCell = ({
+ entry,
+}: LogConsoleChangesCellProps) => {
+ const { t } = useLingui();
+ const diffId = useId();
+ const objectMetadataItemsByIdMap = useAtomStateValue(
+ objectMetadataItemsByIdMapSelector,
+ );
+
+ const summary = LOG_CONSOLE_RECORD_ACTIONS[entry.event]?.summary;
+ const objectMetadataItem = objectMetadataItemsByIdMap.get(
+ entry.objectMetadataId ?? '',
+ );
+
+ const fieldDiffs =
+ isDefined(summary) || !isDefined(objectMetadataItem)
+ ? []
+ : getLogConsoleRecordChangeFieldDiffs({ entry, objectMetadataItem });
+
+ const [firstFieldDiff, ...otherFieldDiffs] = fieldDiffs;
+
+ return (
+ <TableCell
+ gap={themeCssVariables.spacing[2]}
+ overflow="hidden"
+ whiteSpace="nowrap"
+ >
+ {isDefined(summary) && <Text truncate>{t(summary)}</Text>}
+ {isDefined(objectMetadataItem) && isDefined(firstFieldDiff) && (
+ <EventFieldDiffContainer
+ mainObjectMetadataItem={objectMetadataItem}
+ diffKey={firstFieldDiff.key}
+ fieldDiff={firstFieldDiff}
+ eventId={diffId}
+ />
+ )}
+ {otherFieldDiffs.length > 0 && (
+ <StyledOtherFieldDiffCount>
+ {plural(otherFieldDiffs.length, {
+ one: 'and # more',
+ other: 'and # more',
+ })}
+ </StyledOtherFieldDiffCount>
+ )}
+ </TableCell>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleCredits.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleCredits.tsx
new file mode 100644
index 00000000000..f2441029ee7
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleCredits.tsx
@@ -0,0 +1,17 @@
+import { INTERNAL_CREDITS_PER_DISPLAY_CREDIT } from 'twenty-shared/constants';
+
+import { useUsageValueFormatter } from '@/settings/usage/hooks/useUsageValueFormatter';
+
+type LogConsoleCreditsProps = {
+ creditsUsedMicro: number;
+};
+
+export const LogConsoleCredits = ({
+ creditsUsedMicro,
+}: LogConsoleCreditsProps) => {
+ const { formatUsageValue } = useUsageValueFormatter();
+
+ return formatUsageValue(
+ creditsUsedMicro / INTERNAL_CREDITS_PER_DISPLAY_CREDIT,
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleCreditsCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleCreditsCell.tsx
new file mode 100644
index 00000000000..8c57c5725b5
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleCreditsCell.tsx
@@ -0,0 +1,23 @@
+import { INTERNAL_CREDITS_PER_DISPLAY_CREDIT } from 'twenty-shared/constants';
+
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+import { useUsageValueFormatter } from '@/settings/usage/hooks/useUsageValueFormatter';
+
+type LogConsoleCreditsCellProps = {
+ creditsUsedMicro: number;
+};
+
+export const LogConsoleCreditsCell = ({
+ creditsUsedMicro,
+}: LogConsoleCreditsCellProps) => {
+ const { formatUsageValue } = useUsageValueFormatter();
+
+ return (
+ <SettingsTableTextCell
+ align="right"
+ text={formatUsageValue(
+ creditsUsedMicro / INTERNAL_CREDITS_PER_DISPLAY_CREDIT,
+ )}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleDetailPanel.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleDetailPanel.tsx
new file mode 100644
index 00000000000..070497afd18
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleDetailPanel.tsx
@@ -0,0 +1,329 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { isNonEmptyString, isString } from '@sniptt/guards';
+import { formatInTimeZone } from 'date-fns-tz';
+import { useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import {
+ IconButton,
+ JsonTree,
+ LightButton,
+ Section,
+} from 'twenty-ui/components';
+import {
+ IconCopy,
+ IconId,
+ IconLayoutSidebarRightCollapse,
+} from 'twenty-ui/icon';
+import { Card } from 'twenty-ui/primitives/surfaces';
+import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
+import { themeCssVariables, useTheme } from 'twenty-ui/theme';
+
+import { allowRequestsToTwentyIconsState } from '@/client-config/states/allowRequestsToTwentyIcons';
+import { TimeFormat } from '@/localization/constants/TimeFormat';
+import { useDateTimeFormat } from '@/localization/hooks/useDateTimeFormat';
+import { StyledLogConsoleFieldsCard } from '@/log-console/components/StyledLogConsoleFieldsCard';
+import { LOG_CONSOLE_NARROW_BODY_MAX_WIDTH } from '@/log-console/constants/LogConsoleNarrowBodyMaxWidth';
+import { useLogConsoleTimeZone } from '@/log-console/hooks/useLogConsoleTimeZone';
+import { logConsoleSelectedLogState } from '@/log-console/states/logConsoleSelectedLogState';
+import { ObjectMetadataIcon } from '@/object-metadata/components/ObjectMetadataIcon';
+import { objectMetadataItemsByIdMapSelector } from '@/object-metadata/states/objectMetadataItemsByIdMapSelector';
+import { getObjectRecordIdentifier } from '@/object-metadata/utils/getObjectRecordIdentifier';
+import { FieldWidgetShowMoreButton } from '@/page-layout/widgets/field/components/FieldWidgetShowMoreButton';
+import { BillingFieldRow } from '@/settings/billing/components/internal/SettingsBillingCardField';
+import { APP_HEADER_HEIGHT } from '@/ui/layout/constants/AppHeaderHeight';
+import { HeaderIdentifier } from '@/ui/layout/page/components/HeaderIdentifier';
+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';
+import { dateLocaleState } from '~/localization/states/dateLocaleState';
+import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
+
+const COLLAPSED_MESSAGE_STACK_LINE_COUNT = 1;
+
+const StyledPanel = styled.aside`
+ border-left: 1px solid ${themeCssVariables.border.color.medium};
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ width: 100%;
+
+ @container log-console-body (max-width: ${LOG_CONSOLE_NARROW_BODY_MAX_WIDTH}px) {
+ border-left: none;
+ inset: 0;
+ position: absolute;
+ width: 100%;
+ }
+`;
+
+const StyledTopBar = styled.div`
+ align-items: center;
+ border-bottom: 1px solid ${themeCssVariables.border.color.light};
+ box-sizing: border-box;
+ display: flex;
+ flex-shrink: 0;
+ gap: ${themeCssVariables.betweenSiblingsGap};
+ height: ${APP_HEADER_HEIGHT}px;
+ padding: 0 ${themeCssVariables.spacing[2]};
+`;
+
+const StyledContent = styled.div`
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[6]};
+ min-height: 0;
+ overflow-y: auto;
+ padding: ${themeCssVariables.spacing[3]};
+`;
+
+const StyledMessageCard = styled(Card.Root)`
+ display: flex;
+ flex-direction: column;
+ font-size: ${themeCssVariables.font.size.sm};
+ gap: ${themeCssVariables.spacing[1]};
+ padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[3]};
+`;
+
+const StyledMessageFirstLine = styled.div`
+ color: ${themeCssVariables.font.color.primary};
+ font-weight: ${themeCssVariables.font.weight.medium};
+ overflow-wrap: anywhere;
+`;
+
+const StyledMessageStackLine = styled.div`
+ color: ${themeCssVariables.font.color.tertiary};
+`;
+
+const StyledCopyableId = styled.div`
+ cursor: pointer;
+ min-width: 0;
+`;
+
+const StyledRawEvent = styled.div`
+ overflow-x: auto;
+`;
+
+export const LogConsoleDetailPanel = () => {
+ const { t } = useLingui();
+ const theme = useTheme();
+ const { copyToClipboard } = useCopyToClipboard();
+ const timeZone = useLogConsoleTimeZone();
+ const { dateFormat, timeFormat } = useDateTimeFormat();
+ const { localeCatalog } = useAtomStateValue(dateLocaleState);
+ const [logConsoleSelectedLog, setLogConsoleSelectedLog] = useAtomState(
+ logConsoleSelectedLogState,
+ );
+ const objectMetadataItemsByIdMap = useAtomStateValue(
+ objectMetadataItemsByIdMapSelector,
+ );
+ const allowRequestsToTwentyIcons = useAtomStateValue(
+ allowRequestsToTwentyIconsState,
+ );
+ const [entryWithExpandedMessage, setEntryWithExpandedMessage] =
+ useState<EventLogRecord>();
+
+ if (!isDefined(logConsoleSelectedLog)) {
+ return null;
+ }
+
+ const { source, entry } = logConsoleSelectedLog;
+ const { __typename, ...rawEvent } = entry;
+ const rawMessage = entry.properties?.message ?? entry.properties?.error;
+ const message: string | undefined = isString(rawMessage)
+ ? rawMessage
+ : undefined;
+ const objectMetadataItem = objectMetadataItemsByIdMap.get(
+ entry.objectMetadataId ?? '',
+ );
+ const recordSnapshot = entry.properties?.after ?? entry.properties?.before;
+
+ const recordIdentifier =
+ isDefined(objectMetadataItem) && isDefined(recordSnapshot)
+ ? getObjectRecordIdentifier({
+ objectMetadataItem,
+ record: recordSnapshot,
+ allowRequestsToTwentyIcons,
+ })
+ : undefined;
+
+ const DetailIcon = source.DetailIcon ?? source.Icon;
+
+ const title = isDefined(recordIdentifier)
+ ? recordIdentifier.name
+ : source.getDetailTitle(entry, { objectMetadataItem });
+
+ const timeWithMillisecondsFormat =
+ timeFormat === TimeFormat.HOUR_12 ? 'h:mm:ss.SSS aa' : 'HH:mm:ss.SSS';
+
+ const formattedTimestamp = formatInTimeZone(
+ entry.timestamp,
+ timeZone,
+ `${timeWithMillisecondsFormat} · ${dateFormat}`,
+ { locale: localeCatalog },
+ );
+
+ const [firstMessageLine, ...messageStackLines] = (message ?? '').split('\n');
+
+ const displayedMessageStackLines =
+ entryWithExpandedMessage === entry
+ ? messageStackLines
+ : messageStackLines.slice(0, COLLAPSED_MESSAGE_STACK_LINE_COUNT);
+
+ const hiddenMessageStackLineCount =
+ messageStackLines.length - displayedMessageStackLines.length;
+
+ const detailItems = [
+ ...source.detailFields.flatMap(({ label, Icon, renderValue }) => {
+ const value = renderValue(entry, {
+ formattedTimestamp,
+ objectMetadataItem,
+ });
+
+ return isDefined(value) ? [{ Icon, label: t(label), value }] : [];
+ }),
+ ...source.idFields.flatMap(({ label, Icon = IconId, getId }) => {
+ const id = getId(entry);
+
+ return isNonEmptyString(id)
+ ? [
+ {
+ Icon,
+ label: t(label),
+ value: (
+ <StyledCopyableId onClick={() => copyToClipboard(id)}>
+ <OverflowingTextWithTooltip
+ text={<>{id}</>}
+ tooltipContent={id}
+ />
+ </StyledCopyableId>
+ ),
+ },
+ ]
+ : [];
+ }),
+ ];
+
+ const closeLabel = t`Close details`;
+
+ return (
+ <StyledPanel>
+ <StyledTopBar>
+ <IconButton
+ size="sm"
+ variant="ghost"
+ tooltip={closeLabel}
+ aria-label={closeLabel}
+ onClick={() => setLogConsoleSelectedLog(null)}
+ >
+ <IconLayoutSidebarRightCollapse />
+ </IconButton>
+ <HeaderIdentifier
+ avatar={
+ isDefined(recordIdentifier)
+ ? {
+ src: getAbsoluteImageUrl(recordIdentifier.avatarUrl ?? ''),
+ name: recordIdentifier.name,
+ colorSeed: recordIdentifier.id,
+ shape: recordIdentifier.avatarShape ?? undefined,
+ }
+ : undefined
+ }
+ icon={
+ isDefined(entry.objectMetadataId) ? (
+ <ObjectMetadataIcon
+ objectMetadataItem={objectMetadataItem}
+ size={theme.icon.size.md}
+ stroke={theme.icon.stroke.sm}
+ />
+ ) : (
+ <DetailIcon
+ size={theme.icon.size.md}
+ stroke={theme.icon.stroke.sm}
+ />
+ )
+ }
+ iconColor={themeCssVariables.font.color.tertiary}
+ title={isNonEmptyString(title) ? title : t`Untitled`}
+ />
+ </StyledTopBar>
+ <StyledContent>
+ {isNonEmptyString(message) && (
+ <Section.Root>
+ <Section.Header
+ title={t`Message`}
+ adornment={
+ <LightButton
+ startIcon={<IconCopy />}
+ onClick={() => copyToClipboard(message)}
+ >
+ {t`Copy`}
+ </LightButton>
+ }
+ />
+ <StyledMessageCard
+ backgroundColor={themeCssVariables.background.secondary}
+ >
+ <StyledMessageFirstLine>
+ {firstMessageLine}
+ </StyledMessageFirstLine>
+ {displayedMessageStackLines.map((messageStackLine, index) => (
+ <StyledMessageStackLine key={index}>
+ <OverflowingTextWithTooltip text={messageStackLine.trim()} />
+ </StyledMessageStackLine>
+ ))}
+ {hiddenMessageStackLineCount > 0 && (
+ <FieldWidgetShowMoreButton
+ remainingCount={hiddenMessageStackLineCount}
+ onClick={() => setEntryWithExpandedMessage(entry)}
+ />
+ )}
+ </StyledMessageCard>
+ </Section.Root>
+ )}
+ {source.renderDetailContent?.(entry)}
+ <Section.Root>
+ <Section.Header title={t`Details`} />
+ <StyledLogConsoleFieldsCard>
+ {detailItems.map(({ Icon, label, value }) => (
+ <BillingFieldRow key={label} Icon={Icon} label={label}>
+ {value}
+ </BillingFieldRow>
+ ))}
+ </StyledLogConsoleFieldsCard>
+ </Section.Root>
+ <Section.Root>
+ <Section.Header
+ title={t`Raw event`}
+ adornment={
+ <LightButton
+ startIcon={<IconCopy />}
+ onClick={() =>
+ copyToClipboard(
+ JSON.stringify(rawEvent, null, 2),
+ t`Log copied as JSON`,
+ )
+ }
+ >
+ {t`Copy as JSON`}
+ </LightButton>
+ }
+ />
+ <StyledRawEvent>
+ <JsonTree
+ value={rawEvent}
+ emptyArrayLabel={t`Empty Array`}
+ emptyObjectLabel={t`Empty Object`}
+ emptyStringLabel={t`[empty string]`}
+ arrowButtonCollapsedLabel={t`Expand`}
+ arrowButtonExpandedLabel={t`Collapse`}
+ onNodeValueClick={copyToClipboard}
+ />
+ </StyledRawEvent>
+ </Section.Root>
+ </StyledContent>
+ </StyledPanel>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberAvatar.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberAvatar.tsx
new file mode 100644
index 00000000000..ffa04aa731c
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberAvatar.tsx
@@ -0,0 +1,27 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { IconLifebuoy } from 'twenty-ui/icon';
+
+import { type LogConsoleMember } from '@/log-console/types/LogConsoleMember';
+import { AvatarOrIcon } from '@/ui/field/display/components/internal/AvatarOrIcon/AvatarOrIcon';
+import { getActorSourceIcon } from '@/ui/field/display/utils/getActorSourceIcon';
+import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
+
+type LogConsoleMemberAvatarProps = {
+ member: LogConsoleMember;
+};
+
+export const LogConsoleMemberAvatar = ({
+ member,
+}: LogConsoleMemberAvatarProps) => (
+ <AvatarOrIcon
+ colorSeed={member.workspaceMemberId ?? undefined}
+ shape={isNonEmptyString(member.workspaceMemberId) ? 'circle' : 'square'}
+ name={member.name}
+ Icon={
+ member.isSupportTeam
+ ? IconLifebuoy
+ : getActorSourceIcon({ source: member.source, context: member.context })
+ }
+ src={getAbsoluteImageUrl(member.avatarUrl ?? undefined)}
+ />
+);
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberCell.tsx
new file mode 100644
index 00000000000..b8e07078e41
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberCell.tsx
@@ -0,0 +1,26 @@
+import { isDefined } from 'twenty-shared/utils';
+
+import { LogConsoleMemberAvatar } from '@/log-console/components/LogConsoleMemberAvatar';
+import { useLogConsoleMember } from '@/log-console/hooks/useLogConsoleMember';
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+
+type LogConsoleMemberCellProps = {
+ userId?: string | null;
+ userWorkspaceId?: string | null;
+ actor?: Partial<FieldActorValue>;
+ isImpersonator?: boolean;
+};
+
+export const LogConsoleMemberCell = (props: LogConsoleMemberCellProps) => {
+ const member = useLogConsoleMember(props);
+
+ return (
+ <SettingsTableTextCell
+ startElement={
+ isDefined(member) ? <LogConsoleMemberAvatar member={member} /> : null
+ }
+ text={member?.name}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberChip.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberChip.tsx
new file mode 100644
index 00000000000..2a4346bd735
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleMemberChip.tsx
@@ -0,0 +1,34 @@
+import { useLingui } from '@lingui/react/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { Chip } from 'twenty-ui/primitives/data-display';
+
+import { LogConsoleMemberAvatar } from '@/log-console/components/LogConsoleMemberAvatar';
+import { useLogConsoleMember } from '@/log-console/hooks/useLogConsoleMember';
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+
+type LogConsoleMemberChipProps = {
+ userId?: string | null;
+ userWorkspaceId?: string | null;
+ actor?: Partial<FieldActorValue>;
+ isImpersonator?: boolean;
+};
+
+export const LogConsoleMemberChip = (props: LogConsoleMemberChipProps) => {
+ const { t } = useLingui();
+ const member = useLogConsoleMember(props);
+
+ if (!isDefined(member)) {
+ return null;
+ }
+
+ return (
+ <Chip
+ emptyLabel={t`Untitled`}
+ variant="ghost"
+ startElement={<LogConsoleMemberAvatar member={member} />}
+ style={{ paddingInlineStart: 0 }}
+ >
+ {member.name ?? ''}
+ </Chip>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleObjectCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleObjectCell.tsx
new file mode 100644
index 00000000000..afbd2c5dccf
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleObjectCell.tsx
@@ -0,0 +1,38 @@
+import { isDefined } from 'twenty-shared/utils';
+import { useTheme } from 'twenty-ui/theme';
+
+import { ObjectMetadataIcon } from '@/object-metadata/components/ObjectMetadataIcon';
+import { objectMetadataItemsByIdMapSelector } from '@/object-metadata/states/objectMetadataItemsByIdMapSelector';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+type LogConsoleObjectCellProps = {
+ entry: EventLogRecord;
+};
+
+export const LogConsoleObjectCell = ({ entry }: LogConsoleObjectCellProps) => {
+ const theme = useTheme();
+ const objectMetadataItemsByIdMap = useAtomStateValue(
+ objectMetadataItemsByIdMapSelector,
+ );
+
+ const objectMetadataItem = objectMetadataItemsByIdMap.get(
+ entry.objectMetadataId ?? '',
+ );
+
+ return (
+ <SettingsTableTextCell
+ startElement={
+ isDefined(objectMetadataItem) ? (
+ <ObjectMetadataIcon
+ objectMetadataItem={objectMetadataItem}
+ size={theme.icon.size.sm}
+ stroke={theme.icon.stroke.sm}
+ />
+ ) : null
+ }
+ text={objectMetadataItem?.labelSingular}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordCell.tsx
new file mode 100644
index 00000000000..e533a1016cb
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordCell.tsx
@@ -0,0 +1,74 @@
+import { useLingui } from '@lingui/react/macro';
+import { isNonEmptyString } from '@sniptt/guards';
+import { isDefined } from 'twenty-shared/utils';
+import { useTheme } from 'twenty-ui/theme';
+
+import { allowRequestsToTwentyIconsState } from '@/client-config/states/allowRequestsToTwentyIcons';
+import { getLogConsoleRecordLabel } from '@/log-console/utils/getLogConsoleRecordLabel';
+import { ObjectMetadataIcon } from '@/object-metadata/components/ObjectMetadataIcon';
+import { objectMetadataItemsByIdMapSelector } from '@/object-metadata/states/objectMetadataItemsByIdMapSelector';
+import { getObjectRecordIdentifier } from '@/object-metadata/utils/getObjectRecordIdentifier';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+import { AvatarOrIcon } from '@/ui/field/display/components/internal/AvatarOrIcon/AvatarOrIcon';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
+
+type LogConsoleRecordCellProps = {
+ entry: EventLogRecord;
+};
+
+export const LogConsoleRecordCell = ({ entry }: LogConsoleRecordCellProps) => {
+ const { t } = useLingui();
+ const theme = useTheme();
+ const objectMetadataItemsByIdMap = useAtomStateValue(
+ objectMetadataItemsByIdMapSelector,
+ );
+ const allowRequestsToTwentyIcons = useAtomStateValue(
+ allowRequestsToTwentyIconsState,
+ );
+
+ const objectMetadataItem = objectMetadataItemsByIdMap.get(
+ entry.objectMetadataId ?? '',
+ );
+ const recordSnapshot = entry.properties?.after ?? entry.properties?.before;
+
+ if (isDefined(objectMetadataItem) && isDefined(recordSnapshot)) {
+ const recordIdentifier = getObjectRecordIdentifier({
+ objectMetadataItem,
+ record: recordSnapshot,
+ allowRequestsToTwentyIcons,
+ });
+
+ return (
+ <SettingsTableTextCell
+ startElement={
+ <AvatarOrIcon
+ name={recordIdentifier.name}
+ colorSeed={recordIdentifier.id}
+ shape={recordIdentifier.avatarShape ?? undefined}
+ src={getAbsoluteImageUrl(recordIdentifier.avatarUrl ?? '')}
+ />
+ }
+ text={
+ isNonEmptyString(recordIdentifier.name)
+ ? recordIdentifier.name
+ : t`Untitled`
+ }
+ />
+ );
+ }
+
+ return (
+ <SettingsTableTextCell
+ startElement={
+ <ObjectMetadataIcon
+ objectMetadataItem={objectMetadataItem}
+ size={theme.icon.size.sm}
+ stroke={theme.icon.stroke.sm}
+ />
+ }
+ text={getLogConsoleRecordLabel({ entry, objectMetadataItem })}
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx
new file mode 100644
index 00000000000..e222c23b9ba
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleRecordChangeDetail.tsx
@@ -0,0 +1,169 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { useId } from 'react';
+import { ErrorBoundary } from 'react-error-boundary';
+import { FieldMetadataType } from 'twenty-shared/types';
+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
+import { Section } from 'twenty-ui/components';
+import { IconArrowUpRight, useIcons } from 'twenty-ui/icon';
+import { Button } from 'twenty-ui/primitives/input';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { EventFieldDiffValue } from '@/activities/timeline-activities/rows/main-object/components/EventFieldDiffValue';
+import { EventFieldDiffValueEffect } from '@/activities/timeline-activities/rows/main-object/components/EventFieldDiffValueEffect';
+import { EventRelationFieldDiffValues } from '@/activities/timeline-activities/rows/main-object/components/EventRelationFieldDiffValues';
+import { StyledLogConsoleFieldsCard } from '@/log-console/components/StyledLogConsoleFieldsCard';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { getLogConsoleRecordChangeFieldDiffs } from '@/log-console/utils/getLogConsoleRecordChangeFieldDiffs';
+import { isLogConsoleFieldValueEmpty } from '@/log-console/utils/isLogConsoleFieldValueEmpty';
+import { objectMetadataItemsByIdMapSelector } from '@/object-metadata/states/objectMetadataItemsByIdMapSelector';
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { BillingFieldRow } from '@/settings/billing/components/internal/SettingsBillingCardField';
+import { useOpenRecordInSidePanel } from '@/side-panel/hooks/useOpenRecordInSidePanel';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+const StyledRecordChange = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[2]};
+`;
+
+const StyledEmptyValue = styled.span`
+ color: ${themeCssVariables.font.color.tertiary};
+`;
+
+const StyledOpenRecordButton = styled(Button)`
+ align-self: flex-start;
+`;
+
+type LogConsoleRecordChangeDetailProps = {
+ entry: EventLogRecord;
+};
+
+export const LogConsoleRecordChangeDetail = ({
+ entry,
+}: LogConsoleRecordChangeDetailProps) => {
+ const { t } = useLingui();
+ const { getIcon } = useIcons();
+ const diffId = useId();
+ const { openRecordInSidePanel } = useOpenRecordInSidePanel();
+ const objectMetadataItemsByIdMap = useAtomStateValue(
+ objectMetadataItemsByIdMapSelector,
+ );
+
+ const action = LOG_CONSOLE_RECORD_ACTIONS[entry.event];
+ const objectMetadataItem = objectMetadataItemsByIdMap.get(
+ entry.objectMetadataId ?? '',
+ );
+ const recordSnapshot = entry.properties?.after ?? entry.properties?.before;
+
+ if (!isDefined(action) || !isDefined(objectMetadataItem)) {
+ return null;
+ }
+
+ const fieldDiffs = getLogConsoleRecordChangeFieldDiffs({
+ entry,
+ objectMetadataItem,
+ });
+
+ const displayedSnapshot = action.valuesSnapshot ?? 'after';
+
+ const renderFieldValue = ({
+ fieldDiff,
+ recordStoreId,
+ }: {
+ fieldDiff: {
+ fieldMetadataItem: FieldMetadataItem;
+ before?: unknown;
+ after?: unknown;
+ };
+ recordStoreId: string;
+ }) => {
+ const { fieldMetadataItem } = fieldDiff;
+ const value = fieldDiff[displayedSnapshot];
+
+ if (isLogConsoleFieldValueEmpty({ fieldMetadataItem, value })) {
+ return <StyledEmptyValue>{t`Empty`}</StyledEmptyValue>;
+ }
+
+ if (fieldMetadataItem.type === FieldMetadataType.RELATION) {
+ return (
+ <EventRelationFieldDiffValues
+ fieldDiff={
+ isDefined(action.valuesSnapshot)
+ ? { before: value, after: value }
+ : { before: fieldDiff.before, after: fieldDiff.after }
+ }
+ fieldMetadataItem={fieldMetadataItem}
+ />
+ );
+ }
+
+ return (
+ <>
+ <EventFieldDiffValueEffect
+ diffArtificialRecordStoreId={recordStoreId}
+ diffRecord={value as Record<string, unknown>}
+ mainObjectMetadataItem={objectMetadataItem}
+ fieldMetadataItem={fieldMetadataItem}
+ />
+ <EventFieldDiffValue
+ diffArtificialRecordStoreId={recordStoreId}
+ mainObjectMetadataItem={objectMetadataItem}
+ fieldMetadataItem={fieldMetadataItem}
+ />
+ </>
+ );
+ };
+
+ return (
+ <StyledRecordChange>
+ {isDefined(action.valuesTitle) &&
+ (isNonEmptyArray(fieldDiffs) || !isDefined(recordSnapshot)) && (
+ <Section.Root>
+ <Section.Header
+ title={t(action.valuesTitle)}
+ description={
+ isDefined(recordSnapshot)
+ ? undefined
+ : t`Permanently deleted records keep no values.`
+ }
+ />
+ {isNonEmptyArray(fieldDiffs) && (
+ <StyledLogConsoleFieldsCard>
+ {fieldDiffs.map((fieldDiff) => (
+ <BillingFieldRow
+ key={fieldDiff.key}
+ Icon={getIcon(fieldDiff.fieldMetadataItem.icon)}
+ label={fieldDiff.fieldMetadataItem.label}
+ >
+ <ErrorBoundary fallbackRender={() => null}>
+ {renderFieldValue({
+ fieldDiff,
+ recordStoreId: `${diffId}-${fieldDiff.key}`,
+ })}
+ </ErrorBoundary>
+ </BillingFieldRow>
+ ))}
+ </StyledLogConsoleFieldsCard>
+ )}
+ </Section.Root>
+ )}
+ {isDefined(recordSnapshot) && isDefined(recordSnapshot.id) && (
+ <StyledOpenRecordButton
+ size="sm"
+ startIcon={<IconArrowUpRight />}
+ onClick={() =>
+ openRecordInSidePanel({
+ recordId: recordSnapshot.id,
+ objectNameSingular: objectMetadataItem.nameSingular,
+ })
+ }
+ >
+ {t`Open record`}
+ </StyledOpenRecordButton>
+ )}
+ </StyledRecordChange>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleResults.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleResults.tsx
new file mode 100644
index 00000000000..bd76779eab5
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleResults.tsx
@@ -0,0 +1,234 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { IconButton } from 'twenty-ui/components';
+import {
+ IconEraser,
+ IconPlayerPause,
+ IconPlayerPlay,
+ IconRefresh,
+} from 'twenty-ui/icon';
+
+import { LogConsoleTable } from '@/log-console/components/LogConsoleTable';
+import { LogConsoleTimeRangeDropdown } from '@/log-console/components/LogConsoleTimeRangeDropdown';
+import { LogConsoleToolbar } from '@/log-console/components/LogConsoleToolbar';
+import { LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID } from '@/log-console/constants/LogConsoleTableScrollWrapperId';
+import { useLogConsoleRetention } from '@/log-console/hooks/useLogConsoleRetention';
+import { useLogConsoleTimeZone } from '@/log-console/hooks/useLogConsoleTimeZone';
+import { logConsoleFiltersState } from '@/log-console/states/logConsoleFiltersState';
+import { logConsoleSelectedLogState } from '@/log-console/states/logConsoleSelectedLogState';
+import { logConsoleTimeRangeState } from '@/log-console/states/logConsoleTimeRangeState';
+import { type LogConsoleFilter } from '@/log-console/types/LogConsoleFilter';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { type LogConsoleTimeRange } from '@/log-console/types/LogConsoleTimeRange';
+import { getLogConsoleFieldFilters } from '@/log-console/utils/getLogConsoleFieldFilters';
+import { getLogConsoleTimeRangeBounds } from '@/log-console/utils/getLogConsoleTimeRangeBounds';
+import { isLogConsoleTimeRangeWithinRetention } from '@/log-console/utils/isLogConsoleTimeRangeWithinRetention';
+import { SettingsEmptyPlaceholder } from '@/settings/components/SettingsEmptyPlaceholder';
+import { useEventLogsLiveStream } from '@/settings/event-logs/hooks/useEventLogsLiveStream';
+import { useEventLogs } from '@/settings/event-logs/hooks/useQueryEventLogs';
+import { useScrollWrapperHTMLElement } from '@/ui/utilities/scroll/hooks/useScrollWrapperHTMLElement';
+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+import { sortByProperty } from '~/utils/array/sortByProperty';
+
+const RECORDS_PER_PAGE = 100;
+
+const sortNewestFirst = (eventLogRecords: EventLogRecord[]) =>
+ eventLogRecords.toSorted(sortByProperty('timestamp')).toReversed();
+
+const StyledResults = styled.div`
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ min-height: 0;
+`;
+
+type LogConsoleResultsProps = {
+ source: LogConsoleSource;
+};
+
+export const LogConsoleResults = ({ source }: LogConsoleResultsProps) => {
+ const { t } = useLingui();
+ const timeZone = useLogConsoleTimeZone();
+ const { retentionInDays } = useLogConsoleRetention(source);
+
+ const [logConsoleSelectedLog, setLogConsoleSelectedLog] = useAtomState(
+ logConsoleSelectedLogState,
+ );
+ const [logConsoleTimeRange, setLogConsoleTimeRange] = useAtomState(
+ logConsoleTimeRangeState,
+ );
+ const [logConsoleFilters, setLogConsoleFilters] = useAtomState(
+ logConsoleFiltersState,
+ );
+ const [refreshedAt, setRefreshedAt] = useState(() =>
+ new Date().toISOString(),
+ );
+ const [pausedLiveRecords, setPausedLiveRecords] =
+ useState<EventLogRecord[]>();
+ const [clearedLiveRecordCount, setClearedLiveRecordCount] =
+ useState<number>();
+
+ const timeRange = isLogConsoleTimeRangeWithinRetention({
+ timeRange: logConsoleTimeRange,
+ retentionInDays,
+ })
+ ? logConsoleTimeRange
+ : '24h';
+
+ const fieldFilters = getLogConsoleFieldFilters({
+ source,
+ filters: logConsoleFilters,
+ });
+
+ const getDateRange = (now: string) =>
+ getLogConsoleTimeRangeBounds({ timeRange, now, timeZone });
+
+ const getEventLogsInput = (now: string) => ({
+ table: source.table,
+ first: RECORDS_PER_PAGE,
+ filters: { dateRange: getDateRange(now), fieldFilters },
+ });
+
+ const dateRange = getDateRange(refreshedAt);
+
+ const isLive = !isDefined(dateRange.end);
+ const isPaused = isDefined(pausedLiveRecords);
+
+ const { records, hasNextPage, loading, error, loadMore, refetch } =
+ useEventLogs(getEventLogsInput(refreshedAt));
+
+ const { liveRecords, clearLiveRecords } = useEventLogsLiveStream({
+ table: source.table,
+ fieldFilters,
+ enabled: isLive,
+ });
+
+ const displayedLiveRecords = pausedLiveRecords ?? liveRecords;
+
+ const isCleared = isDefined(clearedLiveRecordCount);
+
+ const liveEntries = sortNewestFirst(
+ isCleared
+ ? displayedLiveRecords.slice(
+ 0,
+ displayedLiveRecords.length - clearedLiveRecordCount,
+ )
+ : displayedLiveRecords,
+ );
+
+ const displayedEntryCount = records.length + displayedLiveRecords.length;
+
+ const { getScrollWrapperElement } = useScrollWrapperHTMLElement(
+ LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID,
+ );
+
+ const scrollToTop = () => {
+ getScrollWrapperElement().scrollWrapperElement?.scrollTo({ top: 0 });
+ };
+
+ const restartLogs = (now: string) => {
+ scrollToTop();
+ setRefreshedAt(now);
+ clearLiveRecords();
+ setPausedLiveRecords(isPaused ? [] : undefined);
+ setClearedLiveRecordCount(undefined);
+ };
+
+ const refreshLogs = () => {
+ const now = new Date().toISOString();
+
+ restartLogs(now);
+ void refetch({ input: getEventLogsInput(now) });
+ };
+
+ const clearLogs = () => {
+ scrollToTop();
+ setPausedLiveRecords(undefined);
+ setClearedLiveRecordCount(liveRecords.length);
+ };
+
+ const togglePause = () => {
+ setPausedLiveRecords(isPaused ? undefined : liveRecords);
+ };
+
+ const changeTimeRange = (selectedTimeRange: LogConsoleTimeRange) => {
+ restartLogs(new Date().toISOString());
+ setLogConsoleTimeRange(selectedTimeRange);
+ };
+
+ const changeFilters = (filters: LogConsoleFilter[]) => {
+ restartLogs(new Date().toISOString());
+ setLogConsoleFilters(filters);
+ };
+
+ const openLog = (entry: EventLogRecord) => {
+ setLogConsoleSelectedLog({ source, entry });
+ };
+
+ const isStreaming = isLive && !isDefined(error);
+
+ const logsAction = isStreaming
+ ? { label: t`Clear`, Icon: IconEraser, onClick: clearLogs }
+ : { label: t`Refresh`, Icon: IconRefresh, onClick: refreshLogs };
+
+ const pauseLabel = isPaused ? t`Resume` : t`Pause`;
+
+ const renderLogs = () => {
+ if (isDefined(error)) {
+ return (
+ <SettingsEmptyPlaceholder>
+ {t`Something went wrong while loading logs. Please try again.`}
+ </SettingsEmptyPlaceholder>
+ );
+ }
+
+ if (!loading && displayedEntryCount === 0) {
+ return (
+ <SettingsEmptyPlaceholder>{t`No event logs found`}</SettingsEmptyPlaceholder>
+ );
+ }
+
+ return (
+ <LogConsoleTable
+ source={source}
+ entries={isCleared ? liveEntries : [...liveEntries, ...records]}
+ liveEntryCount={liveEntries.length}
+ loading={loading && !isCleared}
+ hasNextPage={hasNextPage && !isCleared}
+ selectedEntry={logConsoleSelectedLog?.entry}
+ onLoadMore={loadMore}
+ onEntryClick={openLog}
+ />
+ );
+ };
+
+ return (
+ <StyledResults>
+ <LogConsoleToolbar
+ filterFields={source.filterFields ?? []}
+ filters={logConsoleFilters}
+ onFiltersChange={changeFilters}
+ logsAction={logsAction}
+ >
+ {isStreaming && (
+ <IconButton
+ tooltip={pauseLabel}
+ aria-label={pauseLabel}
+ onClick={togglePause}
+ >
+ {isPaused ? <IconPlayerPlay /> : <IconPlayerPause />}
+ </IconButton>
+ )}
+ <LogConsoleTimeRangeDropdown
+ source={source}
+ timeRange={timeRange}
+ onTimeRangeChange={changeTimeRange}
+ />
+ </LogConsoleToolbar>
+ {renderLogs()}
+ </StyledResults>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleTable.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleTable.tsx
new file mode 100644
index 00000000000..cc249ceaf14
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleTable.tsx
@@ -0,0 +1,208 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { Fragment } from 'react';
+import { useInView } from 'react-intersection-observer';
+import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
+import { isDefined } from 'twenty-shared/utils';
+import { themeCssVariables, useTheme } from 'twenty-ui/theme';
+
+import { LOG_CONSOLE_ANIMATION_EASING } from '@/log-console/constants/LogConsoleAnimationEasing';
+import { LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID } from '@/log-console/constants/LogConsoleTableScrollWrapperId';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { Table } from '@/ui/layout/table/components/Table';
+import { TableCell } from '@/ui/layout/table/components/TableCell';
+import { TableHeader } from '@/ui/layout/table/components/TableHeader';
+import { TableRow } from '@/ui/layout/table/components/TableRow';
+import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
+import { useScrollWrapperHTMLElement } from '@/ui/utilities/scroll/hooks/useScrollWrapperHTMLElement';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
+
+const SKELETON_ROW_COUNT = 8;
+
+const StyledHeaderRow = styled(TableRow)`
+ background-color: ${themeCssVariables.background.primary};
+ border-radius: 0;
+ box-shadow: inset 0 -1px 0 ${themeCssVariables.border.color.light};
+ position: sticky;
+ top: 0;
+ z-index: 2;
+`;
+
+const StyledLiveEntryRow = styled(TableRow)`
+ animation:
+ logConsoleLiveEntryEntrance
+ calc(${themeCssVariables.animation.duration.normal} * 1s)
+ ${LOG_CONSOLE_ANIMATION_EASING},
+ logConsoleLiveEntryHighlight
+ calc(${themeCssVariables.animation.duration.slow} * 1s) ease-out;
+ overflow: hidden;
+
+ @keyframes logConsoleLiveEntryEntrance {
+ from {
+ height: 0;
+ opacity: 0;
+ }
+ }
+
+ @keyframes logConsoleLiveEntryHighlight {
+ from {
+ background-color: ${themeCssVariables.accent.quaternary};
+ }
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ animation: none;
+ }
+`;
+
+const StyledTable = styled(Table)`
+ box-sizing: border-box;
+ min-width: min-content;
+ padding-inline: ${themeCssVariables.spacing[3]};
+
+ > [data-table-row] > :first-child {
+ background-color: ${themeCssVariables.background.primary};
+ border-radius: ${themeCssVariables.border.radius.md} 0 0
+ ${themeCssVariables.border.radius.md};
+ left: 0;
+ position: sticky;
+ z-index: 1;
+ }
+
+ > [data-table-row][data-clickable='true']:hover > :first-child,
+ > [data-table-row][data-expanded] > :first-child {
+ box-shadow: inset 0 0 0 100vmax
+ ${themeCssVariables.background.transparent.light};
+ }
+`;
+
+const StyledLoadMoreTrigger = styled.div`
+ height: 1px;
+`;
+
+type LogConsoleTableProps = {
+ source: LogConsoleSource;
+ entries: EventLogRecord[];
+ liveEntryCount: number;
+ loading: boolean;
+ hasNextPage: boolean;
+ selectedEntry?: EventLogRecord;
+ onLoadMore: () => void;
+ onEntryClick: (entry: EventLogRecord) => void;
+};
+
+export const LogConsoleTable = ({
+ source,
+ entries,
+ liveEntryCount,
+ loading,
+ hasNextPage,
+ selectedEntry,
+ onLoadMore,
+ onEntryClick,
+}: LogConsoleTableProps) => {
+ const { t } = useLingui();
+ const theme = useTheme();
+
+ const { scrollWrapperHTMLElement } = useScrollWrapperHTMLElement(
+ LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID,
+ );
+
+ const { ref: loadMoreTriggerRef } = useInView({
+ root: scrollWrapperHTMLElement,
+ rootMargin: '400px',
+ onChange: (inView) => {
+ if (inView) {
+ onLoadMore();
+ }
+ },
+ });
+
+ const columns = source.columns;
+
+ const gridTemplateColumns = columns
+ .map((column) => column.gridTrack)
+ .join(' ');
+
+ const isInitialLoading = loading && entries.length === 0;
+
+ const isLoadingNextPage = loading && hasNextPage;
+
+ const storedEntryCount = entries.length - liveEntryCount;
+
+ const renderEntryRow = (
+ entry: EventLogRecord,
+ key: number,
+ isLiveEntry: boolean,
+ ) => {
+ const EntryRow = isLiveEntry ? StyledLiveEntryRow : TableRow;
+
+ return (
+ <EntryRow
+ key={key}
+ gridTemplateColumns={gridTemplateColumns}
+ height={themeCssVariables.spacing[8]}
+ isClickable
+ isExpanded={
+ isDefined(selectedEntry) && isDeeplyEqual(entry, selectedEntry)
+ }
+ onClick={() => onEntryClick(entry)}
+ >
+ {columns.map((column) => (
+ <Fragment key={column.id}>{column.renderCell(entry)}</Fragment>
+ ))}
+ </EntryRow>
+ );
+ };
+
+ return (
+ <ScrollWrapper componentInstanceId={LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID}>
+ <StyledTable>
+ <StyledHeaderRow
+ gridTemplateColumns={gridTemplateColumns}
+ hoverBackgroundColor={themeCssVariables.background.primary}
+ >
+ {columns.map((column) => (
+ <TableHeader key={column.id} align={column.align}>
+ {t(column.label)}
+ </TableHeader>
+ ))}
+ </StyledHeaderRow>
+ {entries.map((entry, entryIndex) =>
+ renderEntryRow(
+ entry,
+ liveEntryCount - entryIndex,
+ entryIndex < liveEntryCount,
+ ),
+ )}
+ {hasNextPage && (
+ <StyledLoadMoreTrigger
+ key={storedEntryCount}
+ ref={loadMoreTriggerRef}
+ />
+ )}
+ {(isInitialLoading || isLoadingNextPage) && (
+ <SkeletonTheme
+ baseColor={theme.background.tertiary}
+ highlightColor={theme.background.transparent.lighter}
+ borderRadius={4}
+ >
+ {Array.from({ length: SKELETON_ROW_COUNT }, (_, rowIndex) => (
+ <TableRow
+ key={`skel-${rowIndex}`}
+ gridTemplateColumns={gridTemplateColumns}
+ >
+ {columns.map((column) => (
+ <TableCell key={column.id}>
+ <Skeleton width={80} height={16} />
+ </TableCell>
+ ))}
+ </TableRow>
+ ))}
+ </SkeletonTheme>
+ )}
+ </StyledTable>
+ </ScrollWrapper>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeCell.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeCell.tsx
new file mode 100644
index 00000000000..8e1d8000699
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeCell.tsx
@@ -0,0 +1,58 @@
+import { styled } from '@linaria/react';
+import { formatInTimeZone } from 'date-fns-tz';
+import { Tooltip } from 'twenty-ui/primitives/surfaces';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { DATE_FORMAT_WITHOUT_YEAR } from '@/localization/constants/DateFormatWithoutYear';
+import { TimeFormat } from '@/localization/constants/TimeFormat';
+import { useDateTimeFormat } from '@/localization/hooks/useDateTimeFormat';
+import { getWorkspaceDateFormatFromDateFormat } from '@/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat';
+import { useLogConsoleTimeZone } from '@/log-console/hooks/useLogConsoleTimeZone';
+import { SettingsNameCellSecondaryLabel } from '@/settings/components/SettingsNameCellSecondaryLabel';
+import { StyledNameTableCell } from '@/settings/data-model/object-details/components/SettingsObjectItemTableRowStyledComponents';
+import { TooltipDelay } from '@/ui/layout/tooltip/constants/TooltipDelay';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { dateLocaleState } from '~/localization/states/dateLocaleState';
+import { beautifyPastDateRelativeToNow } from '~/utils/date-utils';
+
+const StyledTimeAndDate = styled.span`
+ align-items: center;
+ display: flex;
+ font-family: ${themeCssVariables.code.font.family}, monospace;
+ gap: ${themeCssVariables.spacing[1]};
+ min-width: 0;
+`;
+
+type LogConsoleTimeCellProps = {
+ timestamp: string;
+};
+
+export const LogConsoleTimeCell = ({ timestamp }: LogConsoleTimeCellProps) => {
+ const timeZone = useLogConsoleTimeZone();
+ const { dateFormat, timeFormat } = useDateTimeFormat();
+ const { localeCatalog } = useAtomStateValue(dateLocaleState);
+
+ const dayAndMonthFormat =
+ DATE_FORMAT_WITHOUT_YEAR[getWorkspaceDateFormatFromDateFormat(dateFormat)];
+ const timeWithMillisecondsFormat =
+ timeFormat === TimeFormat.HOUR_12 ? 'h:mm:ss.SSS aa' : 'HH:mm:ss.SSS';
+
+ const formatTimestamp = (format: string) =>
+ formatInTimeZone(timestamp, timeZone, format, { locale: localeCatalog });
+
+ return (
+ <StyledNameTableCell overflow="hidden" whiteSpace="nowrap">
+ <Tooltip
+ content={beautifyPastDateRelativeToNow(timestamp, localeCatalog)}
+ delay={TooltipDelay.mediumDelay}
+ >
+ <StyledTimeAndDate>
+ {formatTimestamp(timeWithMillisecondsFormat)}
+ <SettingsNameCellSecondaryLabel>
+ {formatTimestamp(dayAndMonthFormat)}
+ </SettingsNameCellSecondaryLabel>
+ </StyledTimeAndDate>
+ </Tooltip>
+ </StyledNameTableCell>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeRangeDropdown.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeRangeDropdown.tsx
new file mode 100644
index 00000000000..1c1ea00e692
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleTimeRangeDropdown.tsx
@@ -0,0 +1,194 @@
+import { plural } from '@lingui/core/macro';
+import { useLingui } from '@lingui/react/macro';
+import { useState } from 'react';
+import { SettingsPath } from 'twenty-shared/types';
+import { typedObjectEntries } from 'twenty-shared/utils';
+import {
+ IconCalendarEvent,
+ IconChevronDown,
+ IconChevronLeft,
+} from 'twenty-ui/icon';
+import { Button } from 'twenty-ui/primitives/input';
+import { ListItem } from 'twenty-ui/primitives/navigation';
+import { Tooltip } from 'twenty-ui/primitives/surfaces';
+
+import { useDateTimeFormat } from '@/localization/hooks/useDateTimeFormat';
+import { LOG_CONSOLE_TIME_RANGE_PRESETS } from '@/log-console/constants/LogConsoleTimeRangePresets';
+import { useLogConsoleRetention } from '@/log-console/hooks/useLogConsoleRetention';
+import { logConsoleTimeZoneState } from '@/log-console/states/logConsoleTimeZoneState';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { type LogConsoleTimeRange } from '@/log-console/types/LogConsoleTimeRange';
+import { isLogConsoleTimeRangeWithinRetention } from '@/log-console/utils/isLogConsoleTimeRangeWithinRetention';
+import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
+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 { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator';
+import { LegacyDropdownContent } from '@/ui/layout/dropdown/components/LegacyDropdownContent';
+import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
+import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { useNavigateSettings } from '~/hooks/useNavigateSettings';
+
+const LOG_CONSOLE_TIME_RANGE_DROPDOWN_ID = 'log-console-time-range';
+
+type LogConsoleTimeRangeDropdownProps = {
+ source: LogConsoleSource;
+ timeRange: LogConsoleTimeRange;
+ onTimeRangeChange: (timeRange: LogConsoleTimeRange) => void;
+};
+
+export const LogConsoleTimeRangeDropdown = ({
+ source,
+ timeRange,
+ onTimeRangeChange,
+}: LogConsoleTimeRangeDropdownProps) => {
+ const { t } = useLingui();
+ const { timeZone: memberTimeZone } = useDateTimeFormat();
+ const { retentionInDays, retentionDescription } =
+ useLogConsoleRetention(source);
+ const [logConsoleTimeZone, setLogConsoleTimeZone] = useAtomState(
+ logConsoleTimeZoneState,
+ );
+ const [isTimeZoneMenuOpen, setIsTimeZoneMenuOpen] = useState(false);
+ const { closeDropdown } = useCloseDropdown();
+ const navigateSettings = useNavigateSettings();
+
+ const timeZoneOptions = [
+ { value: 'member', label: memberTimeZone },
+ { value: 'utc', label: 'UTC' },
+ ] as const;
+
+ const selectedTimeZoneLabel =
+ logConsoleTimeZone === 'utc' ? 'UTC' : memberTimeZone;
+
+ const getTimeRangeLabel = (labeledTimeRange: LogConsoleTimeRange) => {
+ if (labeledTimeRange === 'today') {
+ return t`Today`;
+ }
+
+ if (labeledTimeRange === 'yesterday') {
+ return t`Yesterday`;
+ }
+
+ return t(LOG_CONSOLE_TIME_RANGE_PRESETS[labeledTimeRange].label);
+ };
+
+ const selectTimeRange = (selectedTimeRange: LogConsoleTimeRange) => {
+ onTimeRangeChange(selectedTimeRange);
+ closeDropdown(LOG_CONSOLE_TIME_RANGE_DROPDOWN_ID);
+ };
+
+ const openRetentionSettings = () => {
+ closeDropdown(LOG_CONSOLE_TIME_RANGE_DROPDOWN_ID);
+ navigateSettings(SettingsPath.Security);
+ };
+
+ const renderTimeRangeItem = (itemTimeRange: LogConsoleTimeRange) => {
+ const isWithinRetention = isLogConsoleTimeRangeWithinRetention({
+ timeRange: itemTimeRange,
+ retentionInDays,
+ });
+
+ return (
+ <Tooltip
+ key={itemTimeRange}
+ content={retentionDescription}
+ disabled={isWithinRetention}
+ side="right"
+ >
+ <ListItem
+ role="option"
+ aria-selected={itemTimeRange === timeRange}
+ selected={itemTimeRange === timeRange}
+ indicator="check"
+ disabled={!isWithinRetention}
+ onClick={() => selectTimeRange(itemTimeRange)}
+ >
+ {getTimeRangeLabel(itemTimeRange)}
+ </ListItem>
+ </Tooltip>
+ );
+ };
+
+ return (
+ <Dropdown
+ dropdownId={LOG_CONSOLE_TIME_RANGE_DROPDOWN_ID}
+ dropdownPlacement="bottom-end"
+ dropdownOffset={{ y: 8 }}
+ clickableComponent={
+ <Button startIcon={<IconCalendarEvent />} endIcon={<IconChevronDown />}>
+ {getTimeRangeLabel(timeRange)}
+ </Button>
+ }
+ onClose={() => setIsTimeZoneMenuOpen(false)}
+ dropdownComponents={
+ isTimeZoneMenuOpen ? (
+ <LegacyDropdownContent
+ widthInPixels={GenericDropdownContentWidth.Large}
+ >
+ <DropdownMenuHeader
+ StartComponent={
+ <DropdownMenuHeaderLeftComponent
+ onClick={() => setIsTimeZoneMenuOpen(false)}
+ Icon={IconChevronLeft}
+ />
+ }
+ >
+ {t`Time zone`}
+ </DropdownMenuHeader>
+ <DropdownMenuItemsContainer scrollable={false}>
+ {timeZoneOptions.map((timeZoneOption) => (
+ <ListItem
+ key={timeZoneOption.value}
+ role="option"
+ aria-selected={timeZoneOption.value === logConsoleTimeZone}
+ selected={timeZoneOption.value === logConsoleTimeZone}
+ indicator="check"
+ onClick={() => setLogConsoleTimeZone(timeZoneOption.value)}
+ >
+ {timeZoneOption.label}
+ </ListItem>
+ ))}
+ </DropdownMenuItemsContainer>
+ </LegacyDropdownContent>
+ ) : (
+ <LegacyDropdownContent
+ widthInPixels={GenericDropdownContentWidth.Large}
+ >
+ <DropdownMenuItemsContainer>
+ {typedObjectEntries(LOG_CONSOLE_TIME_RANGE_PRESETS).map(
+ ([preset]) => renderTimeRangeItem(preset),
+ )}
+ <DropdownMenuSeparator />
+ {renderTimeRangeItem('today')}
+ {renderTimeRangeItem('yesterday')}
+ </DropdownMenuItemsContainer>
+ <DropdownMenuSeparator />
+ <DropdownMenuItemsContainer scrollable={false}>
+ <ListItem
+ description={plural(retentionInDays, {
+ one: '# day',
+ other: '# days',
+ })}
+ descriptionPlacement="end"
+ disabled={!source.requiresAuditLogs}
+ onClick={openRetentionSettings}
+ >
+ {t`Retention`}
+ </ListItem>
+ <ListItem
+ description={selectedTimeZoneLabel}
+ descriptionPlacement="end"
+ hasSubmenu
+ onClick={() => setIsTimeZoneMenuOpen(true)}
+ >
+ {t`Time zone`}
+ </ListItem>
+ </DropdownMenuItemsContainer>
+ </LegacyDropdownContent>
+ )
+ }
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleToggleHotkeyEffect.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleToggleHotkeyEffect.tsx
new file mode 100644
index 00000000000..12c99fe702f
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleToggleHotkeyEffect.tsx
@@ -0,0 +1,18 @@
+import { useGlobalHotkeys } from '@/ui/utilities/hotkey/hooks/useGlobalHotkeys';
+
+type LogConsoleToggleHotkeyEffectProps = {
+ onToggle: () => void;
+};
+
+export const LogConsoleToggleHotkeyEffect = ({
+ onToggle,
+}: LogConsoleToggleHotkeyEffectProps) => {
+ useGlobalHotkeys({
+ keys: ['ctrl+j', 'meta+j'],
+ callback: onToggle,
+ containsModifier: true,
+ dependencies: [onToggle],
+ });
+
+ return null;
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleToolbar.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleToolbar.tsx
new file mode 100644
index 00000000000..71d1f171916
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleToolbar.tsx
@@ -0,0 +1,465 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { type ReactNode, useState } from 'react';
+import { MAX_OPTIONS_TO_DISPLAY } from 'twenty-shared/constants';
+import { ViewFilterOperand } from 'twenty-shared/types';
+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
+import { IconButton } from 'twenty-ui/components';
+import {
+ type IconComponent,
+ IconChevronLeft,
+ IconDotsVertical,
+ IconFilter,
+ IconX,
+} from 'twenty-ui/icon';
+import { ListItem } from 'twenty-ui/primitives/navigation';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { applicationsSelector } from '@/applications/states/applicationsSelector';
+import { APP_HEADER_HEIGHT } from '@/ui/layout/constants/AppHeaderHeight';
+import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
+import { type LogConsoleFilter } from '@/log-console/types/LogConsoleFilter';
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+import { type LogConsoleFilterOption } from '@/log-console/types/LogConsoleFilterOption';
+import { logicFunctionsSelector } from '@/logic-functions/states/logicFunctionsSelector';
+import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
+import {
+ getOperandLabel,
+ getOperandLabelShort,
+} from '@/object-record/object-filter-dropdown/utils/getOperandLabel';
+import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
+import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader';
+import { DropdownMenuHeaderLeftComponent } from '@/ui/layout/dropdown/components/DropdownMenuHeader/internal/DropdownMenuHeaderLeftComponent';
+import { DropdownMenuInnerSelect } from '@/ui/layout/dropdown/components/DropdownMenuInnerSelect';
+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 { LegacyDropdownContent } from '@/ui/layout/dropdown/components/LegacyDropdownContent';
+import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
+import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
+import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { SortOrFilterChip } from '@/views/components/SortOrFilterChip';
+import { EventLogFilterOperand } from '~/generated-metadata/graphql';
+
+const LOG_CONSOLE_MENU_DROPDOWN_ID = 'log-console-menu';
+
+const FILTER_CHIPS_SCROLL_WRAPPER_ID = 'log-console-filter-chips';
+
+const MAX_VALUES_PER_FILTER = 100;
+
+const VIEW_FILTER_OPERAND_BY_EVENT_LOG_FILTER_OPERAND: Record<
+ EventLogFilterOperand,
+ ViewFilterOperand
+> = {
+ [EventLogFilterOperand.IS]: ViewFilterOperand.IS,
+ [EventLogFilterOperand.IS_NOT]: ViewFilterOperand.IS_NOT,
+};
+
+const StyledContainer = styled.div`
+ border-bottom: 1px solid ${themeCssVariables.border.color.light};
+ box-sizing: border-box;
+ flex-shrink: 0;
+ height: ${APP_HEADER_HEIGHT}px;
+ padding-inline: ${themeCssVariables.spacing[3]};
+`;
+
+const StyledToolbar = styled.div`
+ align-items: center;
+ display: flex;
+ flex-wrap: nowrap;
+ gap: ${themeCssVariables.spacing[2]};
+ height: 100%;
+ overflow: hidden;
+`;
+
+const StyledActions = styled.div`
+ display: flex;
+ gap: ${themeCssVariables.spacing[1]};
+ margin-left: auto;
+`;
+
+const StyledFilterChips = styled.div`
+ align-items: center;
+ display: flex;
+ flex-shrink: 0;
+ gap: ${themeCssVariables.spacing[2]};
+ max-width: 40%;
+ overflow: hidden;
+`;
+
+const StyledChips = styled.div`
+ display: flex;
+ gap: ${themeCssVariables.spacing[2]};
+`;
+
+type LogConsoleToolbarProps = {
+ filterFields: LogConsoleFilterField[];
+ filters: LogConsoleFilter[];
+ onFiltersChange: (filters: LogConsoleFilter[]) => void;
+ logsAction: { label: string; Icon: IconComponent; onClick: () => void };
+ children: ReactNode;
+};
+
+export const LogConsoleToolbar = ({
+ filterFields,
+ filters,
+ onFiltersChange,
+ logsAction,
+ children,
+}: LogConsoleToolbarProps) => {
+ const { t } = useLingui();
+ const { closeDropdown } = useCloseDropdown();
+ const currentWorkspaceMembers = useAtomStateValue(
+ currentWorkspaceMembersState,
+ );
+ const { activeObjectMetadataItems } = useFilteredObjectMetadataItems();
+ const logicFunctions = useAtomStateValue(logicFunctionsSelector);
+ const applications = useAtomStateValue(applicationsSelector);
+ const [selectedFilterFieldId, setSelectedFilterFieldId] = useState<
+ string | null
+ >(null);
+ const [searchInput, setSearchInput] = useState('');
+ const [isFilterSubmenuOpen, setIsFilterSubmenuOpen] = useState(false);
+
+ const selectedFilterField = filterFields.find(
+ (filterField) => filterField.id === selectedFilterFieldId,
+ );
+
+ const filterFieldsWithChip = filters.flatMap(
+ (filter) =>
+ filterFields.find(
+ (filterField) => filterField.id === filter.filterFieldId,
+ ) ?? [],
+ );
+
+ const getFilterOptions = (filterField: LogConsoleFilterField) =>
+ filterField.getOptions({
+ workspaceMembers: currentWorkspaceMembers,
+ activeObjectMetadataItems,
+ logicFunctions,
+ applications,
+ });
+
+ const getFilter = (filterField: LogConsoleFilterField): LogConsoleFilter =>
+ filters.find((filter) => filter.filterFieldId === filterField.id) ?? {
+ filterFieldId: filterField.id,
+ operand: EventLogFilterOperand.IS,
+ values: [],
+ };
+
+ const getOperandOption = (operand: EventLogFilterOperand) => ({
+ value: operand,
+ label: getOperandLabel(
+ VIEW_FILTER_OPERAND_BY_EVENT_LOG_FILTER_OPERAND[operand],
+ ),
+ });
+
+ const isOptionSelected = (
+ filter: LogConsoleFilter,
+ option: LogConsoleFilterOption,
+ ) => option.values.every((value) => filter.values.includes(value));
+
+ const setFilter = (changedFilter: LogConsoleFilter) =>
+ onFiltersChange(
+ filters.some(
+ (filter) => filter.filterFieldId === changedFilter.filterFieldId,
+ )
+ ? filters.map((filter) =>
+ filter.filterFieldId === changedFilter.filterFieldId
+ ? changedFilter
+ : filter,
+ )
+ : [...filters, changedFilter],
+ );
+
+ const toggleOption = (
+ filter: LogConsoleFilter,
+ option: LogConsoleFilterOption,
+ ) =>
+ setFilter({
+ ...filter,
+ values: isOptionSelected(filter, option)
+ ? filter.values.filter((value) => !option.values.includes(value))
+ : [...filter.values, ...option.values],
+ });
+
+ const resetFilterDropdown = () => {
+ setSearchInput('');
+ setSelectedFilterFieldId(null);
+
+ if (filters.some((filter) => !isNonEmptyArray(filter.values))) {
+ onFiltersChange(
+ filters.filter((filter) => isNonEmptyArray(filter.values)),
+ );
+ }
+ };
+
+ const resetMenu = () => {
+ resetFilterDropdown();
+ setIsFilterSubmenuOpen(false);
+ };
+
+ const getChipLabelValue = (
+ filterField: LogConsoleFilterField,
+ filter: LogConsoleFilter,
+ ) => {
+ const selectedOptionLabels = getFilterOptions(filterField)
+ .filter((option) => isOptionSelected(filter, option))
+ .map((option) => option.label);
+ const selectedOptionCount = selectedOptionLabels.length;
+
+ if (selectedOptionCount === 0) {
+ return '';
+ }
+
+ const displayValue =
+ selectedOptionCount > MAX_OPTIONS_TO_DISPLAY
+ ? t`${selectedOptionCount} options`
+ : selectedOptionLabels.join(', ');
+
+ return `${getOperandLabelShort(VIEW_FILTER_OPERAND_BY_EVENT_LOG_FILTER_OPERAND[filter.operand])} ${displayValue}`;
+ };
+
+ const renderValuePicker = ({
+ filterField,
+ dropdownId,
+ HeaderIcon,
+ onHeaderClick,
+ }: {
+ filterField: LogConsoleFilterField;
+ dropdownId: string;
+ HeaderIcon: IconComponent;
+ onHeaderClick: () => void;
+ }) => {
+ const filter = getFilter(filterField);
+ const matchingOptions = getFilterOptions(filterField).filter((option) =>
+ option.label.toLowerCase().includes(searchInput.toLowerCase()),
+ );
+
+ return (
+ <LegacyDropdownContent
+ widthInPixels={GenericDropdownContentWidth.ExtraLarge}
+ >
+ <DropdownMenuHeader
+ StartComponent={
+ <DropdownMenuHeaderLeftComponent
+ onClick={onHeaderClick}
+ Icon={HeaderIcon}
+ />
+ }
+ >
+ {t(filterField.label)}
+ </DropdownMenuHeader>
+ <DropdownMenuInnerSelect
+ dropdownId={`${dropdownId}-operand`}
+ selectedOption={getOperandOption(filter.operand)}
+ options={Object.values(EventLogFilterOperand).map(getOperandOption)}
+ onChange={(operandOption) =>
+ setFilter({
+ ...filter,
+ operand:
+ operandOption.value === EventLogFilterOperand.IS_NOT
+ ? EventLogFilterOperand.IS_NOT
+ : EventLogFilterOperand.IS,
+ })
+ }
+ widthInPixels={GenericDropdownContentWidth.ExtraLarge}
+ />
+ <DropdownMenuSeparator />
+ <DropdownMenuSearchInput
+ value={searchInput}
+ placeholder={t(filterField.label)}
+ onChange={(event) => setSearchInput(event.target.value)}
+ />
+ <DropdownMenuSeparator />
+ <DropdownMenuItemsContainer isMultiSelect hasMaxHeight>
+ {isNonEmptyArray(matchingOptions) ? (
+ matchingOptions.map((option) => {
+ const isSelected = isOptionSelected(filter, option);
+
+ return (
+ <ListItem
+ key={option.values.join()}
+ role="option"
+ aria-selected={isSelected}
+ selected={isSelected}
+ indicator="checkbox"
+ disabled={
+ !isSelected &&
+ filter.values.length + option.values.length >
+ MAX_VALUES_PER_FILTER
+ }
+ startIcon={option.startIcon}
+ onClick={() => toggleOption(filter, option)}
+ >
+ {option.tag ?? option.label}
+ </ListItem>
+ );
+ })
+ ) : (
+ <ListItem disabled>{t`No results`}</ListItem>
+ )}
+ </DropdownMenuItemsContainer>
+ </LegacyDropdownContent>
+ );
+ };
+
+ const renderFieldList = () => {
+ const matchingFilterFields = filterFields.filter((filterField) =>
+ t(filterField.label).toLowerCase().includes(searchInput.toLowerCase()),
+ );
+
+ return (
+ <LegacyDropdownContent
+ widthInPixels={GenericDropdownContentWidth.ExtraLarge}
+ >
+ <DropdownMenuHeader
+ StartComponent={
+ <DropdownMenuHeaderLeftComponent
+ onClick={resetMenu}
+ Icon={IconChevronLeft}
+ />
+ }
+ >
+ {t`Filter`}
+ </DropdownMenuHeader>
+ <DropdownMenuSearchInput
+ value={searchInput}
+ placeholder={t`Search fields`}
+ onChange={(event) => setSearchInput(event.target.value)}
+ />
+ <DropdownMenuSeparator />
+ <DropdownMenuItemsContainer>
+ {isNonEmptyArray(matchingFilterFields) ? (
+ matchingFilterFields.map((filterField) => (
+ <ListItem
+ key={filterField.id}
+ role="option"
+ startIcon={<filterField.Icon />}
+ onClick={() => {
+ setSearchInput('');
+ setSelectedFilterFieldId(filterField.id);
+ }}
+ >
+ {t(filterField.label)}
+ </ListItem>
+ ))
+ ) : (
+ <ListItem disabled>{t`No results`}</ListItem>
+ )}
+ </DropdownMenuItemsContainer>
+ </LegacyDropdownContent>
+ );
+ };
+
+ const renderChip = (filterField: LogConsoleFilterField) => {
+ const dropdownId = `log-console-filter-${filterField.id}`;
+
+ return (
+ <Dropdown
+ key={filterField.id}
+ dropdownId={dropdownId}
+ dropdownPlacement="bottom-start"
+ dropdownOffset={{ y: 8 }}
+ onOpen={() => setSearchInput('')}
+ onClose={resetFilterDropdown}
+ clickableComponent={
+ <SortOrFilterChip
+ type="filter"
+ Icon={filterField.Icon}
+ labelKey={t(filterField.label)}
+ labelValue={getChipLabelValue(filterField, getFilter(filterField))}
+ testId={filterField.id}
+ onRemove={() => {
+ closeDropdown(dropdownId);
+ onFiltersChange(
+ filters.filter(
+ (filter) => filter.filterFieldId !== filterField.id,
+ ),
+ );
+ }}
+ />
+ }
+ dropdownComponents={renderValuePicker({
+ filterField,
+ dropdownId,
+ HeaderIcon: IconX,
+ onHeaderClick: () => closeDropdown(dropdownId),
+ })}
+ />
+ );
+ };
+
+ const runLogsAction = () => {
+ closeDropdown(LOG_CONSOLE_MENU_DROPDOWN_ID);
+ logsAction.onClick();
+ };
+
+ const renderMenu = () => {
+ if (isDefined(selectedFilterField)) {
+ return renderValuePicker({
+ filterField: selectedFilterField,
+ dropdownId: LOG_CONSOLE_MENU_DROPDOWN_ID,
+ HeaderIcon: IconChevronLeft,
+ onHeaderClick: resetFilterDropdown,
+ });
+ }
+
+ if (isFilterSubmenuOpen) {
+ return renderFieldList();
+ }
+
+ return (
+ <LegacyDropdownContent>
+ <DropdownMenuItemsContainer>
+ {isNonEmptyArray(filterFields) && (
+ <ListItem
+ startIcon={<IconFilter />}
+ hasSubmenu
+ onClick={() => setIsFilterSubmenuOpen(true)}
+ >
+ {t`Filter`}
+ </ListItem>
+ )}
+ <ListItem startIcon={<logsAction.Icon />} onClick={runLogsAction}>
+ {logsAction.label}
+ </ListItem>
+ </DropdownMenuItemsContainer>
+ </LegacyDropdownContent>
+ );
+ };
+
+ return (
+ <StyledContainer>
+ <StyledToolbar>
+ {isNonEmptyArray(filterFieldsWithChip) && (
+ <StyledFilterChips>
+ <ScrollWrapper
+ componentInstanceId={FILTER_CHIPS_SCROLL_WRAPPER_ID}
+ defaultEnableYScroll={false}
+ >
+ <StyledChips>{filterFieldsWithChip.map(renderChip)}</StyledChips>
+ </ScrollWrapper>
+ </StyledFilterChips>
+ )}
+ <StyledActions>
+ <Dropdown
+ dropdownId={LOG_CONSOLE_MENU_DROPDOWN_ID}
+ dropdownPlacement="bottom-end"
+ dropdownOffset={{ y: 8 }}
+ onOpen={() => setSearchInput('')}
+ onClose={resetMenu}
+ clickableComponent={
+ <IconButton aria-label={t`More options`}>
+ <IconDotsVertical />
+ </IconButton>
+ }
+ dropdownComponents={renderMenu()}
+ />
+ {children}
+ </StyledActions>
+ </StyledToolbar>
+ </StyledContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/LogConsoleWebhookEndpointLink.tsx b/packages/twenty-front/src/modules/log-console/components/LogConsoleWebhookEndpointLink.tsx
new file mode 100644
index 00000000000..86413284b75
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/LogConsoleWebhookEndpointLink.tsx
@@ -0,0 +1,30 @@
+import { styled } from '@linaria/react';
+import { getUrlHostnameOrThrow, isValidUrl } from 'twenty-shared/utils';
+import { Tooltip } from 'twenty-ui/primitives/surfaces';
+
+import { LinkDisplay } from '@/ui/field/display/components/LinkDisplay';
+import { TooltipDelay } from '@/ui/layout/tooltip/constants/TooltipDelay';
+
+const StyledLinkTrigger = styled.span`
+ display: inline-flex;
+ min-width: 0;
+`;
+
+type LogConsoleWebhookEndpointLinkProps = {
+ url: string;
+};
+
+export const LogConsoleWebhookEndpointLink = ({
+ url,
+}: LogConsoleWebhookEndpointLinkProps) => (
+ <Tooltip content={url} delay={TooltipDelay.mediumDelay}>
+ <StyledLinkTrigger>
+ <LinkDisplay
+ value={{
+ url,
+ label: isValidUrl(url) ? getUrlHostnameOrThrow(url) : url,
+ }}
+ />
+ </StyledLinkTrigger>
+ </Tooltip>
+);
diff --git a/packages/twenty-front/src/modules/log-console/components/StyledLogConsoleFieldsCard.tsx b/packages/twenty-front/src/modules/log-console/components/StyledLogConsoleFieldsCard.tsx
new file mode 100644
index 00000000000..794783855b2
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/StyledLogConsoleFieldsCard.tsx
@@ -0,0 +1,12 @@
+import { styled } from '@linaria/react';
+import { Card } from 'twenty-ui/primitives/surfaces';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+export const StyledLogConsoleFieldsCard = styled(Card.Root)`
+ --card-background-color: ${themeCssVariables.background.secondary};
+
+ display: flex;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[1]};
+ padding: ${themeCssVariables.spacing[2]};
+`;
diff --git a/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx b/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx
new file mode 100644
index 00000000000..8fc5417f48e
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx
@@ -0,0 +1,785 @@
+import { styled } from '@linaria/react';
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { type ExecutionResult, print } from 'graphql';
+import { type RequestParams, type Sink } from 'graphql-sse';
+import { http, HttpResponse } from 'msw';
+import { type ReactNode, useEffect } from 'react';
+import { expect, screen, userEvent, waitFor, within } from 'storybook/test';
+
+import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';
+import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { TimeFormat } from '@/localization/constants/TimeFormat';
+import { workspaceMemberFormatPreferencesState } from '@/localization/states/workspaceMemberFormatPreferencesState';
+import { LogConsole } from '@/log-console/components/LogConsole';
+import { LOG_CONSOLE_TAB_LIST_INSTANCE_ID } from '@/log-console/constants/LogConsoleTabListInstanceId';
+import { isLogConsoleFullScreenState } from '@/log-console/states/isLogConsoleFullScreenState';
+import { logConsoleDisplayModeState } from '@/log-console/states/logConsoleDisplayModeState';
+import { logConsoleFiltersState } from '@/log-console/states/logConsoleFiltersState';
+import { logConsoleHeightState } from '@/log-console/states/logConsoleHeightState';
+import { logConsoleTimeRangeState } from '@/log-console/states/logConsoleTimeRangeState';
+import { logConsoleTimeZoneState } from '@/log-console/states/logConsoleTimeZoneState';
+import { metadataStoreState } from '@/metadata-store/states/metadataStoreState';
+import { GET_EVENT_LOGS } from '@/settings/event-logs/graphql/queries/getEventLogs';
+import { EVENT_LOGS_LIVE_SUBSCRIPTION } from '@/settings/event-logs/graphql/subscriptions/EventLogsLiveSubscription';
+import { SidePanelForDesktop } from '@/side-panel/components/SidePanelForDesktop';
+import { SidePanelToggleButton } from '@/side-panel/components/SidePanelToggleButton';
+import { sseClientState } from '@/sse-db-event/states/sseClientState';
+import { PageCardHeader } from '@/ui/layout/page/components/PageCardHeader';
+import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
+import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
+import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
+import { REACT_APP_SERVER_BASE_URL } from '~/config';
+import {
+ BillingEntitlementKey,
+ EventLogFilterOperand,
+ type EventLogRecord,
+ type EventLogsLiveSubscription,
+ type EventLogsQuery,
+ type EventLogsQueryVariables,
+ EventLogTable,
+ FeatureFlagKey,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
+import { SettingsObjects } from '~/pages/settings/data-model/SettingsObjects';
+import {
+ PageDecorator,
+ type PageDecoratorArgs,
+} from '~/testing/decorators/PageDecorator';
+import { graphqlMocks, metadataGraphql } from '~/testing/graphqlMocks';
+import { mockedClientConfig } from '~/testing/mock-data/config';
+import {
+ mockedEventLogApplications,
+ mockedEventLogLiveApplicationLogs,
+ mockedEventLogLogicFunctions,
+ mockedEventLogRecordsByTable,
+ mockedEventLogWorkspaceMembers,
+} from '~/testing/mock-data/event-logs';
+import {
+ mockCurrentWorkspace,
+ mockedUserData,
+} from '~/testing/mock-data/users';
+import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
+import { getOperationName } from '~/utils/getOperationName';
+import { sleep } from '~/utils/sleep';
+
+const WORKSPACE_WITH_LOGS_CONSOLE = {
+ ...mockCurrentWorkspace,
+ featureFlags: [
+ { key: FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED, value: true },
+ ],
+ billingEntitlements: [{ key: BillingEntitlementKey.AUDIT_LOGS, value: true }],
+};
+
+const [firstLiveApplicationLog, secondLiveApplicationLog] =
+ mockedEventLogLiveApplicationLogs;
+
+const eventLogsLiveSubscriptions = new Map<
+ Sink<ExecutionResult<EventLogsLiveSubscription>>,
+ RequestParams['variables']
+>();
+
+const fakeSseClient = {
+ subscribe: (
+ request: RequestParams,
+ sink: Sink<ExecutionResult<EventLogsLiveSubscription>>,
+ ) => {
+ if (request.query === print(EVENT_LOGS_LIVE_SUBSCRIPTION)) {
+ eventLogsLiveSubscriptions.set(sink, request.variables);
+ }
+
+ return () => eventLogsLiveSubscriptions.delete(sink);
+ },
+};
+
+const emitEventLogsLive = (records: EventLogRecord[]) =>
+ eventLogsLiveSubscriptions.forEach((_variables, sink) =>
+ sink.next({ data: { eventLogsLive: records } }),
+ );
+
+const StyledPageWithSidePanel = styled.div`
+ display: flex;
+ flex: 1;
+ min-height: 0;
+ min-width: 0;
+`;
+
+const StyledPageWithLogConsole = styled.div`
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ min-width: 0;
+ position: relative;
+`;
+
+const PageWithLogConsole = ({ children }: { children: ReactNode }) => (
+ <StyledPageWithSidePanel>
+ <StyledPageWithLogConsole>
+ {children}
+ <LogConsole />
+ </StyledPageWithLogConsole>
+ <SidePanelForDesktop />
+ </StyledPageWithSidePanel>
+);
+
+const meta: Meta<PageDecoratorArgs> = {
+ title: 'Modules/LogConsole/LogConsole',
+ component: LogConsole,
+ render: () => (
+ <PageWithLogConsole>
+ <SettingsObjects />
+ </PageWithLogConsole>
+ ),
+ decorators: [
+ (Story) => {
+ useEffect(() => {
+ jotaiStore.set(metadataStoreState.atomFamily('logicFunctions'), {
+ current: mockedEventLogLogicFunctions,
+ draft: [],
+ status: 'up-to-date',
+ });
+ jotaiStore.set(metadataStoreState.atomFamily('applications'), {
+ current: mockedEventLogApplications,
+ draft: [],
+ status: 'up-to-date',
+ });
+ }, []);
+
+ return <Story />;
+ },
+ PageDecorator,
+ ],
+ args: { routePath: '/settings/objects' },
+ beforeEach: () => {
+ jotaiStore.set(currentWorkspaceState.atom, WORKSPACE_WITH_LOGS_CONSOLE);
+ jotaiStore.set(currentUserWorkspaceState.atom, {
+ ...mockedUserData.currentUserWorkspace,
+ permissionFlags: Object.values(PermissionFlagType),
+ });
+ jotaiStore.set(
+ currentWorkspaceMembersState.atom,
+ mockedEventLogWorkspaceMembers,
+ );
+ jotaiStore.set(
+ workspaceMemberFormatPreferencesState.atom,
+ (formatPreferences) => ({
+ ...formatPreferences,
+ timeZone: 'Europe/Paris',
+ timeFormat: TimeFormat.HOUR_24,
+ }),
+ );
+ jotaiStore.set(isAdvancedModeEnabledState.atom, true);
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'collapsed');
+ jotaiStore.set(logConsoleHeightState.atom, null);
+ jotaiStore.set(isLogConsoleFullScreenState.atom, false);
+ },
+ parameters: {
+ layout: 'fullscreen',
+ mockingDate: new Date('2026-09-24T12:05:00Z'),
+ msw: {
+ handlers: [
+ http.get(`${REACT_APP_SERVER_BASE_URL}/client-config`, () =>
+ HttpResponse.json({
+ ...mockedClientConfig,
+ isClickHouseConfigured: true,
+ }),
+ ),
+ metadataGraphql.query<EventLogsQuery, EventLogsQueryVariables>(
+ getOperationName(GET_EVENT_LOGS) ?? '',
+ ({ variables }) => {
+ const records = (
+ mockedEventLogRecordsByTable[variables.input.table] ?? []
+ ).filter((record) =>
+ (variables.input.filters?.fieldFilters ?? []).every(
+ ({ field, operand, values }) =>
+ values.includes(
+ record[field as keyof EventLogRecord] ??
+ record.properties?.[field],
+ ) ===
+ (operand === EventLogFilterOperand.IS),
+ ),
+ );
+
+ return HttpResponse.json({
+ data: {
+ eventLogs: {
+ __typename: 'EventLogQueryResult',
+ records,
+ totalCount: records.length,
+ pageInfo: {
+ __typename: 'EventLogPageInfo',
+ endCursor: null,
+ hasNextPage: false,
+ },
+ },
+ },
+ });
+ },
+ ),
+ ...graphqlMocks.handlers,
+ ],
+ },
+ },
+};
+
+export default meta;
+
+type Story = StoryObj<typeof LogConsole>;
+
+export const Collapsed: Story = {};
+
+export const RecordChangesOpen: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findAllByText('Moved to trash', {}, { timeout: 5000 }),
+ ).toHaveLength(3);
+ },
+};
+
+export const RecordChangeDiff: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByText('Lumen Health - Pilot', {}, { timeout: 5000 }),
+ );
+
+ await canvas.findByRole('button', { name: 'Close details' });
+ await canvas.findByText('Close date');
+ },
+};
+
+export const RecordDeletion: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByText('Maple Consulting Inc.', {}, { timeout: 5000 }),
+ );
+
+ await canvas.findByRole('button', { name: 'Close details' });
+ await canvas.findByText('Values before deletion');
+ },
+};
+
+export const SecurityOpen: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'Security' }, { timeout: 5000 }),
+ );
+
+ expect(await canvas.findAllByText('Support team')).toHaveLength(3);
+ },
+};
+
+export const AppLogsOpen: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(await canvas.findByRole('tab', { name: 'App logs' }));
+
+ expect(
+ await canvas.findAllByText(
+ "TypeError: Cannot read properties of undefined (reading 'amount_due')",
+ ),
+ ).toHaveLength(2);
+ },
+};
+
+export const AppLogDetail: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(await canvas.findByRole('tab', { name: 'App logs' }));
+
+ const [typeErrorMessage] = await canvas.findAllByText(
+ "TypeError: Cannot read properties of undefined (reading 'amount_due')",
+ );
+
+ await userEvent.click(typeErrorMessage);
+
+ await canvas.findByText(
+ 'at mapInvoiceToOpportunity (src/logic-functions/sync-stripe-invoices.ts:48:31)',
+ );
+
+ await userEvent.click(canvas.getByRole('button', { name: 'More (3)' }));
+
+ await canvas.findByText(
+ 'at async executeLogicFunction (runtime/executor.js:112:18)',
+ );
+
+ await userEvent.click(
+ canvas.getByRole('button', { name: 'Close details' }),
+ );
+
+ expect(
+ canvas.queryByText(
+ 'at async executeLogicFunction (runtime/executor.js:112:18)',
+ ),
+ ).not.toBeInTheDocument();
+ },
+};
+
+export const AppLogsLive: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(
+ activeTabIdComponentState.atomFamily({
+ instanceId: LOG_CONSOLE_TAB_LIST_INSTANCE_ID,
+ }),
+ 'app-logs',
+ );
+ jotaiStore.set(sseClientState.atom, fakeSseClient as never);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText(
+ 'Received 9 invoices from Stripe',
+ {},
+ { timeout: 5000 },
+ );
+
+ expect([...eventLogsLiveSubscriptions.values()]).toEqual([
+ { table: EventLogTable.APPLICATION_LOG, fieldFilters: [] },
+ ]);
+
+ emitEventLogsLive([firstLiveApplicationLog]);
+
+ const liveMessage = await canvas.findByText('Lead score for Omar Aziz: 72');
+
+ expect(
+ liveMessage.compareDocumentPosition(
+ canvas.getByText(
+ 'Missing job title for Omar Aziz, using default title score (20)',
+ ),
+ ),
+ ).toBe(Node.DOCUMENT_POSITION_FOLLOWING);
+
+ await userEvent.click(canvas.getByRole('button', { name: 'Pause' }));
+ emitEventLogsLive([secondLiveApplicationLog]);
+ await sleep(500);
+
+ expect(
+ canvas.queryByText('Lead score for Lena Park: 64'),
+ ).not.toBeInTheDocument();
+
+ await userEvent.click(canvas.getByRole('button', { name: 'Resume' }));
+
+ await canvas.findByText('Lead score for Lena Park: 64');
+ },
+};
+
+export const Clear: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(
+ activeTabIdComponentState.atomFamily({
+ instanceId: LOG_CONSOLE_TAB_LIST_INSTANCE_ID,
+ }),
+ 'app-logs',
+ );
+ jotaiStore.set(sseClientState.atom, fakeSseClient as never);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const getTextUnderHeader = () => {
+ const { left, right, bottom, height } = canvas
+ .getByText('Message')
+ .getBoundingClientRect();
+
+ return document.elementFromPoint((left + right) / 2, bottom + height / 2)
+ ?.textContent;
+ };
+
+ await canvas.findByText(
+ 'Received 9 invoices from Stripe',
+ {},
+ { timeout: 5000 },
+ );
+ await userEvent.click(canvas.getByLabelText('More options'));
+ await userEvent.click(await screen.findByText('Clear'));
+
+ expect(
+ canvas.queryByText('Received 9 invoices from Stripe'),
+ ).not.toBeInTheDocument();
+
+ emitEventLogsLive([firstLiveApplicationLog, secondLiveApplicationLog]);
+
+ await waitFor(() =>
+ expect(getTextUnderHeader()).toBe('Lead score for Lena Park: 64'),
+ );
+ expect(
+ canvas.queryByText('Received 9 invoices from Stripe'),
+ ).not.toBeInTheDocument();
+ },
+};
+
+const APPLICATION_LOGS_PER_PAGE = 3;
+
+export const LoadNextPage: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(
+ activeTabIdComponentState.atomFamily({
+ instanceId: LOG_CONSOLE_TAB_LIST_INSTANCE_ID,
+ }),
+ 'app-logs',
+ );
+ },
+ parameters: {
+ msw: {
+ handlers: [
+ metadataGraphql.query<EventLogsQuery, EventLogsQueryVariables>(
+ getOperationName(GET_EVENT_LOGS) ?? '',
+ ({ variables }) => {
+ const applicationLogs =
+ mockedEventLogRecordsByTable[EventLogTable.APPLICATION_LOG] ?? [];
+ const pageStart = Number(variables.input.after ?? 0);
+ const pageEnd = pageStart + APPLICATION_LOGS_PER_PAGE;
+ const hasNextPage = pageEnd < applicationLogs.length;
+
+ return HttpResponse.json({
+ data: {
+ eventLogs: {
+ __typename: 'EventLogQueryResult',
+ records: applicationLogs.slice(pageStart, pageEnd),
+ totalCount: applicationLogs.length,
+ pageInfo: {
+ __typename: 'EventLogPageInfo',
+ endCursor: hasNextPage ? String(pageEnd) : null,
+ hasNextPage,
+ },
+ },
+ },
+ });
+ },
+ ),
+ ...(meta.parameters?.msw.handlers ?? []),
+ ],
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText(
+ 'Fetched firmographics for halcyon-robotics.com in 819 ms',
+ {},
+ { timeout: 5000 },
+ );
+ },
+};
+
+export const WebhookFailureDetail: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'Webhooks' }, { timeout: 5000 }),
+ );
+ await userEvent.click(await canvas.findByText('503'));
+
+ await canvas.findByRole('button', { name: 'Close details' });
+ await canvas.findByText('person.created → ingest.northwind-data.io');
+ await canvas.findByRole('link', { name: 'Open webhook settings' });
+ },
+};
+
+export const PageViewsOpen: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'Page views' }),
+ );
+ await canvas.findByText('Priya Nair');
+ },
+};
+
+export const PageViewDetail: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'Page views' }),
+ );
+ await userEvent.click(await canvas.findByText('Priya Nair'));
+
+ await canvas.findByRole('button', { name: 'Close details' });
+ await canvas.findByText('Session ID');
+ },
+};
+
+export const UsageOpen: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(await canvas.findByRole('tab', { name: 'Usage' }));
+ await canvas.findByText('Jonas Weber');
+ await canvas.findByText('AI Chat');
+ await canvas.findByText('0.0055 credits');
+ },
+};
+
+export const TimeRangeMenu: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'App logs' }, { timeout: 5000 }),
+ );
+ await userEvent.click(await canvas.findByText('Last 24 hours'));
+
+ expect(
+ await screen.findByRole('option', { name: 'Last 90 days' }),
+ ).toHaveAttribute('aria-disabled', 'true');
+ },
+};
+
+export const LastSevenDaysInUtc: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(logConsoleTimeRangeState.atom, '7d');
+ jotaiStore.set(logConsoleTimeZoneState.atom, 'utc');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText('11:57:48.203', {}, { timeout: 5000 });
+ await canvas.findAllByText('Updated');
+ },
+};
+
+export const LevelFilter: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(
+ activeTabIdComponentState.atomFamily({
+ instanceId: LOG_CONSOLE_TAB_LIST_INSTANCE_ID,
+ }),
+ 'app-logs',
+ );
+ jotaiStore.set(logConsoleFiltersState.atom, [
+ {
+ filterFieldId: 'level',
+ operand: EventLogFilterOperand.IS,
+ values: ['ERROR', 'WARN'],
+ },
+ ]);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText(
+ 'Sync failed: 9 of 9 invoices could not be mapped',
+ {},
+ { timeout: 5000 },
+ );
+
+ expect(
+ canvas.queryByText('Received 9 invoices from Stripe'),
+ ).not.toBeInTheDocument();
+ },
+};
+
+export const FilterMenu: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('tab', { name: 'App logs' }, { timeout: 5000 }),
+ );
+ await userEvent.click(await canvas.findByLabelText('More options'));
+ await userEvent.click(await screen.findByText('Filter'));
+ await userEvent.click(await screen.findByRole('option', { name: 'Level' }));
+
+ expect(
+ await screen.findByRole('option', { name: 'Warning' }),
+ ).toHaveAttribute('aria-selected', 'false');
+ },
+};
+
+export const NoFilterMatch: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(logConsoleFiltersState.atom, [
+ {
+ filterFieldId: 'object',
+ operand: EventLogFilterOperand.IS,
+ values: [getMockObjectMetadataItemOrThrow('task').id],
+ },
+ ]);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText('No event logs found', {}, { timeout: 5000 });
+ },
+};
+
+export const EmptyInRange: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ parameters: {
+ msw: {
+ handlers: [
+ metadataGraphql.query(getOperationName(GET_EVENT_LOGS) ?? '', () =>
+ HttpResponse.json({
+ data: {
+ eventLogs: {
+ __typename: 'EventLogQueryResult',
+ records: [],
+ totalCount: 0,
+ pageInfo: {
+ __typename: 'EventLogPageInfo',
+ endCursor: null,
+ hasNextPage: false,
+ },
+ },
+ },
+ }),
+ ),
+ ...(meta.parameters?.msw.handlers ?? []),
+ ],
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText('No event logs found', {}, { timeout: 5000 });
+ },
+};
+
+export const LoadError: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ parameters: {
+ msw: {
+ handlers: [
+ metadataGraphql.query(getOperationName(GET_EVENT_LOGS) ?? '', () =>
+ HttpResponse.json({
+ errors: [{ message: 'ClickHouse is unavailable' }],
+ }),
+ ),
+ ...(meta.parameters?.msw.handlers ?? []),
+ ],
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText(
+ 'Something went wrong while loading logs. Please try again.',
+ {},
+ { timeout: 5000 },
+ );
+ },
+};
+
+export const Resized: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(logConsoleHeightState.atom, 560);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByText('Sarah Chen', {}, { timeout: 5000 });
+ },
+};
+
+export const FullScreen: Story = {
+ render: () => (
+ <PageWithLogConsole>
+ <PageCardHeader
+ title="Companies"
+ actionButton={<SidePanelToggleButton />}
+ />
+ </PageWithLogConsole>
+ ),
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ jotaiStore.set(isLogConsoleFullScreenState.atom, true);
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await canvas.findByRole('button', { name: 'Command Menu' });
+ const closeButton = await canvas.findByRole('button', { name: 'Close' });
+ const { x, y, width, height } = closeButton.getBoundingClientRect();
+
+ expect(
+ closeButton.contains(
+ document.elementFromPoint(x + width / 2, y + height / 2),
+ ),
+ ).toBe(true);
+ },
+};
+
+export const LockedTab: Story = {
+ beforeEach: () => {
+ jotaiStore.set(currentWorkspaceState.atom, {
+ ...WORKSPACE_WITH_LOGS_CONSOLE,
+ billingEntitlements: [],
+ });
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(await canvas.findByRole('tab', { name: 'Security' }));
+ await canvas.findByText('Upgrade to access audit logs');
+ },
+};
+
+export const ClickHouseMissing: Story = {
+ beforeEach: () => {
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'open');
+ },
+ parameters: {
+ msw: graphqlMocks,
+ },
+};
diff --git a/packages/twenty-front/src/modules/log-console/components/__tests__/LogConsole.test.tsx b/packages/twenty-front/src/modules/log-console/components/__tests__/LogConsole.test.tsx
new file mode 100644
index 00000000000..921f25410b2
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/components/__tests__/LogConsole.test.tsx
@@ -0,0 +1,113 @@
+import { i18n } from '@lingui/core';
+import { I18nProvider } from '@lingui/react';
+import { MockedProvider } from '@apollo/client/testing/react';
+import { render, screen } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { Provider as JotaiProvider } from 'jotai';
+import { Suspense } from 'react';
+import { MemoryRouter } from 'react-router-dom';
+import { ToastProvider } from 'twenty-ui/components';
+
+import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { isClickHouseConfiguredState } from '@/client-config/states/isClickHouseConfiguredState';
+import { LogConsole } from '@/log-console/components/LogConsole';
+import { logConsoleDisplayModeState } from '@/log-console/states/logConsoleDisplayModeState';
+import { useSetAdvancedMode } from '@/navigation/hooks/useSetAdvancedMode';
+import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import {
+ jotaiStore,
+ resetJotaiStore,
+} from '@/ui/utilities/state/jotai/jotaiStore';
+import {
+ FeatureFlagKey,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
+import {
+ mockCurrentWorkspace,
+ mockedUserData,
+} from '~/testing/mock-data/users';
+
+jest.mock('@/log-console/components/LogConsoleResults', () => ({
+ LogConsoleResults: () => <div>Log results</div>,
+}));
+
+jest.mock('@/log-console/components/LogConsoleDetailPanel', () => ({
+ LogConsoleDetailPanel: () => null,
+}));
+
+const DeveloperModeSwitch = () => {
+ const isAdvancedModeEnabled = useAtomStateValue(isAdvancedModeEnabledState);
+ const { setAdvancedMode } = useSetAdvancedMode();
+
+ return (
+ <button
+ type="button"
+ onClick={() => setAdvancedMode(!isAdvancedModeEnabled)}
+ >
+ Developer mode
+ </button>
+ );
+};
+
+const renderWithLogsFeatureFlag = (isLogsFeatureFlagEnabled: boolean) => {
+ resetJotaiStore();
+ jotaiStore.set(currentWorkspaceState.atom, {
+ ...mockCurrentWorkspace,
+ featureFlags: [
+ {
+ key: FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED,
+ value: isLogsFeatureFlagEnabled,
+ },
+ ],
+ });
+ jotaiStore.set(currentUserWorkspaceState.atom, {
+ ...mockedUserData.currentUserWorkspace,
+ permissionFlags: [PermissionFlagType.SECURITY],
+ });
+ jotaiStore.set(isClickHouseConfiguredState.atom, true);
+ jotaiStore.set(isAdvancedModeEnabledState.atom, false);
+ jotaiStore.set(logConsoleDisplayModeState.atom, 'closed');
+
+ render(
+ <I18nProvider i18n={i18n}>
+ <JotaiProvider store={jotaiStore}>
+ <ToastProvider>
+ <MockedProvider>
+ <MemoryRouter>
+ <Suspense fallback={null}>
+ <DeveloperModeSwitch />
+ <LogConsole />
+ </Suspense>
+ </MemoryRouter>
+ </MockedProvider>
+ </ToastProvider>
+ </JotaiProvider>
+ </I18nProvider>,
+ );
+};
+
+describe('LogConsole', () => {
+ it('opens when developer mode is turned on', async () => {
+ renderWithLogsFeatureFlag(true);
+
+ expect(screen.queryByText('Log results')).not.toBeInTheDocument();
+
+ await userEvent.click(
+ await screen.findByRole('button', { name: 'Developer mode' }),
+ );
+
+ expect(await screen.findByText('Log results')).toBeInTheDocument();
+ });
+
+ it('stays hidden when the logs feature flag is off', async () => {
+ renderWithLogsFeatureFlag(false);
+
+ await userEvent.click(
+ await screen.findByRole('button', { name: 'Developer mode' }),
+ );
+
+ expect(screen.queryByText('Log results')).not.toBeInTheDocument();
+ });
+});
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleActorFilterField.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleActorFilterField.tsx
new file mode 100644
index 00000000000..4b4bb979a54
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleActorFilterField.tsx
@@ -0,0 +1,31 @@
+import { msg } from '@lingui/core/macro';
+import { IconUsers } from 'twenty-ui/icon';
+import { Avatar } from 'twenty-ui/primitives/data-display';
+
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
+
+export const LOG_CONSOLE_ACTOR_FILTER_FIELD: LogConsoleFilterField = {
+ id: 'actor',
+ label: msg`Actor`,
+ Icon: IconUsers,
+ serverField: 'userId',
+ getOptions: ({ workspaceMembers }) =>
+ workspaceMembers.map((workspaceMember) => {
+ const name = `${workspaceMember.name.firstName} ${workspaceMember.name.lastName}`;
+
+ return {
+ label: name,
+ values: [workspaceMember.userId],
+ startIcon: (
+ <Avatar
+ src={getAbsoluteImageUrl(workspaceMember.avatarUrl)}
+ name={name}
+ colorSeed={workspaceMember.id}
+ shape="circle"
+ size="md"
+ />
+ ),
+ };
+ }),
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleAnimationEasing.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleAnimationEasing.ts
new file mode 100644
index 00000000000..bf5d998182e
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleAnimationEasing.ts
@@ -0,0 +1 @@
+export const LOG_CONSOLE_ANIMATION_EASING = 'cubic-bezier(0.33, 1, 0.68, 1)';
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogColumns.tsx
new file mode 100644
index 00000000000..c1ef5aeafdd
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogColumns.tsx
@@ -0,0 +1,73 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { IconBrandTypescript } from 'twenty-ui/icon';
+import { Status } from 'twenty-ui/primitives/data-display';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { LOG_CONSOLE_LEVELS } from '@/log-console/constants/LogConsoleLevels';
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTagCell } from '@/settings/components/SettingsTableTagCell';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+
+const EXECUTION_ID_DISPLAYED_LENGTH = 8;
+
+export const LOG_CONSOLE_APPLICATION_LOG_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ {
+ id: 'level',
+ label: msg`Level`,
+ gridTrack: '96px',
+ renderCell: (entry) => {
+ const level = LOG_CONSOLE_LEVELS[entry.properties?.level];
+
+ return (
+ <SettingsTableTagCell>
+ {isDefined(level) && (
+ <Status color={level.color}>{t(level.label)}</Status>
+ )}
+ </SettingsTableTagCell>
+ );
+ },
+ },
+ {
+ id: 'function',
+ label: msg`Function`,
+ gridTrack: '216px',
+ renderCell: (entry) => (
+ <SettingsTableTextCell
+ startElement={
+ <IconBrandTypescript
+ size={14}
+ stroke={themeCssVariables.icon.stroke.sm}
+ color={themeCssVariables.font.color.tertiary}
+ />
+ }
+ text={entry.event}
+ />
+ ),
+ },
+ {
+ id: 'message',
+ label: msg`Message`,
+ gridTrack: 'minmax(200px, 1fr)',
+ renderCell: (entry) => {
+ const [firstLine] = (entry.properties?.message ?? '').split('\n');
+
+ return <SettingsTableTextCell text={firstLine} />;
+ },
+ },
+ {
+ id: 'execution',
+ label: msg`Execution`,
+ gridTrack: '88px',
+ renderCell: (entry) => (
+ <SettingsTableTextCell
+ text={entry.properties?.executionId?.slice(
+ 0,
+ EXECUTION_ID_DISPLAYED_LENGTH,
+ )}
+ />
+ ),
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx
new file mode 100644
index 00000000000..96be40cd5cf
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx
@@ -0,0 +1,57 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import {
+ IconAlertTriangle,
+ IconApps,
+ IconBrandTypescript,
+} from 'twenty-ui/icon';
+import { Tag } from 'twenty-ui/primitives/data-display';
+
+import { LOG_CONSOLE_LEVELS } from '@/log-console/constants/LogConsoleLevels';
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+
+export const LOG_CONSOLE_APPLICATION_LOG_FILTER_FIELDS: LogConsoleFilterField[] =
+ [
+ {
+ id: 'level',
+ label: msg`Level`,
+ Icon: IconAlertTriangle,
+ serverField: 'level',
+ getOptions: () =>
+ Object.entries(LOG_CONSOLE_LEVELS).flatMap(([levelValue, level]) =>
+ isDefined(level)
+ ? [
+ {
+ label: t(level.label),
+ values: [levelValue],
+ tag: <Tag color={level.color}>{t(level.label)}</Tag>,
+ },
+ ]
+ : [],
+ ),
+ },
+ {
+ id: 'function',
+ label: msg`Function`,
+ Icon: IconBrandTypescript,
+ serverField: 'logicFunctionId',
+ getOptions: ({ logicFunctions }) =>
+ logicFunctions.map((logicFunction) => ({
+ label: logicFunction.name,
+ values: [logicFunction.id],
+ startIcon: <IconBrandTypescript />,
+ })),
+ },
+ {
+ id: 'app',
+ label: msg`App`,
+ Icon: IconApps,
+ serverField: 'applicationId',
+ getOptions: ({ applications }) =>
+ applications.map((application) => ({
+ label: application.name,
+ values: [application.id],
+ startIcon: <IconApps />,
+ })),
+ },
+ ];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogRetentionInDays.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogRetentionInDays.ts
new file mode 100644
index 00000000000..b8d0a5c327b
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogRetentionInDays.ts
@@ -0,0 +1 @@
+export const LOG_CONSOLE_APPLICATION_LOG_RETENTION_IN_DAYS = 30;
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleHeightConstraints.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleHeightConstraints.ts
new file mode 100644
index 00000000000..7c43c7e7e57
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleHeightConstraints.ts
@@ -0,0 +1,3 @@
+export const LOG_CONSOLE_HEIGHT_CONSTRAINTS = {
+ min: 200,
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleLevels.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleLevels.ts
new file mode 100644
index 00000000000..560b585a325
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleLevels.ts
@@ -0,0 +1,29 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+import { type ThemeColor } from 'twenty-ui/theme';
+
+import { type LogConsoleSeverity } from '@/log-console/types/LogConsoleSeverity';
+
+export const LOG_CONSOLE_LEVELS: Partial<
+ Record<
+ string,
+ {
+ label: MessageDescriptor;
+ color: ThemeColor;
+ severity?: LogConsoleSeverity;
+ }
+ >
+> = {
+ ERROR: {
+ label: msg`Error`,
+ color: 'red',
+ severity: 'error',
+ },
+ WARN: {
+ label: msg`Warning`,
+ color: 'orange',
+ severity: 'warning',
+ },
+ INFO: { label: msg`Info`, color: 'blue' },
+ DEBUG: { label: msg`Debug`, color: 'gray' },
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleNarrowBodyMaxWidth.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleNarrowBodyMaxWidth.ts
new file mode 100644
index 00000000000..c544e442a61
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleNarrowBodyMaxWidth.ts
@@ -0,0 +1 @@
+export const LOG_CONSOLE_NARROW_BODY_MAX_WIDTH = 880;
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsolePageViewColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsolePageViewColumns.tsx
new file mode 100644
index 00000000000..c01ec6bcd81
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsolePageViewColumns.tsx
@@ -0,0 +1,39 @@
+import { msg } from '@lingui/core/macro';
+
+import { LogConsoleMemberCell } from '@/log-console/components/LogConsoleMemberCell';
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+
+const SESSION_ID_DISPLAYED_LENGTH = 8;
+
+export const LOG_CONSOLE_PAGE_VIEW_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ {
+ id: 'member',
+ label: msg`Member`,
+ gridTrack: 'minmax(140px, 200px)',
+ renderCell: (entry) => <LogConsoleMemberCell userId={entry.userId} />,
+ },
+ {
+ id: 'page',
+ label: msg`Page`,
+ gridTrack: 'minmax(200px, 1fr)',
+ renderCell: (entry) => (
+ <SettingsTableTextCell text={entry.properties?.pathname} />
+ ),
+ },
+ {
+ id: 'session',
+ label: msg`Session`,
+ gridTrack: '104px',
+ renderCell: (entry) => (
+ <SettingsTableTextCell
+ text={entry.properties?.sessionId?.slice(
+ 0,
+ SESSION_ID_DISPLAYED_LENGTH,
+ )}
+ />
+ ),
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordActions.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordActions.ts
new file mode 100644
index 00000000000..b26463d6497
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordActions.ts
@@ -0,0 +1,56 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+import { type ThemeColor } from 'twenty-ui/theme';
+
+export const LOG_CONSOLE_RECORD_ACTIONS: Partial<
+ Record<
+ string,
+ {
+ label: MessageDescriptor;
+ color: ThemeColor;
+ summary?: MessageDescriptor;
+ valuesTitle?: MessageDescriptor;
+ valuesSnapshot?: 'before' | 'after';
+ actorFieldName?: 'createdBy' | 'updatedBy';
+ }
+ >
+> = {
+ 'Object Record Created': {
+ label: msg`Created`,
+ color: 'green',
+ valuesTitle: msg`Initial values`,
+ valuesSnapshot: 'after',
+ actorFieldName: 'createdBy',
+ },
+ 'Object Record Updated': {
+ label: msg`Updated`,
+ color: 'blue',
+ valuesTitle: msg`Changes`,
+ actorFieldName: 'updatedBy',
+ },
+ 'Object Record Upserted': {
+ label: msg`Upserted`,
+ color: 'purple',
+ valuesTitle: msg`Changes`,
+ actorFieldName: 'updatedBy',
+ },
+ 'Object Record Deleted': {
+ label: msg`Deleted`,
+ color: 'red',
+ summary: msg`Moved to trash`,
+ valuesTitle: msg`Values before deletion`,
+ valuesSnapshot: 'before',
+ },
+ 'Object Record Restored': {
+ label: msg`Restored`,
+ color: 'turquoise',
+ summary: msg`Restored from trash`,
+ },
+ 'Object Record Destroyed': {
+ label: msg`Permanently deleted`,
+ color: 'red',
+ summary: msg`No values kept`,
+ valuesTitle: msg`Values before deletion`,
+ valuesSnapshot: 'before',
+ },
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeActorColumn.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeActorColumn.tsx
new file mode 100644
index 00000000000..357737925a3
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeActorColumn.tsx
@@ -0,0 +1,17 @@
+import { msg } from '@lingui/core/macro';
+
+import { LogConsoleMemberCell } from '@/log-console/components/LogConsoleMemberCell';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { getLogConsoleRecordChangeActor } from '@/log-console/utils/getLogConsoleRecordChangeActor';
+
+export const LOG_CONSOLE_RECORD_CHANGE_ACTOR_COLUMN: LogConsoleColumn = {
+ id: 'actor',
+ label: msg`Actor`,
+ gridTrack: 'minmax(140px, 166px)',
+ renderCell: (entry) => (
+ <LogConsoleMemberCell
+ actor={getLogConsoleRecordChangeActor(entry)}
+ userId={entry.userId}
+ />
+ ),
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeColumns.tsx
new file mode 100644
index 00000000000..bff8be3baa5
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeColumns.tsx
@@ -0,0 +1,51 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { Status } from 'twenty-ui/primitives/data-display';
+
+import { LogConsoleChangesCell } from '@/log-console/components/LogConsoleChangesCell';
+import { LogConsoleObjectCell } from '@/log-console/components/LogConsoleObjectCell';
+import { LogConsoleRecordCell } from '@/log-console/components/LogConsoleRecordCell';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { LOG_CONSOLE_RECORD_CHANGE_ACTOR_COLUMN } from '@/log-console/constants/LogConsoleRecordChangeActorColumn';
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTagCell } from '@/settings/components/SettingsTableTagCell';
+
+export const LOG_CONSOLE_RECORD_CHANGE_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ {
+ id: 'action',
+ label: msg`Action`,
+ gridTrack: 'minmax(152px, 176px)',
+ renderCell: (entry) => {
+ const action = LOG_CONSOLE_RECORD_ACTIONS[entry.event];
+
+ return (
+ <SettingsTableTagCell>
+ {isDefined(action) && (
+ <Status color={action.color}>{t(action.label)}</Status>
+ )}
+ </SettingsTableTagCell>
+ );
+ },
+ },
+ {
+ id: 'object',
+ label: msg`Object`,
+ gridTrack: 'minmax(120px, 160px)',
+ renderCell: (entry) => <LogConsoleObjectCell entry={entry} />,
+ },
+ {
+ id: 'record',
+ label: msg`Record`,
+ gridTrack: 'minmax(140px, 216px)',
+ renderCell: (entry) => <LogConsoleRecordCell entry={entry} />,
+ },
+ {
+ id: 'changes',
+ label: msg`Changes`,
+ gridTrack: 'minmax(240px, 1fr)',
+ renderCell: (entry) => <LogConsoleChangesCell entry={entry} />,
+ },
+ LOG_CONSOLE_RECORD_CHANGE_ACTOR_COLUMN,
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeFilterFields.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeFilterFields.tsx
new file mode 100644
index 00000000000..9ea1e6b5ca1
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleRecordChangeFilterFields.tsx
@@ -0,0 +1,57 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { IconBox, IconTimelineEvent } from 'twenty-ui/icon';
+import { Status } from 'twenty-ui/primitives/data-display';
+
+import { LOG_CONSOLE_ACTOR_FILTER_FIELD } from '@/log-console/constants/LogConsoleActorFilterField';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+import { ObjectMetadataIcon } from '@/object-metadata/components/ObjectMetadataIcon';
+
+const LOGGED_RECORD_CHANGE_EVENTS = [
+ 'Object Record Created',
+ 'Object Record Updated',
+ 'Object Record Upserted',
+ 'Object Record Deleted',
+ 'Object Record Restored',
+ 'Object Record Destroyed',
+];
+
+export const LOG_CONSOLE_RECORD_CHANGE_FILTER_FIELDS: LogConsoleFilterField[] =
+ [
+ {
+ id: 'action',
+ label: msg`Action`,
+ Icon: IconTimelineEvent,
+ serverField: 'event',
+ getOptions: () =>
+ LOGGED_RECORD_CHANGE_EVENTS.flatMap((event) => {
+ const action = LOG_CONSOLE_RECORD_ACTIONS[event];
+
+ return isDefined(action)
+ ? [
+ {
+ label: t(action.label),
+ values: [event],
+ tag: <Status color={action.color}>{t(action.label)}</Status>,
+ },
+ ]
+ : [];
+ }),
+ },
+ {
+ id: 'object',
+ label: msg`Object`,
+ Icon: IconBox,
+ serverField: 'objectMetadataId',
+ getOptions: ({ activeObjectMetadataItems }) =>
+ activeObjectMetadataItems.map((objectMetadataItem) => ({
+ label: objectMetadataItem.labelPlural,
+ values: [objectMetadataItem.id],
+ startIcon: (
+ <ObjectMetadataIcon objectMetadataItem={objectMetadataItem} />
+ ),
+ })),
+ },
+ LOG_CONSOLE_ACTOR_FILTER_FIELD,
+ ];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityColumns.tsx
new file mode 100644
index 00000000000..25a2d87a999
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityColumns.tsx
@@ -0,0 +1,31 @@
+import { msg } from '@lingui/core/macro';
+
+import { LogConsoleMemberCell } from '@/log-console/components/LogConsoleMemberCell';
+import { LOG_CONSOLE_SECURITY_EVENT_COLUMN } from '@/log-console/constants/LogConsoleSecurityEventColumn';
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+
+export const LOG_CONSOLE_SECURITY_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ LOG_CONSOLE_SECURITY_EVENT_COLUMN,
+ {
+ id: 'actor',
+ label: msg`Actor`,
+ gridTrack: 'minmax(140px, 200px)',
+ renderCell: (entry) => (
+ <LogConsoleMemberCell
+ userId={entry.userId}
+ isImpersonator={entry.event === 'Impersonation'}
+ />
+ ),
+ },
+ {
+ id: 'details',
+ label: msg`Details`,
+ gridTrack: 'minmax(200px, 1fr)',
+ renderCell: (entry) => (
+ <SettingsTableTextCell text={entry.properties?.message} />
+ ),
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityEventColumn.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityEventColumn.tsx
new file mode 100644
index 00000000000..1891c1edc54
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityEventColumn.tsx
@@ -0,0 +1,24 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { Status } from 'twenty-ui/primitives/data-display';
+
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { getLogConsoleSecurityEvent } from '@/log-console/utils/getLogConsoleSecurityEvent';
+import { SettingsTableTagCell } from '@/settings/components/SettingsTableTagCell';
+
+export const LOG_CONSOLE_SECURITY_EVENT_COLUMN: LogConsoleColumn = {
+ id: 'event',
+ label: msg`Event`,
+ gridTrack: 'minmax(160px, 216px)',
+ renderCell: (entry) => {
+ const securityEvent = getLogConsoleSecurityEvent(entry);
+
+ return (
+ <SettingsTableTagCell>
+ {isDefined(securityEvent) && (
+ <Status color={securityEvent.color}>{t(securityEvent.label)}</Status>
+ )}
+ </SettingsTableTagCell>
+ );
+ },
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityFilterFields.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityFilterFields.tsx
new file mode 100644
index 00000000000..279b43ae70c
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSecurityFilterFields.tsx
@@ -0,0 +1,49 @@
+import { msg, t } from '@lingui/core/macro';
+import {
+ IconLogin2,
+ IconServer,
+ IconSpy,
+ IconTimelineEvent,
+ IconUserPlus,
+ IconWorld,
+} from 'twenty-ui/icon';
+
+import { LOG_CONSOLE_ACTOR_FILTER_FIELD } from '@/log-console/constants/LogConsoleActorFilterField';
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+
+export const LOG_CONSOLE_SECURITY_FILTER_FIELDS: LogConsoleFilterField[] = [
+ {
+ id: 'event',
+ label: msg`Event`,
+ Icon: IconTimelineEvent,
+ serverField: 'event',
+ getOptions: () => [
+ {
+ label: t`Sessions`,
+ values: ['AuthSession'],
+ startIcon: <IconLogin2 />,
+ },
+ {
+ label: t`Impersonation`,
+ values: ['Impersonation'],
+ startIcon: <IconSpy />,
+ },
+ {
+ label: t`Signed up`,
+ values: ['User Signup'],
+ startIcon: <IconUserPlus />,
+ },
+ {
+ label: t`Custom domain`,
+ values: ['Custom Domain Activated', 'Custom Domain Deactivated'],
+ startIcon: <IconWorld />,
+ },
+ {
+ label: t`Server administrator access updated`,
+ values: ['ServerAdminAccessChanged'],
+ startIcon: <IconServer />,
+ },
+ ],
+ },
+ LOG_CONSOLE_ACTOR_FILTER_FIELD,
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleSources.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSources.tsx
new file mode 100644
index 00000000000..a87c0012995
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleSources.tsx
@@ -0,0 +1,344 @@
+import { msg, plural, t } from '@lingui/core/macro';
+import { isNonEmptyString } from '@sniptt/guards';
+import { SettingsPath } from 'twenty-shared/types';
+import {
+ getSettingsPath,
+ getUrlHostnameOrThrow,
+ isDefined,
+ isValidUrl,
+} from 'twenty-shared/utils';
+import {
+ IconAddressBook,
+ IconAlertTriangle,
+ IconArrowUpRight,
+ IconBox,
+ IconBrandTypescript,
+ IconClock,
+ IconCoins,
+ IconEye,
+ IconGauge,
+ IconHistory,
+ IconKey,
+ IconLink,
+ IconStatusChange,
+ IconSum,
+ IconTerminal,
+ IconUsers,
+ IconWebhook,
+} from 'twenty-ui/icon';
+import { Status, Tag } from 'twenty-ui/primitives/data-display';
+
+import { LogConsoleCredits } from '@/log-console/components/LogConsoleCredits';
+import { LogConsoleMemberChip } from '@/log-console/components/LogConsoleMemberChip';
+import { LogConsoleRecordChangeDetail } from '@/log-console/components/LogConsoleRecordChangeDetail';
+import { LogConsoleWebhookEndpointLink } from '@/log-console/components/LogConsoleWebhookEndpointLink';
+import { LOG_CONSOLE_ACTOR_FILTER_FIELD } from '@/log-console/constants/LogConsoleActorFilterField';
+import { LOG_CONSOLE_APPLICATION_LOG_COLUMNS } from '@/log-console/constants/LogConsoleApplicationLogColumns';
+import { LOG_CONSOLE_APPLICATION_LOG_FILTER_FIELDS } from '@/log-console/constants/LogConsoleApplicationLogFilterFields';
+import { LOG_CONSOLE_LEVELS } from '@/log-console/constants/LogConsoleLevels';
+import { LOG_CONSOLE_PAGE_VIEW_COLUMNS } from '@/log-console/constants/LogConsolePageViewColumns';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { LOG_CONSOLE_RECORD_CHANGE_ACTOR_COLUMN } from '@/log-console/constants/LogConsoleRecordChangeActorColumn';
+import { LOG_CONSOLE_RECORD_CHANGE_COLUMNS } from '@/log-console/constants/LogConsoleRecordChangeColumns';
+import { LOG_CONSOLE_RECORD_CHANGE_FILTER_FIELDS } from '@/log-console/constants/LogConsoleRecordChangeFilterFields';
+import { LOG_CONSOLE_SECURITY_COLUMNS } from '@/log-console/constants/LogConsoleSecurityColumns';
+import { LOG_CONSOLE_SECURITY_FILTER_FIELDS } from '@/log-console/constants/LogConsoleSecurityFilterFields';
+import { LOG_CONSOLE_USAGE_EVENT_COLUMNS } from '@/log-console/constants/LogConsoleUsageEventColumns';
+import { LOG_CONSOLE_WEBHOOK_COLUMNS } from '@/log-console/constants/LogConsoleWebhookColumns';
+import { type LogConsoleDetailField } from '@/log-console/types/LogConsoleDetailField';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { getLogConsoleRecordLabel } from '@/log-console/utils/getLogConsoleRecordLabel';
+import { getLogConsoleSecurityEvent } from '@/log-console/utils/getLogConsoleSecurityEvent';
+import { getUsageOperationTypeLabel } from '@/settings/usage/utils/getUsageOperationTypeLabel';
+import { NavigationButton } from '@/ui/input/components/NavigationButton';
+import {
+ EventLogFilterOperand,
+ EventLogTable,
+} from '~/generated-metadata/graphql';
+import { formatNumber } from '~/utils/format/formatNumber';
+
+const TIME_DETAIL_FIELD: LogConsoleDetailField = {
+ label: msg`Time`,
+ Icon: IconClock,
+ renderValue: (_entry, { formattedTimestamp }) => formattedTimestamp,
+};
+
+export const LOG_CONSOLE_SOURCES: LogConsoleSource[] = [
+ {
+ id: 'record-changes',
+ label: msg`Record changes`,
+ Icon: IconAddressBook,
+ table: EventLogTable.OBJECT_EVENT,
+ filterFields: LOG_CONSOLE_RECORD_CHANGE_FILTER_FIELDS,
+ requiresAuditLogs: false,
+ columns: LOG_CONSOLE_RECORD_CHANGE_COLUMNS,
+ detailFields: [
+ {
+ label: msg`Action`,
+ Icon: IconHistory,
+ renderValue: (entry) => {
+ const action = LOG_CONSOLE_RECORD_ACTIONS[entry.event];
+
+ return isDefined(action) ? (
+ <Status color={action.color}>{t(action.label)}</Status>
+ ) : null;
+ },
+ },
+ TIME_DETAIL_FIELD,
+ {
+ label: msg`Actor`,
+ Icon: IconUsers,
+ renderValue: (entry) =>
+ LOG_CONSOLE_RECORD_CHANGE_ACTOR_COLUMN.renderCell(entry),
+ },
+ {
+ label: msg`Object`,
+ Icon: IconBox,
+ renderValue: (_entry, { objectMetadataItem }) =>
+ objectMetadataItem?.labelPlural,
+ },
+ ],
+ idFields: [
+ { label: msg`Record ID`, getId: (entry) => entry.recordId },
+ { label: msg`User ID`, getId: (entry) => entry.userId },
+ ],
+ getCountLabel: ({ count, formattedCount }) =>
+ plural(count, {
+ one: `${formattedCount} change`,
+ other: `${formattedCount} changes`,
+ }),
+ getDetailTitle: (entry, { objectMetadataItem }) =>
+ getLogConsoleRecordLabel({ entry, objectMetadataItem }),
+ renderDetailContent: (entry) => (
+ <LogConsoleRecordChangeDetail entry={entry} />
+ ),
+ },
+ {
+ id: 'security',
+ label: msg`Security`,
+ Icon: IconKey,
+ table: EventLogTable.WORKSPACE_EVENT,
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: [
+ 'AuthSession',
+ 'Impersonation',
+ 'ServerAdminAccessChanged',
+ 'User Signup',
+ 'Custom Domain Activated',
+ 'Custom Domain Deactivated',
+ ],
+ },
+ ],
+ filterFields: LOG_CONSOLE_SECURITY_FILTER_FIELDS,
+ requiresAuditLogs: true,
+ columns: LOG_CONSOLE_SECURITY_COLUMNS,
+ detailFields: [
+ {
+ label: msg`Event`,
+ Icon: IconHistory,
+ renderValue: (entry) => {
+ const securityEvent = getLogConsoleSecurityEvent(entry);
+
+ return isDefined(securityEvent) ? (
+ <Tag color={securityEvent.color}>{t(securityEvent.label)}</Tag>
+ ) : null;
+ },
+ },
+ TIME_DETAIL_FIELD,
+ {
+ label: msg`Actor`,
+ Icon: IconUsers,
+ renderValue: (entry) => (
+ <LogConsoleMemberChip
+ userId={entry.userId}
+ isImpersonator={entry.event === 'Impersonation'}
+ />
+ ),
+ },
+ ],
+ idFields: [{ label: msg`User ID`, getId: (entry) => entry.userId }],
+ getSeverity: (entry) => getLogConsoleSecurityEvent(entry)?.severity,
+ getDetailTitle: (entry) => {
+ const securityEvent = getLogConsoleSecurityEvent(entry);
+
+ return isDefined(securityEvent) ? t(securityEvent.label) : entry.event;
+ },
+ },
+ {
+ id: 'app-logs',
+ label: msg`App logs`,
+ Icon: IconTerminal,
+ DetailIcon: IconBrandTypescript,
+ table: EventLogTable.APPLICATION_LOG,
+ filterFields: LOG_CONSOLE_APPLICATION_LOG_FILTER_FIELDS,
+ requiresAuditLogs: false,
+ columns: LOG_CONSOLE_APPLICATION_LOG_COLUMNS,
+ detailFields: [
+ {
+ label: msg`Level`,
+ Icon: IconAlertTriangle,
+ renderValue: (entry) => {
+ const level = LOG_CONSOLE_LEVELS[entry.properties?.level];
+
+ return isDefined(level) ? (
+ <Tag color={level.color}>{t(level.label)}</Tag>
+ ) : null;
+ },
+ },
+ TIME_DETAIL_FIELD,
+ ],
+ idFields: [
+ {
+ label: msg`Execution`,
+ Icon: IconTerminal,
+ getId: (entry) => entry.properties?.executionId,
+ },
+ ],
+ getSeverity: (entry) =>
+ LOG_CONSOLE_LEVELS[entry.properties?.level]?.severity,
+ getDetailTitle: (entry) => entry.event,
+ },
+ {
+ id: 'webhooks',
+ label: msg`Webhooks`,
+ Icon: IconWebhook,
+ table: EventLogTable.WORKSPACE_EVENT,
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: ['Webhook Response'],
+ },
+ ],
+ requiresAuditLogs: true,
+ columns: LOG_CONSOLE_WEBHOOK_COLUMNS,
+ detailFields: [
+ {
+ label: msg`Status`,
+ Icon: IconStatusChange,
+ renderValue: (entry) => (
+ <Tag color={entry.properties?.success ? 'green' : 'red'}>
+ {entry.properties?.status ?? t`Network error`}
+ </Tag>
+ ),
+ },
+ TIME_DETAIL_FIELD,
+ {
+ label: msg`Event`,
+ Icon: IconWebhook,
+ renderValue: (entry) => entry.properties?.eventName,
+ },
+ {
+ label: msg`Endpoint URL`,
+ Icon: IconLink,
+ renderValue: (entry) =>
+ isNonEmptyString(entry.properties?.url) ? (
+ <LogConsoleWebhookEndpointLink url={entry.properties.url} />
+ ) : null,
+ },
+ ],
+ idFields: [
+ { label: msg`Webhook ID`, getId: (entry) => entry.properties?.webhookId },
+ ],
+ getSeverity: (entry) => (entry.properties?.success ? undefined : 'error'),
+ getDetailTitle: (entry) => {
+ const url = entry.properties?.url ?? '';
+
+ return `${entry.properties?.eventName} → ${isValidUrl(url) ? getUrlHostnameOrThrow(url) : url}`;
+ },
+ renderDetailContent: (entry) => (
+ <NavigationButton
+ size="sm"
+ startIcon={<IconArrowUpRight />}
+ to={getSettingsPath(SettingsPath.WebhookDetail, {
+ webhookId: entry.properties?.webhookId,
+ })}
+ style={{ alignSelf: 'flex-start' }}
+ >
+ {t`Open webhook settings`}
+ </NavigationButton>
+ ),
+ },
+ {
+ id: 'page-views',
+ label: msg`Page views`,
+ Icon: IconEye,
+ table: EventLogTable.PAGEVIEW,
+ filterFields: [{ ...LOG_CONSOLE_ACTOR_FILTER_FIELD, label: msg`Member` }],
+ requiresAuditLogs: true,
+ columns: LOG_CONSOLE_PAGE_VIEW_COLUMNS,
+ detailFields: [
+ TIME_DETAIL_FIELD,
+ {
+ label: msg`Member`,
+ Icon: IconUsers,
+ renderValue: (entry) => <LogConsoleMemberChip userId={entry.userId} />,
+ },
+ ],
+ idFields: [
+ { label: msg`User ID`, getId: (entry) => entry.userId },
+ {
+ label: msg`Session ID`,
+ getId: (entry) => entry.properties?.sessionId,
+ },
+ ],
+ getCountLabel: ({ count, formattedCount }) =>
+ plural(count, {
+ one: `${formattedCount} page view`,
+ other: `${formattedCount} page views`,
+ }),
+ getDetailTitle: (entry) => entry.properties?.pathname ?? entry.event,
+ },
+ {
+ id: 'usage',
+ label: msg`Usage`,
+ Icon: IconGauge,
+ table: EventLogTable.USAGE_EVENT,
+ requiresAuditLogs: true,
+ columns: LOG_CONSOLE_USAGE_EVENT_COLUMNS,
+ detailFields: [
+ TIME_DETAIL_FIELD,
+ {
+ label: msg`Spender`,
+ Icon: IconUsers,
+ renderValue: (entry) => (
+ <LogConsoleMemberChip userWorkspaceId={entry.userId} />
+ ),
+ },
+ {
+ label: msg`Quantity`,
+ Icon: IconSum,
+ renderValue: (entry) => formatNumber(entry.properties?.quantity),
+ },
+ {
+ label: msg`Usage`,
+ Icon: IconCoins,
+ renderValue: (entry) => (
+ <LogConsoleCredits
+ creditsUsedMicro={entry.properties?.creditsUsedMicro}
+ />
+ ),
+ },
+ ],
+ idFields: [
+ { label: msg`User workspace ID`, getId: (entry) => entry.userId },
+ ],
+ getCountLabel: ({ count, formattedCount }) =>
+ plural(count, {
+ one: `${formattedCount} usage event`,
+ other: `${formattedCount} usage events`,
+ }),
+ getDetailTitle: (entry) => {
+ const operationTypeLabel = getUsageOperationTypeLabel(
+ entry.properties?.operationType,
+ );
+
+ return isDefined(operationTypeLabel)
+ ? t(operationTypeLabel)
+ : (entry.properties?.operationType ?? entry.event);
+ },
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleTabListInstanceId.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTabListInstanceId.ts
new file mode 100644
index 00000000000..dcb95b1c67f
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTabListInstanceId.ts
@@ -0,0 +1 @@
+export const LOG_CONSOLE_TAB_LIST_INSTANCE_ID = 'log-console-tab-list';
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleTableScrollWrapperId.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTableScrollWrapperId.ts
new file mode 100644
index 00000000000..e48eeaf212f
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTableScrollWrapperId.ts
@@ -0,0 +1 @@
+export const LOG_CONSOLE_TABLE_SCROLL_WRAPPER_ID = 'log-console-table';
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeColumn.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeColumn.tsx
new file mode 100644
index 00000000000..9a57655af6d
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeColumn.tsx
@@ -0,0 +1,11 @@
+import { msg } from '@lingui/core/macro';
+
+import { LogConsoleTimeCell } from '@/log-console/components/LogConsoleTimeCell';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+
+export const LOG_CONSOLE_TIME_COLUMN: LogConsoleColumn = {
+ id: 'time',
+ label: msg`Time`,
+ gridTrack: '208px',
+ renderCell: (entry) => <LogConsoleTimeCell timestamp={entry.timestamp} />,
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeRangePresets.ts b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeRangePresets.ts
new file mode 100644
index 00000000000..4e35521a9ec
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleTimeRangePresets.ts
@@ -0,0 +1,18 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+import { type Temporal } from 'temporal-polyfill';
+
+import { type LogConsoleTimeRangePreset } from '@/log-console/types/LogConsoleTimeRangePreset';
+
+export const LOG_CONSOLE_TIME_RANGE_PRESETS: Record<
+ LogConsoleTimeRangePreset,
+ { label: MessageDescriptor; duration: Temporal.DurationLike }
+> = {
+ '15m': { label: msg`Last 15 minutes`, duration: { minutes: 15 } },
+ '1h': { label: msg`Last 1 hour`, duration: { hours: 1 } },
+ '4h': { label: msg`Last 4 hours`, duration: { hours: 4 } },
+ '24h': { label: msg`Last 24 hours`, duration: { hours: 24 } },
+ '7d': { label: msg`Last 7 days`, duration: { days: 7 } },
+ '30d': { label: msg`Last 30 days`, duration: { days: 30 } },
+ '90d': { label: msg`Last 90 days`, duration: { days: 90 } },
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageEventColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageEventColumns.tsx
new file mode 100644
index 00000000000..33737eadbf3
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageEventColumns.tsx
@@ -0,0 +1,45 @@
+import { msg } from '@lingui/core/macro';
+
+import { LogConsoleCreditsCell } from '@/log-console/components/LogConsoleCreditsCell';
+import { LogConsoleMemberCell } from '@/log-console/components/LogConsoleMemberCell';
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { LOG_CONSOLE_USAGE_OPERATION_COLUMN } from '@/log-console/constants/LogConsoleUsageOperationColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+import { formatNumber } from '~/utils/format/formatNumber';
+
+export const LOG_CONSOLE_USAGE_EVENT_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ LOG_CONSOLE_USAGE_OPERATION_COLUMN,
+ {
+ id: 'spender',
+ label: msg`Spender`,
+ gridTrack: 'minmax(140px, 1fr)',
+ renderCell: (entry) => (
+ <LogConsoleMemberCell userWorkspaceId={entry.userId} />
+ ),
+ },
+ {
+ id: 'quantity',
+ label: msg`Quantity`,
+ gridTrack: '104px',
+ renderCell: (entry) => (
+ <SettingsTableTextCell
+ align="right"
+ text={formatNumber(entry.properties?.quantity)}
+ />
+ ),
+ align: 'right',
+ },
+ {
+ id: 'usage',
+ label: msg`Usage`,
+ gridTrack: '120px',
+ renderCell: (entry) => (
+ <LogConsoleCreditsCell
+ creditsUsedMicro={entry.properties?.creditsUsedMicro}
+ />
+ ),
+ align: 'right',
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageOperationColumn.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageOperationColumn.tsx
new file mode 100644
index 00000000000..11ff9ced5ea
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleUsageOperationColumn.tsx
@@ -0,0 +1,27 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+import { getUsageOperationTypeLabel } from '@/settings/usage/utils/getUsageOperationTypeLabel';
+
+export const LOG_CONSOLE_USAGE_OPERATION_COLUMN: LogConsoleColumn = {
+ id: 'operation',
+ label: msg`Operation`,
+ gridTrack: 'minmax(140px, 216px)',
+ renderCell: (entry) => {
+ const operationTypeLabel = getUsageOperationTypeLabel(
+ entry.properties?.operationType,
+ );
+
+ return (
+ <SettingsTableTextCell
+ text={
+ isDefined(operationTypeLabel)
+ ? t(operationTypeLabel)
+ : entry.properties?.operationType
+ }
+ />
+ );
+ },
+};
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookColumns.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookColumns.tsx
new file mode 100644
index 00000000000..16123bae6d0
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookColumns.tsx
@@ -0,0 +1,36 @@
+import { msg } from '@lingui/core/macro';
+
+import { LOG_CONSOLE_TIME_COLUMN } from '@/log-console/constants/LogConsoleTimeColumn';
+import { LOG_CONSOLE_WEBHOOK_STATUS_COLUMN } from '@/log-console/constants/LogConsoleWebhookStatusColumn';
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableLinkCell } from '@/settings/components/SettingsTableLinkCell';
+import { SettingsTableTextCell } from '@/settings/components/SettingsTableTextCell';
+
+export const LOG_CONSOLE_WEBHOOK_COLUMNS: LogConsoleColumn[] = [
+ LOG_CONSOLE_TIME_COLUMN,
+ {
+ id: 'event',
+ label: msg`Event`,
+ gridTrack: 'minmax(140px, 186px)',
+ renderCell: (entry) => (
+ <SettingsTableTextCell text={entry.properties?.eventName} />
+ ),
+ },
+ {
+ id: 'endpoint',
+ label: msg`Endpoint`,
+ gridTrack: 'minmax(160px, 1fr)',
+ renderCell: (entry) => (
+ <SettingsTableLinkCell url={entry.properties?.url} />
+ ),
+ },
+ LOG_CONSOLE_WEBHOOK_STATUS_COLUMN,
+ {
+ id: 'error',
+ label: msg`Error`,
+ gridTrack: 'minmax(160px, 1fr)',
+ renderCell: (entry) => (
+ <SettingsTableTextCell text={entry.properties?.error ?? '—'} />
+ ),
+ },
+];
diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookStatusColumn.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookStatusColumn.tsx
new file mode 100644
index 00000000000..42fb6d35617
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleWebhookStatusColumn.tsx
@@ -0,0 +1,18 @@
+import { msg, t } from '@lingui/core/macro';
+import { Status } from 'twenty-ui/primitives/data-display';
+
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { SettingsTableTagCell } from '@/settings/components/SettingsTableTagCell';
+
+export const LOG_CONSOLE_WEBHOOK_STATUS_COLUMN: LogConsoleColumn = {
+ id: 'status',
+ label: msg`Status`,
+ gridTrack: '120px',
+ renderCell: (entry) => (
+ <SettingsTableTagCell>
+ <Status color={entry.properties?.success ? 'green' : 'red'}>
+ {entry.properties?.status ?? t`Network error`}
+ </Status>
+ </SettingsTableTagCell>
+ ),
+};
diff --git a/packages/twenty-front/src/modules/log-console/hooks/useIsLogConsoleAllowed.ts b/packages/twenty-front/src/modules/log-console/hooks/useIsLogConsoleAllowed.ts
new file mode 100644
index 00000000000..ab4cfbd1aae
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/hooks/useIsLogConsoleAllowed.ts
@@ -0,0 +1,27 @@
+import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';
+import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
+import { useIsMobile } from 'twenty-ui/utilities';
+import {
+ FeatureFlagKey,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
+
+export const useIsLogConsoleAllowed = () => {
+ const isLogsSettingsSectionEnabled = useIsFeatureEnabled(
+ FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED,
+ );
+ const isAdvancedModeEnabled = useAtomStateValue(isAdvancedModeEnabledState);
+ const hasSecurityPermission = useHasPermissionFlag(
+ PermissionFlagType.SECURITY,
+ );
+ const isMobile = useIsMobile();
+
+ return (
+ isLogsSettingsSectionEnabled &&
+ isAdvancedModeEnabled &&
+ hasSecurityPermission &&
+ !isMobile
+ );
+};
diff --git a/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleMember.ts b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleMember.ts
new file mode 100644
index 00000000000..c929288eefa
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleMember.ts
@@ -0,0 +1,60 @@
+import { useLingui } from '@lingui/react/macro';
+import { isNonEmptyString } from '@sniptt/guards';
+import { isDefined } from 'twenty-shared/utils';
+
+import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
+import { type LogConsoleMember } from '@/log-console/types/LogConsoleMember';
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+
+type UseLogConsoleMemberArgs = {
+ userId?: string | null;
+ userWorkspaceId?: string | null;
+ actor?: Partial<FieldActorValue>;
+ isImpersonator?: boolean;
+};
+
+export const useLogConsoleMember = ({
+ userId,
+ userWorkspaceId,
+ actor,
+ isImpersonator = false,
+}: UseLogConsoleMemberArgs): LogConsoleMember | undefined => {
+ const { t } = useLingui();
+ const currentWorkspaceMembers = useAtomStateValue(
+ currentWorkspaceMembersState,
+ );
+
+ const workspaceMember = currentWorkspaceMembers.find((member) =>
+ isDefined(actor)
+ ? member.id === actor.workspaceMemberId
+ : isDefined(userWorkspaceId)
+ ? member.userWorkspaceId === userWorkspaceId
+ : member.userId === userId,
+ );
+
+ if (isDefined(workspaceMember)) {
+ return {
+ ...actor,
+ name: `${workspaceMember.name.firstName} ${workspaceMember.name.lastName}`,
+ workspaceMemberId: workspaceMember.id,
+ avatarUrl: workspaceMember.avatarUrl,
+ };
+ }
+
+ if (isDefined(actor)) {
+ return actor;
+ }
+
+ const isUnknownUser =
+ currentWorkspaceMembers.length > 0 &&
+ (isNonEmptyString(userId) || isNonEmptyString(userWorkspaceId));
+
+ if (!isUnknownUser) {
+ return undefined;
+ }
+
+ return isImpersonator
+ ? { name: t`Support team`, isSupportTeam: true }
+ : { name: t`Unknown user` };
+};
diff --git a/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleRetention.ts b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleRetention.ts
new file mode 100644
index 00000000000..9fe77e9df72
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleRetention.ts
@@ -0,0 +1,25 @@
+import { useLingui } from '@lingui/react/macro';
+
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { LOG_CONSOLE_APPLICATION_LOG_RETENTION_IN_DAYS } from '@/log-console/constants/LogConsoleApplicationLogRetentionInDays';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { EventLogTable } from '~/generated-metadata/graphql';
+
+export const useLogConsoleRetention = (source: LogConsoleSource) => {
+ const { t } = useLingui();
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
+
+ const isApplicationLog = source.table === EventLogTable.APPLICATION_LOG;
+
+ const retentionInDays = isApplicationLog
+ ? LOG_CONSOLE_APPLICATION_LOG_RETENTION_IN_DAYS
+ : (currentWorkspace?.eventLogRetentionDays ?? 90);
+
+ return {
+ retentionInDays,
+ retentionDescription: isApplicationLog
+ ? t`App logs are kept ${retentionInDays} days.`
+ : t`Audit logs are kept ${retentionInDays} days.`,
+ };
+};
diff --git a/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleTimeZone.ts b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleTimeZone.ts
new file mode 100644
index 00000000000..17d7f7a9576
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/hooks/useLogConsoleTimeZone.ts
@@ -0,0 +1,10 @@
+import { useDateTimeFormat } from '@/localization/hooks/useDateTimeFormat';
+import { logConsoleTimeZoneState } from '@/log-console/states/logConsoleTimeZoneState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+
+export const useLogConsoleTimeZone = () => {
+ const { timeZone } = useDateTimeFormat();
+ const logConsoleTimeZone = useAtomStateValue(logConsoleTimeZoneState);
+
+ return logConsoleTimeZone === 'utc' ? 'UTC' : timeZone;
+};
diff --git a/packages/twenty-front/src/modules/log-console/states/isLogConsoleFullScreenState.ts b/packages/twenty-front/src/modules/log-console/states/isLogConsoleFullScreenState.ts
new file mode 100644
index 00000000000..604f151184c
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/isLogConsoleFullScreenState.ts
@@ -0,0 +1,6 @@
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const isLogConsoleFullScreenState = createAtomState<boolean>({
+ key: 'isLogConsoleFullScreenState',
+ defaultValue: false,
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleDisplayModeState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleDisplayModeState.ts
new file mode 100644
index 00000000000..c5ed766ebab
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleDisplayModeState.ts
@@ -0,0 +1,10 @@
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const logConsoleDisplayModeState = createAtomState<
+ 'collapsed' | 'open' | 'closed'
+>({
+ key: 'logConsoleDisplayModeState',
+ defaultValue: 'open',
+ useLocalStorage: true,
+ localStorageOptions: { getOnInit: true },
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleFiltersState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleFiltersState.ts
new file mode 100644
index 00000000000..a5ed96d9dab
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleFiltersState.ts
@@ -0,0 +1,7 @@
+import { type LogConsoleFilter } from '@/log-console/types/LogConsoleFilter';
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const logConsoleFiltersState = createAtomState<LogConsoleFilter[]>({
+ key: 'logConsoleFiltersState',
+ defaultValue: [],
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleHeightState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleHeightState.ts
new file mode 100644
index 00000000000..d5ac84e66bb
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleHeightState.ts
@@ -0,0 +1,8 @@
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const logConsoleHeightState = createAtomState<number | null>({
+ key: 'logConsoleHeightState',
+ defaultValue: null,
+ useLocalStorage: true,
+ localStorageOptions: { getOnInit: true },
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleSelectedLogState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleSelectedLogState.ts
new file mode 100644
index 00000000000..66ba7b6db58
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleSelectedLogState.ts
@@ -0,0 +1,11 @@
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export const logConsoleSelectedLogState = createAtomState<{
+ source: LogConsoleSource;
+ entry: EventLogRecord;
+} | null>({
+ key: 'logConsoleSelectedLogState',
+ defaultValue: null,
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleTimeRangeState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleTimeRangeState.ts
new file mode 100644
index 00000000000..795ca487b2b
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleTimeRangeState.ts
@@ -0,0 +1,7 @@
+import { type LogConsoleTimeRange } from '@/log-console/types/LogConsoleTimeRange';
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const logConsoleTimeRangeState = createAtomState<LogConsoleTimeRange>({
+ key: 'logConsoleTimeRangeState',
+ defaultValue: '24h',
+});
diff --git a/packages/twenty-front/src/modules/log-console/states/logConsoleTimeZoneState.ts b/packages/twenty-front/src/modules/log-console/states/logConsoleTimeZoneState.ts
new file mode 100644
index 00000000000..fddca2fd058
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/states/logConsoleTimeZoneState.ts
@@ -0,0 +1,6 @@
+import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
+
+export const logConsoleTimeZoneState = createAtomState<'member' | 'utc'>({
+ key: 'logConsoleTimeZoneState',
+ defaultValue: 'member',
+});
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleColumn.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleColumn.ts
new file mode 100644
index 00000000000..45637acbfa9
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleColumn.ts
@@ -0,0 +1,12 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { type ReactNode } from 'react';
+
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export type LogConsoleColumn = {
+ id: string;
+ label: MessageDescriptor;
+ gridTrack: string;
+ renderCell: (entry: EventLogRecord) => ReactNode;
+ align?: 'right';
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleDetailField.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleDetailField.ts
new file mode 100644
index 00000000000..3c87c07615b
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleDetailField.ts
@@ -0,0 +1,18 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { type ReactNode } from 'react';
+import { type IconComponent } from 'twenty-ui/icon';
+
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export type LogConsoleDetailField = {
+ label: MessageDescriptor;
+ Icon: IconComponent;
+ renderValue: (
+ entry: EventLogRecord,
+ context: {
+ formattedTimestamp: string;
+ objectMetadataItem?: EnrichedObjectMetadataItem;
+ },
+ ) => ReactNode;
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleFilter.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilter.ts
new file mode 100644
index 00000000000..541dd97da8a
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilter.ts
@@ -0,0 +1,7 @@
+import { type EventLogFilterOperand } from '~/generated-metadata/graphql';
+
+export type LogConsoleFilter = {
+ filterFieldId: string;
+ operand: EventLogFilterOperand;
+ values: string[];
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterField.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterField.ts
new file mode 100644
index 00000000000..238310f66df
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterField.ts
@@ -0,0 +1,21 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { type IconComponent } from 'twenty-ui/icon';
+
+import { type LogConsoleFilterOption } from '@/log-console/types/LogConsoleFilterOption';
+import { type LogicFunction } from '@/logic-functions/types/LogicFunction';
+import { type FlatApplication } from '@/metadata-store/types/FlatApplication';
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
+
+export type LogConsoleFilterField = {
+ id: string;
+ label: MessageDescriptor;
+ Icon: IconComponent;
+ serverField: string;
+ getOptions: (workspace: {
+ workspaceMembers: PartialWorkspaceMember[];
+ activeObjectMetadataItems: EnrichedObjectMetadataItem[];
+ logicFunctions: LogicFunction[];
+ applications: FlatApplication[];
+ }) => LogConsoleFilterOption[];
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterOption.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterOption.ts
new file mode 100644
index 00000000000..17f0ec36c26
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleFilterOption.ts
@@ -0,0 +1,8 @@
+import { type ReactNode } from 'react';
+
+export type LogConsoleFilterOption = {
+ label: string;
+ values: string[];
+ startIcon?: ReactNode;
+ tag?: ReactNode;
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleIdField.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleIdField.ts
new file mode 100644
index 00000000000..2b2d5a03500
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleIdField.ts
@@ -0,0 +1,10 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { type IconComponent } from 'twenty-ui/icon';
+
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export type LogConsoleIdField = {
+ label: MessageDescriptor;
+ Icon?: IconComponent;
+ getId: (entry: EventLogRecord) => string | null | undefined;
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleMember.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleMember.ts
new file mode 100644
index 00000000000..d4a0fe709d7
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleMember.ts
@@ -0,0 +1,6 @@
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+
+export type LogConsoleMember = Partial<FieldActorValue> & {
+ avatarUrl?: string | null;
+ isSupportTeam?: boolean;
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleSeverity.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleSeverity.ts
new file mode 100644
index 00000000000..93fad011f05
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleSeverity.ts
@@ -0,0 +1 @@
+export type LogConsoleSeverity = 'error' | 'warning';
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleSource.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleSource.ts
new file mode 100644
index 00000000000..e97e104fca6
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleSource.ts
@@ -0,0 +1,37 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { type ReactNode } from 'react';
+import { type IconComponent } from 'twenty-ui/icon';
+
+import { type LogConsoleColumn } from '@/log-console/types/LogConsoleColumn';
+import { type LogConsoleDetailField } from '@/log-console/types/LogConsoleDetailField';
+import { type LogConsoleFilterField } from '@/log-console/types/LogConsoleFilterField';
+import { type LogConsoleIdField } from '@/log-console/types/LogConsoleIdField';
+import { type LogConsoleSeverity } from '@/log-console/types/LogConsoleSeverity';
+import { type LogConsoleSourceId } from '@/log-console/types/LogConsoleSourceId';
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import {
+ type EventLogFieldFilterInput,
+ type EventLogRecord,
+ type EventLogTable,
+} from '~/generated-metadata/graphql';
+
+export type LogConsoleSource = {
+ id: LogConsoleSourceId;
+ label: MessageDescriptor;
+ Icon: IconComponent;
+ DetailIcon?: IconComponent;
+ table: EventLogTable;
+ fieldFilters?: EventLogFieldFilterInput[];
+ filterFields?: LogConsoleFilterField[];
+ requiresAuditLogs: boolean;
+ columns: LogConsoleColumn[];
+ detailFields: LogConsoleDetailField[];
+ idFields: LogConsoleIdField[];
+ getCountLabel?: (input: { count: number; formattedCount: string }) => string;
+ getSeverity?: (entry: EventLogRecord) => LogConsoleSeverity | undefined;
+ getDetailTitle: (
+ entry: EventLogRecord,
+ context: { objectMetadataItem?: EnrichedObjectMetadataItem },
+ ) => string;
+ renderDetailContent?: (entry: EventLogRecord) => ReactNode;
+};
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleSourceId.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleSourceId.ts
new file mode 100644
index 00000000000..789948ccae0
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleSourceId.ts
@@ -0,0 +1,7 @@
+export type LogConsoleSourceId =
+ | 'record-changes'
+ | 'security'
+ | 'app-logs'
+ | 'webhooks'
+ | 'page-views'
+ | 'usage';
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRange.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRange.ts
new file mode 100644
index 00000000000..439bf6c203f
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRange.ts
@@ -0,0 +1,6 @@
+import { type LogConsoleTimeRangePreset } from '@/log-console/types/LogConsoleTimeRangePreset';
+
+export type LogConsoleTimeRange =
+ | LogConsoleTimeRangePreset
+ | 'today'
+ | 'yesterday';
diff --git a/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRangePreset.ts b/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRangePreset.ts
new file mode 100644
index 00000000000..d5d275b8729
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/types/LogConsoleTimeRangePreset.ts
@@ -0,0 +1,8 @@
+export type LogConsoleTimeRangePreset =
+ | '15m'
+ | '1h'
+ | '4h'
+ | '24h'
+ | '7d'
+ | '30d'
+ | '90d';
diff --git a/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleFieldFilters.test.ts b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleFieldFilters.test.ts
new file mode 100644
index 00000000000..bcb466ad7c5
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleFieldFilters.test.ts
@@ -0,0 +1,85 @@
+import { msg } from '@lingui/core/macro';
+import { IconTimelineEvent, IconUsers } from 'twenty-ui/icon';
+
+import { getLogConsoleFieldFilters } from '@/log-console/utils/getLogConsoleFieldFilters';
+import { EventLogFilterOperand } from '~/generated-metadata/graphql';
+
+const SECURITY_SCOPE = {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: ['AuthSession', 'Impersonation'],
+};
+
+const SECURITY_SOURCE = {
+ fieldFilters: [SECURITY_SCOPE],
+ filterFields: [
+ {
+ id: 'event',
+ label: msg`Event`,
+ Icon: IconTimelineEvent,
+ serverField: 'event',
+ getOptions: () => [],
+ },
+ {
+ id: 'actor',
+ label: msg`Actor`,
+ Icon: IconUsers,
+ serverField: 'userId',
+ getOptions: () => [],
+ },
+ ],
+};
+
+describe('getLogConsoleFieldFilters', () => {
+ it('should send the source scope then each chip on its server field', () => {
+ expect(
+ getLogConsoleFieldFilters({
+ source: SECURITY_SOURCE,
+ filters: [
+ {
+ filterFieldId: 'actor',
+ operand: EventLogFilterOperand.IS,
+ values: ['user-1', 'user-2'],
+ },
+ {
+ filterFieldId: 'event',
+ operand: EventLogFilterOperand.IS_NOT,
+ values: ['Impersonation'],
+ },
+ ],
+ }),
+ ).toEqual([
+ SECURITY_SCOPE,
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS_NOT,
+ values: ['Impersonation'],
+ },
+ {
+ field: 'userId',
+ operand: EventLogFilterOperand.IS,
+ values: ['user-1', 'user-2'],
+ },
+ ]);
+ });
+
+ it('should leave out chips without values and chips of other sources', () => {
+ expect(
+ getLogConsoleFieldFilters({
+ source: SECURITY_SOURCE,
+ filters: [
+ {
+ filterFieldId: 'actor',
+ operand: EventLogFilterOperand.IS_NOT,
+ values: [],
+ },
+ {
+ filterFieldId: 'level',
+ operand: EventLogFilterOperand.IS,
+ values: ['ERROR'],
+ },
+ ],
+ }),
+ ).toEqual([SECURITY_SCOPE]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeActor.test.ts b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeActor.test.ts
new file mode 100644
index 00000000000..c0e4aac4846
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeActor.test.ts
@@ -0,0 +1,53 @@
+import { getLogConsoleRecordChangeActor } from '@/log-console/utils/getLogConsoleRecordChangeActor';
+
+const ZAPIER_SYNC_ACTOR = {
+ source: 'API',
+ workspaceMemberId: null,
+ name: 'Zapier sync',
+ context: {},
+};
+
+const UNNAMED_ACTOR = {
+ source: 'MANUAL',
+ workspaceMemberId: null,
+ name: '',
+ context: {},
+};
+
+const getActor = ({
+ userId,
+ updatedBy,
+}: {
+ userId: string | null;
+ updatedBy: object;
+}) =>
+ getLogConsoleRecordChangeActor({
+ event: 'Object Record Updated',
+ timestamp: '2026-09-24T11:45:58.561Z',
+ userId,
+ properties: { after: { updatedBy } },
+ });
+
+describe('getLogConsoleRecordChangeActor', () => {
+ it('should use the named actor of the snapshot', () => {
+ expect(getActor({ userId: null, updatedBy: ZAPIER_SYNC_ACTOR })).toEqual(
+ ZAPIER_SYNC_ACTOR,
+ );
+ });
+
+ it('should leave an unnamed actor to the member of the user', () => {
+ expect(
+ getActor({
+ userId: 'cefec196-1610-4e82-95db-99ed5856117b',
+ updatedBy: UNNAMED_ACTOR,
+ }),
+ ).toBeUndefined();
+ });
+
+ it('should read System without a named actor or a user', () => {
+ expect(getActor({ userId: null, updatedBy: UNNAMED_ACTOR })).toEqual({
+ source: 'SYSTEM',
+ name: 'System',
+ });
+ });
+});
diff --git a/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeFieldDiffs.test.ts b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeFieldDiffs.test.ts
new file mode 100644
index 00000000000..8a91c3fd84f
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleRecordChangeFieldDiffs.test.ts
@@ -0,0 +1,109 @@
+import { getLogConsoleRecordChangeFieldDiffs } from '@/log-console/utils/getLogConsoleRecordChangeFieldDiffs';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
+
+const COMPANY = {
+ id: 'e0c49b77-894b-449b-9c31-6bfcff73a0e5',
+ name: 'Maple Consulting Inc.',
+ employees: 2383,
+ tagline: '',
+ accountOwnerId: '7112c4f4-d9c7-4eaf-b52f-84f2bd9c1b7c',
+ position: 3,
+};
+
+const EMPTY_PHONES = {
+ primaryPhoneNumber: '',
+ primaryPhoneCountryCode: '',
+ primaryPhoneCallingCode: '',
+ additionalPhones: null,
+};
+
+const SECONDARY_PHONE = {
+ number: '612345678',
+ callingCode: '+33',
+ countryCode: 'FR',
+};
+
+const getFieldDiffs = (
+ entry: Pick<EventLogRecord, 'event' | 'properties'>,
+ objectNameSingular = 'company',
+) =>
+ getLogConsoleRecordChangeFieldDiffs({
+ entry: { ...entry, timestamp: '2026-09-24T09:42:31.096Z' },
+ objectMetadataItem: getMockObjectMetadataItemOrThrow(objectNameSingular),
+ }).map(({ key, before, after }) => ({ key, before, after }));
+
+describe('getLogConsoleRecordChangeFieldDiffs', () => {
+ it('should keep the changed business fields of an update', () => {
+ expect(
+ getFieldDiffs({
+ event: 'Object Record Updated',
+ properties: {
+ diff: {
+ name: { before: 'Maple', after: 'Maple Consulting Inc.' },
+ position: { before: 1, after: 3 },
+ tagline: { before: null, after: '' },
+ employees: { before: 2380, after: 2383 },
+ },
+ },
+ }),
+ ).toEqual([
+ { key: 'name', before: 'Maple', after: 'Maple Consulting Inc.' },
+ { key: 'employees', before: 2380, after: 2383 },
+ ]);
+ });
+
+ it('should list the filled fields of a created record except its name', () => {
+ expect(
+ getFieldDiffs({
+ event: 'Object Record Created',
+ properties: { after: COMPANY },
+ }),
+ ).toEqual([
+ { key: 'employees', before: undefined, after: 2383 },
+ {
+ key: 'accountOwnerId',
+ before: undefined,
+ after: { id: COMPANY.accountOwnerId },
+ },
+ ]);
+ });
+
+ it('should keep a phone change that only adds a secondary number', () => {
+ const phonesAfter = {
+ ...EMPTY_PHONES,
+ additionalPhones: [SECONDARY_PHONE],
+ };
+
+ expect(
+ getFieldDiffs(
+ {
+ event: 'Object Record Updated',
+ properties: {
+ diff: { phones: { before: EMPTY_PHONES, after: phonesAfter } },
+ },
+ },
+ 'person',
+ ),
+ ).toEqual([{ key: 'phones', before: EMPTY_PHONES, after: phonesAfter }]);
+ });
+
+ it('should keep secondary phone numbers stored as a JSON string', () => {
+ const phonesAfter = {
+ ...EMPTY_PHONES,
+ additionalPhones: JSON.stringify([SECONDARY_PHONE]),
+ };
+
+ expect(
+ getFieldDiffs(
+ {
+ event: 'Object Record Updated',
+ properties: {
+ diff: { phones: { before: EMPTY_PHONES, after: phonesAfter } },
+ },
+ },
+ 'person',
+ ),
+ ).toEqual([{ key: 'phones', before: EMPTY_PHONES, after: phonesAfter }]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleTimeRangeBounds.test.ts b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleTimeRangeBounds.test.ts
new file mode 100644
index 00000000000..830184de54e
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/__tests__/getLogConsoleTimeRangeBounds.test.ts
@@ -0,0 +1,35 @@
+import { getLogConsoleTimeRangeBounds } from '@/log-console/utils/getLogConsoleTimeRangeBounds';
+
+const NOW = '2026-09-24T12:05:00Z';
+
+describe('getLogConsoleTimeRangeBounds', () => {
+ it('should send only the start of a preset', () => {
+ expect(
+ getLogConsoleTimeRangeBounds({
+ timeRange: '24h',
+ now: NOW,
+ timeZone: 'Europe/Paris',
+ }),
+ ).toEqual({ start: '2026-09-23T12:05:00Z' });
+ });
+
+ it('should start today at midnight in the time zone', () => {
+ expect(
+ getLogConsoleTimeRangeBounds({
+ timeRange: 'today',
+ now: NOW,
+ timeZone: 'Europe/Paris',
+ }),
+ ).toEqual({ start: '2026-09-23T22:00:00Z' });
+ });
+
+ it('should bound yesterday by midnights in the time zone', () => {
+ expect(
+ getLogConsoleTimeRangeBounds({
+ timeRange: 'yesterday',
+ now: '2026-10-26T12:00:00Z',
+ timeZone: 'Europe/Paris',
+ }),
+ ).toEqual({ start: '2026-10-24T22:00:00Z', end: '2026-10-25T23:00:00Z' });
+ });
+});
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleFieldFilters.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleFieldFilters.ts
new file mode 100644
index 00000000000..19585bf4b62
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleFieldFilters.ts
@@ -0,0 +1,28 @@
+import { isNonEmptyArray } from 'twenty-shared/utils';
+
+import { type LogConsoleFilter } from '@/log-console/types/LogConsoleFilter';
+import { type LogConsoleSource } from '@/log-console/types/LogConsoleSource';
+import { type EventLogFieldFilterInput } from '~/generated-metadata/graphql';
+
+export const getLogConsoleFieldFilters = ({
+ source,
+ filters,
+}: {
+ source: Pick<LogConsoleSource, 'fieldFilters' | 'filterFields'>;
+ filters: LogConsoleFilter[];
+}): EventLogFieldFilterInput[] => [
+ ...(source.fieldFilters ?? []),
+ ...(source.filterFields ?? []).flatMap((filterField) =>
+ filters
+ .filter(
+ (filter) =>
+ filter.filterFieldId === filterField.id &&
+ isNonEmptyArray(filter.values),
+ )
+ .map(({ operand, values }) => ({
+ field: filterField.serverField,
+ operand,
+ values,
+ })),
+ ),
+];
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeActor.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeActor.ts
new file mode 100644
index 00000000000..71912e79140
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeActor.ts
@@ -0,0 +1,28 @@
+import { t } from '@lingui/core/macro';
+import { isNonEmptyString } from '@sniptt/guards';
+import { isDefined } from 'twenty-shared/utils';
+
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export const getLogConsoleRecordChangeActor = (
+ entry: EventLogRecord,
+): Partial<FieldActorValue> | undefined => {
+ const actorFieldName =
+ LOG_CONSOLE_RECORD_ACTIONS[entry.event]?.actorFieldName;
+
+ const snapshotActor = isDefined(actorFieldName)
+ ? entry.properties?.after?.[actorFieldName]
+ : undefined;
+
+ if (isNonEmptyString(snapshotActor?.name)) {
+ return snapshotActor;
+ }
+
+ if (isNonEmptyString(entry.userId)) {
+ return undefined;
+ }
+
+ return { source: 'SYSTEM', name: t`System` };
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeFieldDiffs.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeFieldDiffs.ts
new file mode 100644
index 00000000000..77ebb215225
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordChangeFieldDiffs.ts
@@ -0,0 +1,68 @@
+import { isDefined } from 'twenty-shared/utils';
+
+import { findFieldMetadataItemByDiffKey } from '@/activities/timeline-activities/utils/findFieldMetadataItemByDiffKey';
+import { LOG_CONSOLE_RECORD_ACTIONS } from '@/log-console/constants/LogConsoleRecordActions';
+import { isLogConsoleFieldValueEmpty } from '@/log-console/utils/isLogConsoleFieldValueEmpty';
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export const getLogConsoleRecordChangeFieldDiffs = ({
+ entry,
+ objectMetadataItem,
+}: {
+ entry: EventLogRecord;
+ objectMetadataItem: EnrichedObjectMetadataItem;
+}) => {
+ const valuesSnapshot =
+ LOG_CONSOLE_RECORD_ACTIONS[entry.event]?.valuesSnapshot;
+
+ const fieldDiffsByKey: Record<string, { before?: unknown; after?: unknown }> =
+ isDefined(valuesSnapshot)
+ ? Object.fromEntries(
+ Object.entries(entry.properties?.[valuesSnapshot] ?? {}).map(
+ ([key, value]) => [key, { [valuesSnapshot]: value }],
+ ),
+ )
+ : (entry.properties?.diff ?? {});
+
+ return Object.entries(fieldDiffsByKey).flatMap(([key, { before, after }]) => {
+ const fieldMetadataItem = findFieldMetadataItemByDiffKey(
+ objectMetadataItem.readableFields,
+ key,
+ );
+
+ if (!isDefined(fieldMetadataItem) || fieldMetadataItem.isSystem) {
+ return [];
+ }
+
+ const isRecordNameOfSnapshot =
+ isDefined(valuesSnapshot) &&
+ fieldMetadataItem.id ===
+ objectMetadataItem.labelIdentifierFieldMetadataId;
+
+ if (isRecordNameOfSnapshot) {
+ return [];
+ }
+
+ const isEmpty = (value: unknown) =>
+ isLogConsoleFieldValueEmpty({ fieldMetadataItem, value });
+
+ if (isEmpty(before) && isEmpty(after)) {
+ return [];
+ }
+
+ const isJoinColumn = key !== fieldMetadataItem.name;
+
+ const toFieldValue = (value: unknown) =>
+ isJoinColumn && isDefined(value) ? { id: value } : value;
+
+ return [
+ {
+ key,
+ fieldMetadataItem,
+ before: toFieldValue(before),
+ after: toFieldValue(after),
+ },
+ ];
+ });
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordLabel.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordLabel.ts
new file mode 100644
index 00000000000..54ca0c6195d
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleRecordLabel.ts
@@ -0,0 +1,21 @@
+import { isDefined } from 'twenty-shared/utils';
+
+import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+const RECORD_ID_DISPLAYED_LENGTH = 8;
+
+export const getLogConsoleRecordLabel = ({
+ entry,
+ objectMetadataItem,
+}: {
+ entry: EventLogRecord;
+ objectMetadataItem?: Pick<EnrichedObjectMetadataItem, 'labelSingular'>;
+}) => {
+ const displayedRecordId =
+ entry.recordId?.slice(0, RECORD_ID_DISPLAYED_LENGTH) ?? '';
+
+ return isDefined(objectMetadataItem)
+ ? `${objectMetadataItem.labelSingular} ${displayedRecordId}`
+ : displayedRecordId;
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleSecurityEvent.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleSecurityEvent.ts
new file mode 100644
index 00000000000..f8c808bdf24
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleSecurityEvent.ts
@@ -0,0 +1,72 @@
+import { type MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+import { type ThemeColor } from 'twenty-ui/theme';
+
+import { type LogConsoleSeverity } from '@/log-console/types/LogConsoleSeverity';
+import { type EventLogRecord } from '~/generated-metadata/graphql';
+
+export const getLogConsoleSecurityEvent = (
+ entry: EventLogRecord,
+):
+ | {
+ label: MessageDescriptor;
+ color: ThemeColor;
+ severity?: LogConsoleSeverity;
+ }
+ | undefined => {
+ switch (entry.properties?.action ?? entry.event) {
+ case 'user_signed_in':
+ return { label: msg`Signed in`, color: 'blue' };
+ case 'user_signed_out':
+ return { label: msg`Logged out`, color: 'gray' };
+ case 'session_revoked':
+ return { label: msg`Session revoked`, color: 'orange' };
+ case 'attempt':
+ case 'attempted':
+ case 'login_token_attempt':
+ case 'login_token_generated':
+ case 'token_exchange_attempt':
+ return {
+ label: msg`Impersonation requested`,
+ color: 'orange',
+ };
+ case 'token_exchange_success':
+ case 'issued':
+ return {
+ label: msg`Impersonation started`,
+ color: 'orange',
+ };
+ case 'ended':
+ return {
+ label: msg`Impersonation ended`,
+ color: 'orange',
+ };
+ case 'login_token_failed':
+ case 'token_exchange_failed':
+ return {
+ label: msg`Impersonation failed`,
+ color: 'red',
+ severity: 'error',
+ };
+ case 'User Signup':
+ return { label: msg`Signed up`, color: 'green' };
+ case 'Custom Domain Activated':
+ return {
+ label: msg`Custom domain activated`,
+ color: 'turquoise',
+ };
+ case 'Custom Domain Deactivated':
+ return {
+ label: msg`Custom domain deactivated`,
+ color: 'orange',
+ };
+ case 'ServerAdminAccessChanged':
+ return {
+ label: msg`Server administrator access updated`,
+ color: 'orange',
+ severity: 'warning',
+ };
+ default:
+ return undefined;
+ }
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/getLogConsoleTimeRangeBounds.ts b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleTimeRangeBounds.ts
new file mode 100644
index 00000000000..161bb43e5e7
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/getLogConsoleTimeRangeBounds.ts
@@ -0,0 +1,34 @@
+import { Temporal } from 'temporal-polyfill';
+
+import { LOG_CONSOLE_TIME_RANGE_PRESETS } from '@/log-console/constants/LogConsoleTimeRangePresets';
+import { type LogConsoleTimeRange } from '@/log-console/types/LogConsoleTimeRange';
+
+export const getLogConsoleTimeRangeBounds = ({
+ timeRange,
+ now,
+ timeZone,
+}: {
+ timeRange: LogConsoleTimeRange;
+ now: string;
+ timeZone: string;
+}): { start: string; end?: string } => {
+ const zonedNow = Temporal.Instant.from(now).toZonedDateTimeISO(timeZone);
+ const startOfToday = zonedNow.startOfDay();
+
+ switch (timeRange) {
+ case 'today':
+ return { start: startOfToday.toInstant().toString() };
+ case 'yesterday':
+ return {
+ start: startOfToday.subtract({ days: 1 }).toInstant().toString(),
+ end: startOfToday.toInstant().toString(),
+ };
+ default:
+ return {
+ start: zonedNow
+ .subtract(LOG_CONSOLE_TIME_RANGE_PRESETS[timeRange].duration)
+ .toInstant()
+ .toString(),
+ };
+ }
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/isLogConsoleFieldValueEmpty.ts b/packages/twenty-front/src/modules/log-console/utils/isLogConsoleFieldValueEmpty.ts
new file mode 100644
index 00000000000..4ce54721bf4
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/isLogConsoleFieldValueEmpty.ts
@@ -0,0 +1,38 @@
+import { FieldMetadataType } from 'twenty-shared/types';
+import { isNonEmptyArray, isPlainObject } from 'twenty-shared/utils';
+
+import {
+ normalizeTimelinePhonesDiffValue,
+ type TimelinePhonesDiffValue,
+} from '@/activities/timeline-activities/utils/normalizeTimelinePhonesDiffValue';
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+import { isFieldValueEmpty } from '@/object-record/record-field/ui/utils/isFieldValueEmpty';
+
+export const isLogConsoleFieldValueEmpty = ({
+ fieldMetadataItem,
+ value,
+}: {
+ fieldMetadataItem: Pick<FieldMetadataItem, 'type'>;
+ value: unknown;
+}) => {
+ if (
+ fieldMetadataItem.type === FieldMetadataType.PHONES &&
+ isPlainObject(value)
+ ) {
+ const phones = normalizeTimelinePhonesDiffValue(
+ value as TimelinePhonesDiffValue,
+ );
+
+ return (
+ isFieldValueEmpty({
+ fieldDefinition: fieldMetadataItem,
+ fieldValue: phones,
+ }) && !isNonEmptyArray(phones.additionalPhones)
+ );
+ }
+
+ return isFieldValueEmpty({
+ fieldDefinition: fieldMetadataItem,
+ fieldValue: value,
+ });
+};
diff --git a/packages/twenty-front/src/modules/log-console/utils/isLogConsoleTimeRangeWithinRetention.ts b/packages/twenty-front/src/modules/log-console/utils/isLogConsoleTimeRangeWithinRetention.ts
new file mode 100644
index 00000000000..ef0c1fcc64b
--- /dev/null
+++ b/packages/twenty-front/src/modules/log-console/utils/isLogConsoleTimeRangeWithinRetention.ts
@@ -0,0 +1,27 @@
+import { Temporal } from 'temporal-polyfill';
+
+import { LOG_CONSOLE_TIME_RANGE_PRESETS } from '@/log-console/constants/LogConsoleTimeRangePresets';
+import { type LogConsoleTimeRange } from '@/log-console/types/LogConsoleTimeRange';
+
+export const isLogConsoleTimeRangeWithinRetention = ({
+ timeRange,
+ retentionInDays,
+}: {
+ timeRange: LogConsoleTimeRange;
+ retentionInDays: number;
+}) => {
+ if (timeRange === 'today') {
+ return retentionInDays >= 1;
+ }
+
+ if (timeRange === 'yesterday') {
+ return retentionInDays >= 2;
+ }
+
+ return (
+ Temporal.Duration.compare(
+ LOG_CONSOLE_TIME_RANGE_PRESETS[timeRange].duration,
+ { days: retentionInDays },
+ ) <= 0
+ );
+};
diff --git a/packages/twenty-front/src/modules/navigation/components/SettingsNavigationDrawerContent.tsx b/packages/twenty-front/src/modules/navigation/components/SettingsNavigationDrawerContent.tsx
index 06cfea464b4..11991ced699 100644
--- a/packages/twenty-front/src/modules/navigation/components/SettingsNavigationDrawerContent.tsx
+++ b/packages/twenty-front/src/modules/navigation/components/SettingsNavigationDrawerContent.tsx
@@ -1,16 +1,19 @@
import { useIsNavigationDrawerContentExpanded } from '@/navigation/hooks/useIsNavigationDrawerContentExpanded';
+import { useSetAdvancedMode } from '@/navigation/hooks/useSetAdvancedMode';
import { MOBILE_NAVIGATION_BAR_CLEARANCE } from '@/navigation/constants/MobileNavigationBarClearance';
import { SettingsNavigationDrawerItems } from '@/settings/components/SettingsNavigationDrawerItems';
import { AdvancedSettingsSwitch } from '@/ui/input/components/AdvancedSettingsSwitch';
import { NavigationDrawerScrollableContent } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerScrollableContent';
import { NavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSection';
import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
-import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { css } from '@linaria/core';
import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
import { themeCssVariables } from 'twenty-ui/theme';
import { useIsMobile } from 'twenty-ui/utilities';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledAdvancedSwitchFixedContent = styled.div<{ isMobile: boolean }>`
flex-shrink: 0;
@@ -31,8 +34,10 @@ export const SettingsNavigationDrawerContent = () => {
const { t } = useLingui();
const isMobile = useIsMobile();
const isNavigationDrawerExpanded = useIsNavigationDrawerContentExpanded();
- const [isAdvancedModeEnabled, setIsAdvancedModeEnabled] = useAtomState(
- isAdvancedModeEnabledState,
+ const isAdvancedModeEnabled = useAtomStateValue(isAdvancedModeEnabledState);
+ const { setAdvancedMode } = useSetAdvancedMode();
+ const isLogsSettingsSectionEnabled = useIsFeatureEnabled(
+ FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED,
);
return (
@@ -46,8 +51,10 @@ export const SettingsNavigationDrawerContent = () => {
<AdvancedSettingsSwitch
className={advancedSettingsSwitchClassName}
isAdvancedModeEnabled={isAdvancedModeEnabled}
- setIsAdvancedModeEnabled={setIsAdvancedModeEnabled}
- label={t`Advanced`}
+ setIsAdvancedModeEnabled={setAdvancedMode}
+ label={
+ isLogsSettingsSectionEnabled ? t`Developer mode` : t`Advanced`
+ }
isCompact={!isNavigationDrawerExpanded}
/>
</NavigationDrawerSection>
diff --git a/packages/twenty-front/src/modules/navigation/hooks/useSetAdvancedMode.ts b/packages/twenty-front/src/modules/navigation/hooks/useSetAdvancedMode.ts
new file mode 100644
index 00000000000..f76d7d37390
--- /dev/null
+++ b/packages/twenty-front/src/modules/navigation/hooks/useSetAdvancedMode.ts
@@ -0,0 +1,29 @@
+import { isLogConsoleFullScreenState } from '@/log-console/states/isLogConsoleFullScreenState';
+import { logConsoleDisplayModeState } from '@/log-console/states/logConsoleDisplayModeState';
+import { logConsoleHeightState } from '@/log-console/states/logConsoleHeightState';
+import { logConsoleSelectedLogState } from '@/log-console/states/logConsoleSelectedLogState';
+import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState';
+import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';
+
+export const useSetAdvancedMode = () => {
+ const setIsAdvancedModeEnabled = useSetAtomState(isAdvancedModeEnabledState);
+ const setLogConsoleDisplayMode = useSetAtomState(logConsoleDisplayModeState);
+ const setIsLogConsoleFullScreen = useSetAtomState(
+ isLogConsoleFullScreenState,
+ );
+ const setLogConsoleSelectedLog = useSetAtomState(logConsoleSelectedLogState);
+ const setLogConsoleHeight = useSetAtomState(logConsoleHeightState);
+
+ const setAdvancedMode = (isEnabled: boolean) => {
+ setIsAdvancedModeEnabled(isEnabled);
+
+ if (isEnabled) {
+ setLogConsoleSelectedLog(null);
+ setIsLogConsoleFullScreen(false);
+ setLogConsoleHeight(null);
+ setLogConsoleDisplayMode('open');
+ }
+ };
+
+ return { setAdvancedMode };
+};
diff --git a/packages/twenty-front/src/modules/object-record/record-sharing/components/__stories__/RecordSharingDropdown.stories.tsx b/packages/twenty-front/src/modules/object-record/record-sharing/components/__stories__/RecordSharingDropdown.stories.tsx
index 15640232630..f8b578e05d8 100644
--- a/packages/twenty-front/src/modules/object-record/record-sharing/components/__stories__/RecordSharingDropdown.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-sharing/components/__stories__/RecordSharingDropdown.stories.tsx
@@ -29,21 +29,25 @@ const SharingStory = ({
id: 'owner',
name: { firstName: 'Alex', lastName: 'Morgan' },
userEmail: '[email protected]',
+ userId: 'owner-user',
},
{
id: 'member',
name: { firstName: 'Phil', lastName: 'Schiler' },
userEmail: '[email protected]',
+ userId: 'member-user',
},
{
id: 'invite',
name: { firstName: 'Jane', lastName: 'Austen' },
userEmail: '[email protected]',
+ userId: 'invite-user',
},
{
id: 'long',
name: { firstName: 'Alexandra', lastName: 'Montgomery-Wellington' },
userEmail: '[email protected]',
+ userId: 'long-user',
},
];
store.set(currentWorkspaceMembersState.atom, members);
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts b/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts
index dfc04ec1b14..f2642cbc044 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/constants/SettingsAdminFeatureFlagMetadata.ts
@@ -66,4 +66,8 @@ export const SETTINGS_ADMIN_FEATURE_FLAG_METADATA: Partial<
label: msg`Record creation form`,
description: msg`Use a dedicated form when creating records.`,
},
+ [FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED]: {
+ label: msg`Logs console`,
+ description: msg`Show a logs console at the bottom of the app in Advanced mode.`,
+ },
};
diff --git a/packages/twenty-front/src/modules/settings/billing/components/internal/SettingsBillingCardField.tsx b/packages/twenty-front/src/modules/settings/billing/components/internal/SettingsBillingCardField.tsx
index 9bc3f48fec5..26041766971 100644
--- a/packages/twenty-front/src/modules/settings/billing/components/internal/SettingsBillingCardField.tsx
+++ b/packages/twenty-front/src/modules/settings/billing/components/internal/SettingsBillingCardField.tsx
@@ -1,7 +1,7 @@
import { styled } from '@linaria/react';
import { type ReactNode } from 'react';
import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
-import { type TablerIconsProps } from 'twenty-ui/icon';
+import { type IconComponent, type TablerIconsProps } from 'twenty-ui/icon';
import { themeCssVariables, useTheme } from 'twenty-ui/theme';
const StyledBillingFieldRow = styled.div`
@@ -59,7 +59,7 @@ const StyledScheduledChangeItem = styled.div`
`;
type BillingFieldRowProps = {
- Icon: (props: TablerIconsProps) => ReactNode;
+ Icon: IconComponent;
label: string;
children: ReactNode;
};
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx b/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx
index 50d9d8e865e..6f069d12de0 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsPageContainer.tsx
@@ -1,3 +1,4 @@
+import { SETTINGS_CONTENT_MAX_WIDTH } from '@/settings/constants/SettingsContentMaxWidth';
import { useIsMobile } from 'twenty-ui/utilities';
import { useWorkspaceSurface } from '@/ui/layout/hooks/useWorkspaceSurface';
import { useWorkspaceSurfaceScopedComponentInstanceId } from '@/ui/layout/hooks/useWorkspaceSurfaceScopedComponentInstanceId';
@@ -10,7 +11,6 @@ import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import { themeCssVariables } from 'twenty-ui/theme';
-const SETTINGS_CONTENT_MAX_WIDTH = 760;
const SETTINGS_PATHS_BY_LENGTH = Object.values(SettingsPath).sort(
(a, b) => b.length - a.length,
);
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx b/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx
new file mode 100644
index 00000000000..fec32d7fd2b
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx
@@ -0,0 +1,33 @@
+import { styled } from '@linaria/react';
+import { isNonEmptyString } from '@sniptt/guards';
+import { getUrlHostnameOrThrow, isValidUrl } from 'twenty-shared/utils';
+import { RoundedLink } from 'twenty-ui/components';
+import { Tooltip } from 'twenty-ui/primitives/surfaces';
+
+import { TableCell } from '@/ui/layout/table/components/TableCell';
+import { TooltipDelay } from '@/ui/layout/tooltip/constants/TooltipDelay';
+
+const StyledLinkTrigger = styled.span`
+ display: inline-flex;
+ min-width: 0;
+`;
+
+type SettingsTableLinkCellProps = {
+ url?: string | null;
+};
+
+export const SettingsTableLinkCell = ({ url }: SettingsTableLinkCellProps) => (
+ <TableCell overflow="hidden" whiteSpace="nowrap">
+ {isNonEmptyString(url) && (
+ <Tooltip content={url} delay={TooltipDelay.mediumDelay}>
+ <StyledLinkTrigger>
+ <RoundedLink
+ href={url}
+ label={isValidUrl(url) ? getUrlHostnameOrThrow(url) : url}
+ color="secondary"
+ />
+ </StyledLinkTrigger>
+ </Tooltip>
+ )}
+ </TableCell>
+);
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsTableTagCell.tsx b/packages/twenty-front/src/modules/settings/components/SettingsTableTagCell.tsx
new file mode 100644
index 00000000000..cfc64f041e9
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/components/SettingsTableTagCell.tsx
@@ -0,0 +1,15 @@
+import { type ReactNode } from 'react';
+
+import { TableCell } from '@/ui/layout/table/components/TableCell';
+
+type SettingsTableTagCellProps = {
+ children?: ReactNode;
+};
+
+export const SettingsTableTagCell = ({
+ children,
+}: SettingsTableTagCellProps) => (
+ <TableCell overflow="hidden" whiteSpace="nowrap">
+ {children}
+ </TableCell>
+);
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsTableTextCell.tsx b/packages/twenty-front/src/modules/settings/components/SettingsTableTextCell.tsx
new file mode 100644
index 00000000000..b18e82302af
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/components/SettingsTableTextCell.tsx
@@ -0,0 +1,36 @@
+import { styled } from '@linaria/react';
+import { type ReactNode } from 'react';
+import { isDefined } from 'twenty-shared/utils';
+import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { TableCell } from '@/ui/layout/table/components/TableCell';
+
+const StyledStartElement = styled.span`
+ display: flex;
+ flex-shrink: 0;
+`;
+
+type SettingsTableTextCellProps = {
+ text?: string | null;
+ startElement?: ReactNode;
+ align?: 'left' | 'right';
+};
+
+export const SettingsTableTextCell = ({
+ text,
+ startElement,
+ align,
+}: SettingsTableTextCellProps) => (
+ <TableCell
+ align={align}
+ gap={themeCssVariables.spacing[1]}
+ overflow="hidden"
+ whiteSpace="nowrap"
+ >
+ {isDefined(startElement) && (
+ <StyledStartElement>{startElement}</StyledStartElement>
+ )}
+ <OverflowingTextWithTooltip text={text} />
+ </TableCell>
+);
diff --git a/packages/twenty-front/src/modules/settings/constants/SettingsContentMaxWidth.ts b/packages/twenty-front/src/modules/settings/constants/SettingsContentMaxWidth.ts
new file mode 100644
index 00000000000..8ceb1ed712c
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/constants/SettingsContentMaxWidth.ts
@@ -0,0 +1 @@
+export const SETTINGS_CONTENT_MAX_WIDTH = 760;
diff --git a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
index 89ee7313f07..f2b3bf2f278 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
+++ b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
@@ -145,7 +145,7 @@ export const SettingsLogs = () => {
isDefined(filters.dateRange?.start) ||
isDefined(filters.dateRange?.end);
- const liveRecords = useEventLogsLiveStream({
+ const { liveRecords } = useEventLogsLiveStream({
table: selectedTable,
enabled: !isPaused && !hasActiveFilters && canQuery,
});
diff --git a/packages/twenty-front/src/modules/settings/event-logs/graphql/subscriptions/EventLogsLiveSubscription.ts b/packages/twenty-front/src/modules/settings/event-logs/graphql/subscriptions/EventLogsLiveSubscription.ts
index 34b03f111fd..a12e706e8c2 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/graphql/subscriptions/EventLogsLiveSubscription.ts
+++ b/packages/twenty-front/src/modules/settings/event-logs/graphql/subscriptions/EventLogsLiveSubscription.ts
@@ -1,8 +1,11 @@
import { gql } from '@apollo/client';
export const EVENT_LOGS_LIVE_SUBSCRIPTION = gql`
- subscription EventLogsLive($table: EventLogTable!) {
- eventLogsLive(table: $table) {
+ subscription EventLogsLive(
+ $table: EventLogTable!
+ $fieldFilters: [EventLogFieldFilterInput!]
+ ) {
+ eventLogsLive(table: $table, fieldFilters: $fieldFilters) {
event
timestamp
userId
diff --git a/packages/twenty-front/src/modules/settings/event-logs/hooks/useEventLogsLiveStream.ts b/packages/twenty-front/src/modules/settings/event-logs/hooks/useEventLogsLiveStream.ts
index e48232c7903..7adc13b85a4 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/hooks/useEventLogsLiveStream.ts
+++ b/packages/twenty-front/src/modules/settings/event-logs/hooks/useEventLogsLiveStream.ts
@@ -8,6 +8,7 @@ import { captureException } from '@sentry/react';
import { isDefined } from 'twenty-shared/utils';
import {
+ type EventLogFieldFilterInput,
type EventLogRecord,
type EventLogTable,
} from '~/generated-metadata/graphql';
@@ -20,17 +21,21 @@ const EVENT_LOGS_LIVE_SUBSCRIPTION_QUERY = print(EVENT_LOGS_LIVE_SUBSCRIPTION);
export const useEventLogsLiveStream = ({
table,
+ fieldFilters,
enabled,
}: {
table: EventLogTable;
+ fieldFilters?: EventLogFieldFilterInput[];
enabled: boolean;
-}): EventLogRecord[] => {
+}) => {
const sseClient = useAtomStateValue(sseClientState);
const [liveRecords, setLiveRecords] = useState<EventLogRecord[]>([]);
+ const serializedVariables = JSON.stringify({ table, fieldFilters });
+
useEffect(() => {
setLiveRecords([]);
- }, [table]);
+ }, [serializedVariables]);
useEffect(() => {
if (!enabled) {
@@ -46,7 +51,7 @@ export const useEventLogsLiveStream = ({
const dispose = sseClient.subscribe<EventLogsLivePayload>(
{
query: EVENT_LOGS_LIVE_SUBSCRIPTION_QUERY,
- variables: { table },
+ variables: JSON.parse(serializedVariables),
},
{
next: (value: ExecutionResult<EventLogsLivePayload>) => {
@@ -62,7 +67,9 @@ export const useEventLogsLiveStream = ({
);
return () => dispose();
- }, [enabled, sseClient, table]);
+ }, [enabled, sseClient, serializedVariables]);
+
+ const clearLiveRecords = () => setLiveRecords([]);
- return liveRecords;
+ return { liveRecords, clearLiveRecords };
};
diff --git a/packages/twenty-front/src/modules/settings/event-logs/hooks/useQueryEventLogs.ts b/packages/twenty-front/src/modules/settings/event-logs/hooks/useQueryEventLogs.ts
index 5c55049a32a..6b108d1721e 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/hooks/useQueryEventLogs.ts
+++ b/packages/twenty-front/src/modules/settings/event-logs/hooks/useQueryEventLogs.ts
@@ -20,7 +20,7 @@ export const useEventLogs = (
input: EventLogQueryInput,
options?: { skip?: boolean },
) => {
- const { data, loading, error, fetchMore } = useQuery<
+ const { data, loading, error, fetchMore, refetch } = useQuery<
EventLogsData,
EventLogsVariables
>(GET_EVENT_LOGS, {
@@ -71,5 +71,6 @@ export const useEventLogs = (
loading,
error,
loadMore,
+ refetch,
};
};
diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts
index c193700eb55..56813213720 100644
--- a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts
+++ b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts
@@ -48,6 +48,7 @@ export const useUpdateWorkspaceMemberRole = (roleId: string) => {
id: workspaceMember.id,
name: workspaceMember.name,
userEmail: workspaceMember.userEmail,
+ userId: workspaceMember.userId,
avatarUrl: workspaceMember.avatarUrl,
},
],
@@ -73,6 +74,7 @@ export const useUpdateWorkspaceMemberRole = (roleId: string) => {
name: updatedWorkspaceMember.name,
colorScheme: updatedWorkspaceMember.colorScheme,
userEmail: updatedWorkspaceMember.userEmail,
+ userId: updatedWorkspaceMember.userId,
},
];
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
index 06f0127f39f..979485d2bc2 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
@@ -1,3 +1,4 @@
+import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMemberState';
import { SettingsRoleAssignmentEntityPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown';
import { SettingsRoleAssignmentTable } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentTable';
import { SettingsRoleAssignmentWorkspaceMemberPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdown';
@@ -27,7 +28,7 @@ type RoleAssignmentSectionProps = {
roleTargetType: keyof typeof ROLE_TARGET_CONFIG;
roleId: string;
settingsDraftRole: RoleWithPartialMembers;
- currentWorkspaceMember?: PartialWorkspaceMember;
+ currentWorkspaceMember?: CurrentWorkspaceMember;
onSelect: (
roleTarget: PartialWorkspaceMember | Agent | ApiKeyForRole,
roleTargetType: keyof typeof ROLE_TARGET_CONFIG,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
index f3b8cec7cbe..b0fe70146d0 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
@@ -133,6 +133,7 @@ export const SettingsRoleAssignment = ({
id: member.id,
name: member.name,
userEmail: member.userEmail,
+ userId: member.userId,
avatarUrl: member.avatarUrl,
},
});
diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
index 2ebc4aba5b8..6d3a38d1b05 100644
--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelForDesktop.tsx
@@ -165,8 +165,8 @@ export const SidePanelForDesktop = () => {
<ResizablePanelGap
side="left"
constraints={SIDE_PANEL_CONSTRAINTS}
- currentWidth={sidePanelWidth}
- onWidthChange={handleWidthChange}
+ currentSize={sidePanelWidth}
+ onSizeChange={handleWidthChange}
onCollapse={handleCollapse}
gapWidth={0}
cssVariableName={SIDE_PANEL_WIDTH_VAR}
diff --git a/packages/twenty-front/src/modules/side-panel/components/SidePanelToggleButton.tsx b/packages/twenty-front/src/modules/side-panel/components/SidePanelToggleButton.tsx
index e6add32c15b..a751994dc1a 100644
--- a/packages/twenty-front/src/modules/side-panel/components/SidePanelToggleButton.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/SidePanelToggleButton.tsx
@@ -26,7 +26,8 @@ const StyledButtonWrapper = styled.div<{ alignToTop: boolean }>`
right: ${({ alignToTop }) =>
alignToTop ? themeCssVariables.spacing[3] : 'auto'};
top: ${({ alignToTop }) => (alignToTop ? '0' : 'auto')};
- z-index: ${RootStackingContextZIndices.SidePanelButton};
+ z-index: ${({ alignToTop }) =>
+ alignToTop ? RootStackingContextZIndices.SidePanelButton : 'auto'};
`;
export const SidePanelToggleButton = () => {
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/ActorDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/ActorDisplay.tsx
index 6d1d19e49c3..def38857d3a 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/ActorDisplay.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/ActorDisplay.tsx
@@ -1,23 +1,8 @@
import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
import { AvatarOrIcon } from '@/ui/field/display/components/internal/AvatarOrIcon/AvatarOrIcon';
+import { getActorSourceIcon } from '@/ui/field/display/utils/getActorSourceIcon';
import { t } from '@lingui/core/macro';
-import { ConnectedAccountProvider } from 'twenty-shared/types';
-import {
- IconApi,
- IconCalendar,
- IconGmail,
- IconGoogleCalendar,
- IconMail,
- IconMicrosoftCalendar,
- IconMicrosoftOutlook,
- IconPlug,
- IconRobot,
- IconSettingsAutomation,
- IconUpload,
- IconWebhook,
- type IconComponent,
-} from 'twenty-ui/icon';
import { Chip } from 'twenty-ui/primitives/data-display';
import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
@@ -25,58 +10,6 @@ type ActorDisplayProps = Partial<FieldActorValue> & {
avatarUrl?: string | null;
};
-const PROVIDERS_ICON_MAPPING = {
- EMAIL: {
- [ConnectedAccountProvider.MICROSOFT]: IconMicrosoftOutlook,
- [ConnectedAccountProvider.GOOGLE]: IconGmail,
- [ConnectedAccountProvider.IMAP_SMTP_CALDAV]: IconMail,
- [ConnectedAccountProvider.OIDC]: IconMail,
- [ConnectedAccountProvider.SAML]: IconMail,
- [ConnectedAccountProvider.EMAIL_GROUP]: IconMail,
- // App-managed connections aren't email accounts; this case is unreachable
- // for the EMAIL source but the lookup type still requires every provider.
- [ConnectedAccountProvider.APP]: IconMail,
- default: IconMail,
- },
- CALENDAR: {
- [ConnectedAccountProvider.MICROSOFT]: IconMicrosoftCalendar,
- [ConnectedAccountProvider.GOOGLE]: IconGoogleCalendar,
- default: IconCalendar,
- },
-};
-
-const getLeftIcon = ({
- source,
- context,
-}: Pick<ActorDisplayProps, 'source' | 'context'>):
- | IconComponent
- | undefined => {
- switch (source) {
- case 'API':
- return IconApi;
- case 'IMPORT':
- return IconUpload;
- case 'EMAIL':
- return PROVIDERS_ICON_MAPPING.EMAIL[context?.provider ?? 'default'];
- case 'CALENDAR':
- return (
- PROVIDERS_ICON_MAPPING.CALENDAR[
- context?.provider as keyof typeof PROVIDERS_ICON_MAPPING.CALENDAR
- ] ?? PROVIDERS_ICON_MAPPING.CALENDAR.default
- );
- case 'SYSTEM':
- return IconRobot;
- case 'WORKFLOW':
- return IconSettingsAutomation;
- case 'WEBHOOK':
- return IconWebhook;
- case 'APPLICATION':
- return IconPlug;
- default:
- return undefined;
- }
-};
-
export const ActorDisplay = ({
name,
source,
@@ -84,7 +17,7 @@ export const ActorDisplay = ({
avatarUrl,
context,
}: ActorDisplayProps) => {
- const LeftIcon = getLeftIcon({ source, context });
+ const LeftIcon = getActorSourceIcon({ source, context });
return (
<Chip
diff --git a/packages/twenty-front/src/modules/ui/field/display/utils/getActorSourceIcon.ts b/packages/twenty-front/src/modules/ui/field/display/utils/getActorSourceIcon.ts
new file mode 100644
index 00000000000..be7ee3f21f7
--- /dev/null
+++ b/packages/twenty-front/src/modules/ui/field/display/utils/getActorSourceIcon.ts
@@ -0,0 +1,69 @@
+import { type FieldActorValue } from '@/object-record/record-field/ui/types/FieldMetadata';
+import { ConnectedAccountProvider } from 'twenty-shared/types';
+import {
+ IconApi,
+ IconCalendar,
+ IconGmail,
+ IconGoogleCalendar,
+ IconMail,
+ IconMicrosoftCalendar,
+ IconMicrosoftOutlook,
+ IconPlug,
+ IconRobot,
+ IconSettingsAutomation,
+ IconUpload,
+ IconWebhook,
+ type IconComponent,
+} from 'twenty-ui/icon';
+
+const PROVIDERS_ICON_MAPPING = {
+ EMAIL: {
+ [ConnectedAccountProvider.MICROSOFT]: IconMicrosoftOutlook,
+ [ConnectedAccountProvider.GOOGLE]: IconGmail,
+ [ConnectedAccountProvider.IMAP_SMTP_CALDAV]: IconMail,
+ [ConnectedAccountProvider.OIDC]: IconMail,
+ [ConnectedAccountProvider.SAML]: IconMail,
+ [ConnectedAccountProvider.EMAIL_GROUP]: IconMail,
+ // App-managed connections aren't email accounts; this case is unreachable
+ // for the EMAIL source but the lookup type still requires every provider.
+ [ConnectedAccountProvider.APP]: IconMail,
+ default: IconMail,
+ },
+ CALENDAR: {
+ [ConnectedAccountProvider.MICROSOFT]: IconMicrosoftCalendar,
+ [ConnectedAccountProvider.GOOGLE]: IconGoogleCalendar,
+ default: IconCalendar,
+ },
+};
+
+export const getActorSourceIcon = ({
+ source,
+ context,
+}: Pick<Partial<FieldActorValue>, 'source' | 'context'>):
+ | IconComponent
+ | undefined => {
+ switch (source) {
+ case 'API':
+ return IconApi;
+ case 'IMPORT':
+ return IconUpload;
+ case 'EMAIL':
+ return PROVIDERS_ICON_MAPPING.EMAIL[context?.provider ?? 'default'];
+ case 'CALENDAR':
+ return (
+ PROVIDERS_ICON_MAPPING.CALENDAR[
+ context?.provider as keyof typeof PROVIDERS_ICON_MAPPING.CALENDAR
+ ] ?? PROVIDERS_ICON_MAPPING.CALENDAR.default
+ );
+ case 'SYSTEM':
+ return IconRobot;
+ case 'WORKFLOW':
+ return IconSettingsAutomation;
+ case 'WEBHOOK':
+ return IconWebhook;
+ case 'APPLICATION':
+ return IconPlug;
+ default:
+ return undefined;
+ }
+};
diff --git a/packages/twenty-front/src/modules/ui/layout/constants/RootStackingContextZIndices.ts b/packages/twenty-front/src/modules/ui/layout/constants/RootStackingContextZIndices.ts
index 1e2a161f574..925772d4a29 100644
--- a/packages/twenty-front/src/modules/ui/layout/constants/RootStackingContextZIndices.ts
+++ b/packages/twenty-front/src/modules/ui/layout/constants/RootStackingContextZIndices.ts
@@ -13,6 +13,7 @@
* TODO: add the other remaining components that can appear in the root stacking context
*/
export enum RootStackingContextZIndices {
+ LogConsole = 20,
SidePanel = 21,
SidePanelButton = 22,
MobileNavigationBar = 23,
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/MainAppLayoutWithSidePanel.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/MainAppLayoutWithSidePanel.tsx
index 8c819b55dee..08f9778951b 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/MainAppLayoutWithSidePanel.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/MainAppLayoutWithSidePanel.tsx
@@ -2,6 +2,7 @@ import { WorkspaceSetupChatSidePanelEffect } from '@/onboarding/effect-component
import { CommandMenuForMobile } from '@/command-menu/components/CommandMenuForMobile';
import { useCommandMenuHotKeys } from '@/command-menu/hooks/useCommandMenuHotKeys';
import { RouteContextStoreProvider } from '@/context-store/components/RouteContextStoreProvider';
+import { LogConsole } from '@/log-console/components/LogConsole';
import { SidePanelForDesktop } from '@/side-panel/components/SidePanelForDesktop';
import { SidePanelPathUrlSyncEffect } from '@/side-panel/routing/components/SidePanelPathUrlSyncEffect';
import { useIsMobile } from 'twenty-ui/utilities';
@@ -28,6 +29,21 @@ const StyledRow = styled.div`
}
`;
+const StyledMainColumn = styled.div`
+ display: flex;
+ flex: 1 1 0;
+ flex-direction: column;
+ min-height: 0;
+ min-width: 0;
+ position: relative;
+
+ @media print {
+ display: block;
+ min-height: auto;
+ min-width: auto;
+ }
+`;
+
const StyledContent = styled.div`
display: flex;
flex: 1 1 0;
@@ -52,9 +68,12 @@ export const MainAppLayoutWithSidePanel = () => {
<RouteContextStoreProvider />
<SidePanelPathUrlSyncEffect />
<WorkspaceSetupChatSidePanelEffect />
- <StyledContent>
- <Outlet />
- </StyledContent>
+ <StyledMainColumn>
+ <StyledContent>
+ <Outlet />
+ </StyledContent>
+ <LogConsole />
+ </StyledMainColumn>
{isMobile ? <CommandMenuForMobile /> : <SidePanelForDesktop />}
</StyledRow>
);
diff --git a/packages/twenty-front/src/modules/ui/layout/page/components/__tests__/MainAppLayoutWithSidePanel.test.tsx b/packages/twenty-front/src/modules/ui/layout/page/components/__tests__/MainAppLayoutWithSidePanel.test.tsx
index 8a06bf3ef12..0997607e8de 100644
--- a/packages/twenty-front/src/modules/ui/layout/page/components/__tests__/MainAppLayoutWithSidePanel.test.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page/components/__tests__/MainAppLayoutWithSidePanel.test.tsx
@@ -53,6 +53,10 @@ jest.mock('@/command-menu/components/CommandMenuForMobile', () => ({
CommandMenuForMobile: () => null,
}));
+jest.mock('@/log-console/components/LogConsole', () => ({
+ LogConsole: () => null,
+}));
+
jest.mock('@/side-panel/routing/components/SidePanelPathUrlSyncEffect', () => ({
SidePanelPathUrlSyncEffect: () => null,
}));
diff --git a/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelEdge.tsx b/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelEdge.tsx
index 9d79bf91247..9356d5d34bc 100644
--- a/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelEdge.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelEdge.tsx
@@ -14,9 +14,11 @@ type StyledEdgeProps = {
const StyledEdge = styled.div<StyledEdgeProps>`
align-items: center;
- bottom: 0;
- cursor: col-resize;
+ bottom: ${({ side }) => (side === 'top' ? 'auto' : '0')};
+ cursor: ${({ side }) => (side === 'top' ? 'row-resize' : 'col-resize')};
display: flex;
+ height: ${({ side }) =>
+ side === 'top' ? `${RESIZE_EDGE_WIDTH_PX}px` : 'auto'};
justify-content: center;
left: ${({ side }) =>
side === 'left' ? `-${RESIZE_EDGE_WIDTH_PX / 2}px` : 'auto'};
@@ -25,43 +27,49 @@ const StyledEdge = styled.div<StyledEdgeProps>`
right: ${({ side }) =>
side === 'right' ? `-${RESIZE_EDGE_WIDTH_PX / 2}px` : 'auto'};
top: 0;
- width: ${RESIZE_EDGE_WIDTH_PX}px;
+ width: ${({ side }) =>
+ side === 'top' ? '100%' : `${RESIZE_EDGE_WIDTH_PX}px`};
`;
-const StyledHandle = styled.div<{ isActive: boolean; isHovered: boolean }>`
+const StyledHandle = styled.div<{
+ isActive: boolean;
+ isHovered: boolean;
+ side: ResizablePanelSide;
+}>`
background-color: ${({ isActive, isHovered }) =>
- isActive
- ? themeCssVariables.color.blue
- : isHovered
- ? themeCssVariables.font.color.tertiary
- : themeCssVariables.background.quaternary};
+ isActive || isHovered
+ ? themeCssVariables.border.color.strong
+ : themeCssVariables.background.quaternary};
border-radius: ${themeCssVariables.border.radius.pill};
corner-shape: round;
- height: 48px;
- transform: ${({ isHovered, isActive }) =>
- isHovered || isActive ? 'scaleY(1.2)' : 'scaleY(1)'};
+ height: ${({ side }) => (side === 'top' ? '3px' : '48px')};
+ transform: ${({ isHovered, isActive, side }) => {
+ const scale = isHovered || isActive ? 1.2 : 1;
+
+ return side === 'top' ? `scaleX(${scale})` : `scaleY(${scale})`;
+ }};
transition:
background-color ${themeCssVariables.animation.duration.fast}s,
transform ${themeCssVariables.animation.duration.fast}s;
- width: 4px;
+ width: ${({ side }) => (side === 'top' ? '48px' : '4px')};
`;
type ResizablePanelEdgeProps = {
side: ResizablePanelSide;
constraints: ResizablePanelConstraints;
- currentWidth: number;
- onWidthChange: (width: number) => void;
- onCollapse: () => void;
+ currentSize: number;
+ onSizeChange: (size: number) => void;
+ onCollapse?: () => void;
showHandle?: boolean;
cssVariableName?: string;
- onResizeStart?: () => void;
+ onResizeStart?: (size: number) => void;
};
export const ResizablePanelEdge = ({
side,
constraints,
- currentWidth,
- onWidthChange,
+ currentSize,
+ onSizeChange,
onCollapse,
showHandle = true,
cssVariableName,
@@ -76,8 +84,8 @@ export const ResizablePanelEdge = ({
} = useResizablePanel({
side,
constraints,
- currentWidth,
- onWidthChange,
+ currentSize,
+ onSizeChange,
onCollapse,
cssVariableName,
onResizeStart,
@@ -93,7 +101,7 @@ export const ResizablePanelEdge = ({
onMouseLeave={handleMouseLeave}
>
{showHandle && (
- <StyledHandle isActive={isResizing} isHovered={isHovered} />
+ <StyledHandle side={side} isActive={isResizing} isHovered={isHovered} />
)}
</StyledEdge>
);
diff --git a/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelGap.tsx b/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelGap.tsx
index c426bab6e1f..87cbac895d6 100644
--- a/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelGap.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/resizable-panel/components/ResizablePanelGap.tsx
@@ -22,9 +22,9 @@ const StyledGap = styled.div<{ gapWidth: number }>`
type ResizablePanelGapProps = {
side: ResizablePanelSide;
constraints: ResizablePanelConstraints;
- currentWidth: number;
- onWidthChange: (width: number) => void;
- onCollapse: () => void;
+ currentSize: number;
+ onSizeChange: (size: number) => void;
+ onCollapse?: () => void;
gapWidth: number;
cssVariableName?: string;
onResizeStart?: () => void;
@@ -33,8 +33,8 @@ type ResizablePanelGapProps = {
export const ResizablePanelGap = ({
side,
constraints,
- currentWidth,
- onWidthChange,
+ currentSize,
+ onSizeChange,
onCollapse,
gapWidth,
cssVariableName,
@@ -44,8 +44,8 @@ export const ResizablePanelGap = ({
useResizablePanel({
side,
constraints,
- currentWidth,
- onWidthChange,
+ currentSize,
+ onSizeChange,
onCollapse,
cssVariableName,
onResizeStart,
diff --git a/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/__tests__/useResizablePanel.test.ts b/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/__tests__/useResizablePanel.test.ts
new file mode 100644
index 00000000000..87b2ee40fa3
--- /dev/null
+++ b/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/__tests__/useResizablePanel.test.ts
@@ -0,0 +1,31 @@
+import { renderHook } from '@testing-library/react';
+
+import { useResizablePanel } from '@/ui/layout/resizable-panel/hooks/useResizablePanel';
+
+const CSS_VARIABLE_NAME = '--test-panel-width';
+
+describe('useResizablePanel', () => {
+ afterEach(() => {
+ document.documentElement.style.removeProperty(CSS_VARIABLE_NAME);
+ });
+
+ it('keeps the CSS variable set by its owner when the panel unmounts', () => {
+ document.documentElement.style.setProperty(CSS_VARIABLE_NAME, '240px');
+
+ const { unmount } = renderHook(() =>
+ useResizablePanel({
+ side: 'right',
+ constraints: { min: 200, max: 400, default: 240 },
+ currentSize: 240,
+ onSizeChange: jest.fn(),
+ cssVariableName: CSS_VARIABLE_NAME,
+ }),
+ );
+
+ unmount();
+
+ expect(
+ document.documentElement.style.getPropertyValue(CSS_VARIABLE_NAME),
+ ).toBe('240px');
+ });
+});
diff --git a/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/useResizablePanel.ts b/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/useResizablePanel.ts
index 8b111f829f2..0b6e5f5506b 100644
--- a/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/useResizablePanel.ts
+++ b/packages/twenty-front/src/modules/ui/layout/resizable-panel/hooks/useResizablePanel.ts
@@ -1,4 +1,5 @@
-import { useCallback, useState } from 'react';
+import { useCallback, useRef, useState } from 'react';
+import { isDefined } from 'twenty-shared/utils';
import { getUiZoom } from '@/ui/theme/utils/getUiZoom';
import { useTrackPointer } from '@/ui/utilities/pointer-event/hooks/useTrackPointer';
@@ -11,67 +12,71 @@ import { type ResizablePanelSide } from '@/ui/layout/resizable-panel/types/Resiz
type UseResizablePanelProps = {
side: ResizablePanelSide;
constraints: ResizablePanelConstraints;
- currentWidth: number;
- onWidthChange: (width: number) => void;
- onCollapse: () => void;
+ currentSize: number;
+ onSizeChange: (size: number) => void;
+ onCollapse?: () => void;
cssVariableName?: string;
- onResizeStart?: () => void;
+ onResizeStart?: (size: number) => void;
};
-const clampWidth = (width: number, min: number, max: number): number =>
- Math.min(max, Math.max(min, width));
+const clampSize = (size: number, min: number, max: number): number =>
+ Math.min(max, Math.max(min, size));
export const useResizablePanel = ({
side,
constraints,
- currentWidth,
- onWidthChange,
+ currentSize,
+ onSizeChange,
onCollapse,
cssVariableName,
onResizeStart,
}: UseResizablePanelProps) => {
const [isHovered, setIsHovered] = useState(false);
const [isResizing, setIsResizing] = useState(false);
- const [startX, setStartX] = useState<number | null>(null);
- const [startWidth, setStartWidth] = useState<number>(0);
- const [hasDragged, setHasDragged] = useState(false);
-
- // captured once per drag: reading computed style on every move would
- // force a synchronous style recalc, and the zoom cannot change mid-drag
+ const [startPointerPosition, setStartPointerPosition] = useState<
+ number | null
+ >(null);
+ const [startSize, setStartSize] = useState<number>(0);
+ // eslint-disable-next-line twenty/no-state-useref -- pointer callbacks read this synchronously; useState causes stale closures
+ const hasDraggedRef = useRef(false);
+
+ // reading computed style on every pointer move forces a synchronous style recalc; zoom cannot change mid-drag
const [dragUiZoom, setDragUiZoom] = useState(1);
const handleResizeMove = useCallback<PointerEventListener>(
- ({ x }) => {
- if (startX === null) return;
+ ({ x, y }) => {
+ if (startPointerPosition === null) return;
- const deltaX = (x - startX) / dragUiZoom;
+ const pointerDelta =
+ ((side === 'top' ? y : x) - startPointerPosition) / dragUiZoom;
- if (!hasDragged && Math.abs(deltaX) > RESIZE_DRAG_THRESHOLD_PX) {
- setHasDragged(true);
- onResizeStart?.();
+ if (Math.abs(pointerDelta) <= RESIZE_DRAG_THRESHOLD_PX) {
+ return;
}
- if (Math.abs(deltaX) > RESIZE_DRAG_THRESHOLD_PX) {
- const widthDelta = side === 'right' ? deltaX : -deltaX;
- const clampedWidth = clampWidth(
- startWidth + widthDelta,
- constraints.min,
- constraints.max,
- );
+ const sizeDelta = side === 'right' ? pointerDelta : -pointerDelta;
+ const clampedSize = clampSize(
+ startSize + sizeDelta,
+ constraints.min,
+ constraints.max,
+ );
- if (cssVariableName !== undefined) {
- document.documentElement.style.setProperty(
- cssVariableName,
- `${clampedWidth}px`,
- );
- }
+ if (!hasDraggedRef.current) {
+ hasDraggedRef.current = true;
+ onResizeStart?.(clampedSize);
+ }
+
+ if (isDefined(cssVariableName)) {
+ document.documentElement.style.setProperty(
+ cssVariableName,
+ `${clampedSize}px`,
+ );
}
},
[
dragUiZoom,
- startX,
- startWidth,
- hasDragged,
+ startPointerPosition,
+ startSize,
side,
constraints.min,
constraints.max,
@@ -81,39 +86,39 @@ export const useResizablePanel = ({
);
const handleResizeEnd = useCallback<PointerEventListener>(
- ({ x }) => {
- if (startX === null) {
+ ({ x, y }) => {
+ if (startPointerPosition === null) {
setIsResizing(false);
return;
}
- const deltaX = (x - startX) / dragUiZoom;
+ const pointerDelta =
+ ((side === 'top' ? y : x) - startPointerPosition) / dragUiZoom;
- if (!hasDragged) {
- onCollapse();
- } else {
- const widthDelta = side === 'right' ? deltaX : -deltaX;
- const finalWidth = clampWidth(
- startWidth + widthDelta,
+ if (hasDraggedRef.current) {
+ const sizeDelta = side === 'right' ? pointerDelta : -pointerDelta;
+ const finalSize = clampSize(
+ startSize + sizeDelta,
constraints.min,
constraints.max,
);
- onWidthChange(finalWidth);
+ onSizeChange(finalSize);
+ } else {
+ onCollapse?.();
}
- setStartX(null);
+ setStartPointerPosition(null);
setIsResizing(false);
},
[
dragUiZoom,
- startX,
- startWidth,
- hasDragged,
+ startPointerPosition,
+ startSize,
side,
constraints.min,
constraints.max,
+ onSizeChange,
onCollapse,
- onWidthChange,
],
);
@@ -127,12 +132,12 @@ export const useResizablePanel = ({
(event: React.MouseEvent) => {
event.preventDefault();
setDragUiZoom(getUiZoom());
- setStartX(event.clientX);
- setStartWidth(currentWidth);
- setHasDragged(false);
+ setStartPointerPosition(side === 'top' ? event.clientY : event.clientX);
+ setStartSize(currentSize);
+ hasDraggedRef.current = false;
setIsResizing(true);
},
- [currentWidth],
+ [side, currentSize],
);
const handleMouseEnter = useCallback(() => {
diff --git a/packages/twenty-front/src/modules/ui/layout/resizable-panel/types/ResizablePanelSide.ts b/packages/twenty-front/src/modules/ui/layout/resizable-panel/types/ResizablePanelSide.ts
index b9123270db8..c8dd26c849f 100644
--- a/packages/twenty-front/src/modules/ui/layout/resizable-panel/types/ResizablePanelSide.ts
+++ b/packages/twenty-front/src/modules/ui/layout/resizable-panel/types/ResizablePanelSide.ts
@@ -1 +1 @@
-export type ResizablePanelSide = 'left' | 'right';
+export type ResizablePanelSide = 'left' | 'right' | 'top';
diff --git a/packages/twenty-front/src/modules/ui/layout/tab-list/components/TabList.tsx b/packages/twenty-front/src/modules/ui/layout/tab-list/components/TabList.tsx
index e09c5a99764..bde55882a12 100644
--- a/packages/twenty-front/src/modules/ui/layout/tab-list/components/TabList.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/tab-list/components/TabList.tsx
@@ -72,6 +72,7 @@ export const TabList = ({
className,
componentInstanceId,
onChangeTab,
+ onClickTab,
rightComponent,
centerTabs = false,
}: TabListProps) => {
@@ -132,6 +133,8 @@ export const TabList = ({
const handleTabSelect = useCallback(
(tabId: string) => {
+ onClickTab?.(tabId);
+
if (tabId === activeTabId) {
return;
}
@@ -139,7 +142,7 @@ export const TabList = ({
setActiveTabId(tabId);
onChangeTab?.(tabId);
},
- [activeTabId, setActiveTabId, onChangeTab],
+ [activeTabId, setActiveTabId, onChangeTab, onClickTab],
);
const handleTabSelectFromDropdown = useCallback(
diff --git a/packages/twenty-front/src/modules/ui/layout/tab-list/types/TabListProps.ts b/packages/twenty-front/src/modules/ui/layout/tab-list/types/TabListProps.ts
index b5f85ef9f24..afd13e290ad 100644
--- a/packages/twenty-front/src/modules/ui/layout/tab-list/types/TabListProps.ts
+++ b/packages/twenty-front/src/modules/ui/layout/tab-list/types/TabListProps.ts
@@ -10,6 +10,7 @@ export type TabListProps = {
className?: string;
componentInstanceId: string;
onChangeTab?: (tabId: string) => void;
+ onClickTab?: (tabId: string) => void;
rightComponent?: ReactNode;
centerTabs?: boolean;
};
diff --git a/packages/twenty-front/src/modules/ui/layout/table/components/TableRow.tsx b/packages/twenty-front/src/modules/ui/layout/table/components/TableRow.tsx
index 82aaa9bc2cc..86de6f86484 100644
--- a/packages/twenty-front/src/modules/ui/layout/table/components/TableRow.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/table/components/TableRow.tsx
@@ -104,6 +104,7 @@ export const TableRow = ({
className={className}
style={style}
data-clickable={isClickable}
+ data-expanded={isExpanded || undefined}
data-table-row
mobileGridAutoColumns={mobileGridAutoColumns}
height={height}
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
index 46f380bd6e2..22fbb0ef4a6 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
@@ -111,7 +111,7 @@ export const NavigationDrawer = ({
setTableWidthResizeIsActive(true);
};
- const handleResizeStart = () => {
+ const handleResizeStart = (_size: number) => {
setIsResizing(true);
setTableWidthResizeIsActive(false);
};
@@ -134,8 +134,8 @@ export const NavigationDrawer = ({
<ResizablePanelEdge
side="right"
constraints={NAVIGATION_DRAWER_CONSTRAINTS}
- currentWidth={navigationDrawerWidth}
- onWidthChange={handleWidthChange}
+ currentSize={navigationDrawerWidth}
+ onSizeChange={handleWidthChange}
onCollapse={handleCollapse}
showHandle={false}
cssVariableName={NAVIGATION_DRAWER_WIDTH_VAR}
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState.ts b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState.ts
index 315e8e9be46..a744ad4d96b 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState.ts
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState.ts
@@ -4,4 +4,5 @@ export const isAdvancedModeEnabledState = createAtomState<boolean>({
key: 'isAdvancedModeEnabledAtom',
defaultValue: false,
useLocalStorage: true,
+ localStorageOptions: { getOnInit: true },
});
diff --git a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/partialWorkspaceMemberQueryFragment.ts b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/partialWorkspaceMemberQueryFragment.ts
index 9caf70842d8..5825700c323 100644
--- a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/partialWorkspaceMemberQueryFragment.ts
+++ b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/partialWorkspaceMemberQueryFragment.ts
@@ -9,6 +9,7 @@ export const PARTIAL_WORKSPACE_MEMBER_QUERY_FRAGMENT = gql`
}
avatarUrl
userEmail
+ userId
userWorkspaceId
}
`;
diff --git a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts
index d07b87c732a..9fc7be20b28 100644
--- a/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts
+++ b/packages/twenty-front/src/modules/workspace-member/graphql/fragments/workspaceMemberQueryFragment.ts
@@ -13,6 +13,7 @@ export const WORKSPACE_MEMBER_QUERY_FRAGMENT = gql`
avatarUrl
locale
userEmail
+ userId
userWorkspaceId
timeZone
dateFormat
diff --git a/packages/twenty-front/src/testing/mock-data/event-logs.ts b/packages/twenty-front/src/testing/mock-data/event-logs.ts
new file mode 100644
index 00000000000..2176df0c53e
--- /dev/null
+++ b/packages/twenty-front/src/testing/mock-data/event-logs.ts
@@ -0,0 +1,584 @@
+import { type FlatApplication } from '@/metadata-store/types/FlatApplication';
+import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
+import {
+ type EventLogRecord,
+ EventLogTable,
+} from '~/generated-metadata/graphql';
+import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
+
+type MockedLogicFunction = {
+ id: string;
+ name: string;
+ applicationId: string;
+};
+
+const SYNC_STRIPE_INVOICES: MockedLogicFunction = {
+ id: '71ca299e-0dd9-404b-a4d6-9624e0bb89bf',
+ name: 'syncStripeInvoices',
+ applicationId: 'ebd81a57-25ef-48cc-a53a-2e135c2a57e8',
+};
+
+const SCORE_INBOUND_LEAD: MockedLogicFunction = {
+ id: '27671ffa-2a0a-493c-a902-f749892997c5',
+ name: 'scoreInboundLead',
+ applicationId: 'e4f70464-29d0-48bc-b633-d54b746afa31',
+};
+
+const ENRICH_COMPANY_FROM_DOMAIN: MockedLogicFunction = {
+ id: '1e0fab1a-2ab7-4c6a-8b20-a18421126705',
+ name: 'enrichCompanyFromDomain',
+ applicationId: 'ab72cb06-98e5-4090-8b71-31a7eed337d9',
+};
+
+export const mockedEventLogLogicFunctions: MockedLogicFunction[] = [
+ SYNC_STRIPE_INVOICES,
+ SCORE_INBOUND_LEAD,
+ ENRICH_COMPANY_FROM_DOMAIN,
+];
+
+export const mockedEventLogApplications: Pick<
+ FlatApplication,
+ 'id' | 'name'
+>[] = [
+ { id: SYNC_STRIPE_INVOICES.applicationId, name: 'Stripe Sync' },
+ { id: SCORE_INBOUND_LEAD.applicationId, name: 'Lead Scoring' },
+ {
+ id: ENRICH_COMPANY_FROM_DOMAIN.applicationId,
+ name: 'Company Enrichment',
+ },
+];
+
+const SYNC_STRIPE_INVOICES_EXECUTION_ID =
+ '88637fa4-e95f-4901-85f1-4227b6e3a1c2';
+
+const AMOUNT_DUE_TYPE_ERROR = [
+ "TypeError: Cannot read properties of undefined (reading 'amount_due')",
+ ' at mapInvoiceToOpportunity (src/logic-functions/sync-stripe-invoices.ts:48:31)',
+ ' at Array.map (<anonymous>)',
+ ' at syncStripeInvoices (src/logic-functions/sync-stripe-invoices.ts:22:28)',
+ ' at async executeLogicFunction (runtime/executor.js:112:18)',
+].join('\n');
+
+const buildApplicationLogRecord = ({
+ timestamp,
+ logicFunction,
+ executionId,
+ level,
+ message,
+}: {
+ timestamp: string;
+ logicFunction: MockedLogicFunction;
+ executionId: string;
+ level: 'ERROR' | 'WARN' | 'INFO' | 'DEBUG';
+ message: string;
+}): EventLogRecord => ({
+ __typename: 'EventLogRecord',
+ event: logicFunction.name,
+ timestamp,
+ userId: null,
+ recordId: null,
+ objectMetadataId: null,
+ properties: {
+ level,
+ message,
+ executionId,
+ logicFunctionId: logicFunction.id,
+ applicationId: logicFunction.applicationId,
+ },
+});
+
+const SARAH_CHEN: PartialWorkspaceMember = {
+ id: 'dc0f5751-afb7-43de-86c1-8bd150934d5f',
+ userId: '7f49f132-56c7-4beb-8ea6-f336fe487c7d',
+ userWorkspaceId: '13b99c62-ed19-402a-b341-e5e3c5f818c0',
+ name: { firstName: 'Sarah', lastName: 'Chen' },
+ userEmail: '[email protected]',
+};
+
+const MARC_DUBOIS: PartialWorkspaceMember = {
+ id: '7112c4f4-d9c7-4eaf-b52f-84f2bd9c1b7c',
+ userId: 'cefec196-1610-4e82-95db-99ed5856117b',
+ userWorkspaceId: '76a92f7c-4d6f-451c-890f-b94a65ccda58',
+ name: { firstName: 'Marc', lastName: 'Dubois' },
+ userEmail: '[email protected]',
+};
+
+const PRIYA_NAIR: PartialWorkspaceMember = {
+ id: '0ff394ad-264b-4761-a583-f1d74ef00e3d',
+ userId: 'f5dc04b7-90b8-46e9-82bb-4d9798fe6588',
+ userWorkspaceId: 'd7d9c043-9e04-4210-ad58-3208f322b833',
+ name: { firstName: 'Priya', lastName: 'Nair' },
+ userEmail: '[email protected]',
+};
+
+const JONAS_WEBER: PartialWorkspaceMember = {
+ id: '927db2a7-dd99-4004-8cd5-b9ff216c0a0b',
+ userId: 'e64aa8bd-6a2d-4348-993f-0b0328e5f5ec',
+ userWorkspaceId: '3a6e65ea-f0a6-482d-bded-40d81e1bb92b',
+ name: { firstName: 'Jonas', lastName: 'Weber' },
+ userEmail: '[email protected]',
+};
+
+export const mockedEventLogWorkspaceMembers: PartialWorkspaceMember[] = [
+ SARAH_CHEN,
+ MARC_DUBOIS,
+ PRIYA_NAIR,
+ JONAS_WEBER,
+];
+
+const SARAH_CHEN_ACTOR = {
+ source: 'MANUAL',
+ workspaceMemberId: SARAH_CHEN.id,
+ name: 'Sarah Chen',
+ context: {},
+};
+
+const MARC_DUBOIS_ACTOR = {
+ source: 'MANUAL',
+ workspaceMemberId: MARC_DUBOIS.id,
+ name: 'Marc Dubois',
+ context: {},
+};
+
+const ZAPIER_SYNC_API_KEY_ACTOR = {
+ source: 'API',
+ workspaceMemberId: null,
+ name: 'Zapier sync',
+ context: {},
+};
+
+const LUMEN_HEALTH_PILOT_BEFORE_UPDATE = {
+ id: 'f46932b8-6725-4931-aa5b-ea0144bdb789',
+ name: 'Lumen Health - Pilot',
+ stage: 'PROPOSAL',
+ amount: { amountMicros: 40000000000, currencyCode: 'USD' },
+ closeDate: '2026-10-15T10:00:00.000Z',
+ updatedBy: SARAH_CHEN_ACTOR,
+};
+
+const OAKRIDGE_FOODS_BEFORE_UPDATE = {
+ id: 'fcb75a6e-dfb7-42d7-b9e4-7d9adfded812',
+ name: 'Oakridge Foods',
+ employees: 120,
+ updatedBy: ZAPIER_SYNC_API_KEY_ACTOR,
+};
+
+const ETHAN_BROOKS_AFTER_CREATION = {
+ id: 'c23a80e6-92eb-40d5-8994-87d0b0298573',
+ name: { firstName: 'Ethan', lastName: 'Brooks' },
+ jobTitle: 'VP Marketing',
+ city: 'Paris',
+ createdBy: MARC_DUBOIS_ACTOR,
+ updatedBy: MARC_DUBOIS_ACTOR,
+};
+
+const MAPLE_CONSULTING = {
+ id: 'e0c49b77-894b-449b-9c31-6bfcff73a0e5',
+ name: 'Maple Consulting Inc.',
+ employees: 2383,
+ annualRecurringRevenue: { amountMicros: 88000000000, currencyCode: 'USD' },
+};
+
+const KEYSTONE_RETAIL = {
+ id: '6b1f5a7e-3c1d-4f0e-9d8a-2e4b7c9a1f03',
+ name: 'Keystone Retail LLC',
+ employees: 640,
+};
+
+const BEACON_FREIGHT = {
+ id: '9d2c8e4a-7b6f-4a1e-8c3d-5f0b2a6e7d19',
+ name: 'Beacon Freight GmbH',
+ employees: 1150,
+};
+
+const PURGED_COMPANY_ID = '3f8a2c1d-5e7b-4d9a-b6c0-8e1f4a2d7c55';
+
+const BULK_DELETE_TIMESTAMP = '2026-09-24T09:42:30.903Z';
+
+const buildCompanyDeletionRecord = ({
+ timestamp,
+ company,
+}: {
+ timestamp: string;
+ company: { id: string };
+}): EventLogRecord => ({
+ __typename: 'EventLogRecord',
+ event: 'Object Record Deleted',
+ timestamp,
+ userId: MARC_DUBOIS.userId,
+ recordId: company.id,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
+ properties: {
+ before: { ...company, deletedAt: null },
+ after: { ...company, deletedAt: timestamp },
+ updatedFields: ['deletedAt'],
+ diff: { deletedAt: { before: null, after: timestamp } },
+ },
+});
+
+const CHROME_ON_MAC_USER_AGENT =
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36';
+
+const SUPPORT_TEAM_USER_ID = '54277312-cdf2-4cb5-be40-ca7c49aa1293';
+
+const buildWorkspaceEventRecord = ({
+ event,
+ timestamp,
+ userId = null,
+ properties,
+}: {
+ event: string;
+ timestamp: string;
+ userId?: string | null;
+ properties: Record<string, unknown>;
+}): EventLogRecord => ({
+ __typename: 'EventLogRecord',
+ event,
+ timestamp,
+ userId,
+ recordId: null,
+ objectMetadataId: null,
+ properties,
+});
+
+export const mockedEventLogRecordsByTable: Partial<
+ Record<EventLogTable, EventLogRecord[]>
+> = {
+ [EventLogTable.OBJECT_EVENT]: [
+ {
+ __typename: 'EventLogRecord',
+ event: 'Object Record Updated',
+ timestamp: '2026-09-24T11:57:48.203Z',
+ userId: SARAH_CHEN.userId,
+ recordId: LUMEN_HEALTH_PILOT_BEFORE_UPDATE.id,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('opportunity').id,
+ properties: {
+ before: LUMEN_HEALTH_PILOT_BEFORE_UPDATE,
+ after: {
+ ...LUMEN_HEALTH_PILOT_BEFORE_UPDATE,
+ stage: 'CUSTOMER',
+ amount: { amountMicros: 52000000000, currencyCode: 'USD' },
+ closeDate: '2026-09-24T10:00:00.000Z',
+ },
+ updatedFields: ['stage', 'amount', 'closeDate'],
+ diff: {
+ stage: { before: 'PROPOSAL', after: 'CUSTOMER' },
+ amount: {
+ before: { amountMicros: 40000000000, currencyCode: 'USD' },
+ after: { amountMicros: 52000000000, currencyCode: 'USD' },
+ },
+ closeDate: {
+ before: '2026-10-15T10:00:00.000Z',
+ after: '2026-09-24T10:00:00.000Z',
+ },
+ },
+ },
+ },
+ {
+ __typename: 'EventLogRecord',
+ event: 'Object Record Updated',
+ timestamp: '2026-09-24T11:45:58.561Z',
+ userId: null,
+ recordId: OAKRIDGE_FOODS_BEFORE_UPDATE.id,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
+ properties: {
+ before: OAKRIDGE_FOODS_BEFORE_UPDATE,
+ after: { ...OAKRIDGE_FOODS_BEFORE_UPDATE, employees: 135 },
+ updatedFields: ['employees'],
+ diff: { employees: { before: 120, after: 135 } },
+ },
+ },
+ {
+ __typename: 'EventLogRecord',
+ event: 'Object Record Created',
+ timestamp: '2026-09-24T11:30:12.004Z',
+ userId: MARC_DUBOIS.userId,
+ recordId: ETHAN_BROOKS_AFTER_CREATION.id,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('person').id,
+ properties: { after: ETHAN_BROOKS_AFTER_CREATION },
+ },
+ {
+ __typename: 'EventLogRecord',
+ event: 'Object Record Restored',
+ timestamp: '2026-09-24T10:05:17.482Z',
+ userId: PRIYA_NAIR.userId,
+ recordId: KEYSTONE_RETAIL.id,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
+ properties: {
+ before: { ...KEYSTONE_RETAIL, deletedAt: BULK_DELETE_TIMESTAMP },
+ after: { ...KEYSTONE_RETAIL, deletedAt: null },
+ updatedFields: ['deletedAt'],
+ diff: { deletedAt: { before: BULK_DELETE_TIMESTAMP, after: null } },
+ },
+ },
+ buildCompanyDeletionRecord({
+ timestamp: '2026-09-24T09:42:31.096Z',
+ company: MAPLE_CONSULTING,
+ }),
+ buildCompanyDeletionRecord({
+ timestamp: BULK_DELETE_TIMESTAMP,
+ company: KEYSTONE_RETAIL,
+ }),
+ buildCompanyDeletionRecord({
+ timestamp: BULK_DELETE_TIMESTAMP,
+ company: BEACON_FREIGHT,
+ }),
+ {
+ __typename: 'EventLogRecord',
+ event: 'Object Record Destroyed',
+ timestamp: '2026-09-24T02:00:04.117Z',
+ userId: null,
+ recordId: PURGED_COMPANY_ID,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
+ properties: {
+ recordId: PURGED_COMPANY_ID,
+ objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
+ },
+ },
+ ],
+ [EventLogTable.APPLICATION_LOG]: [
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:02:43.803Z',
+ logicFunction: SCORE_INBOUND_LEAD,
+ executionId: '4f250a20-1e82-4486-9927-fe74a125b711',
+ level: 'WARN',
+ message:
+ 'Missing job title for Omar Aziz, using default title score (20)',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.684Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: SYNC_STRIPE_INVOICES_EXECUTION_ID,
+ level: 'ERROR',
+ message: 'Sync failed: 9 of 9 invoices could not be mapped',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.555Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: SYNC_STRIPE_INVOICES_EXECUTION_ID,
+ level: 'ERROR',
+ message: AMOUNT_DUE_TYPE_ERROR,
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.555Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: '90a4b3dc-df85-48ec-8050-a56078f897da',
+ level: 'ERROR',
+ message: AMOUNT_DUE_TYPE_ERROR,
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.531Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: SYNC_STRIPE_INVOICES_EXECUTION_ID,
+ level: 'DEBUG',
+ message:
+ 'Mapping invoice in_RfzDyZNf6gC6sZ (customer cus_WaekE07TFgyg5r)',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.523Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: SYNC_STRIPE_INVOICES_EXECUTION_ID,
+ level: 'INFO',
+ message: 'Received 9 invoices from Stripe',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:00:07.141Z',
+ logicFunction: SYNC_STRIPE_INVOICES,
+ executionId: SYNC_STRIPE_INVOICES_EXECUTION_ID,
+ level: 'INFO',
+ message: 'Fetching invoices updated since 2026-09-24T11:55:00Z',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T11:58:55.010Z',
+ logicFunction: ENRICH_COMPANY_FROM_DOMAIN,
+ executionId: 'f24ef7d8-b678-4eea-88bd-3301a8722bb0',
+ level: 'INFO',
+ message: 'Fetched firmographics for halcyon-robotics.com in 819 ms',
+ }),
+ ],
+ [EventLogTable.WORKSPACE_EVENT]: [
+ buildWorkspaceEventRecord({
+ event: 'Webhook Response',
+ timestamp: '2026-09-24T12:02:54.034Z',
+ properties: {
+ status: 200,
+ success: true,
+ url: 'https://hooks.zapier.com/hooks/catch/1284551/b7kq2x/',
+ webhookId: 'b9a726ce-3d8a-45b2-bb73-22f5b008afca',
+ eventName: 'opportunity.updated',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'AuthSession',
+ timestamp: '2026-09-24T11:47:34.761Z',
+ userId: PRIYA_NAIR.userId,
+ properties: {
+ action: 'user_signed_in',
+ message:
+ 'sessionId=b3077ad7-7730-471f-aa15-741670e55781; authProvider=google',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Impersonation',
+ timestamp: '2026-09-24T10:48:52.901Z',
+ userId: SUPPORT_TEAM_USER_ID,
+ properties: {
+ level: 'workspace',
+ action: 'ended',
+ message:
+ 'Impersonation ended by impersonatorUserWorkspaceId=6ce5e52e-604a-4256-8557-11be219a6436; workspaceId=142932b1-197e-490a-9d49-9e84ac8f15c1',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Impersonation',
+ timestamp: '2026-09-24T10:31:05.377Z',
+ userId: SUPPORT_TEAM_USER_ID,
+ properties: {
+ level: 'server',
+ action: 'token_exchange_success',
+ message: `Impersonation token exchanged for ${PRIYA_NAIR.userEmail} by userId ${SUPPORT_TEAM_USER_ID}`,
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Impersonation',
+ timestamp: '2026-09-24T10:30:40.012Z',
+ userId: SUPPORT_TEAM_USER_ID,
+ properties: {
+ level: 'server',
+ action: 'token_exchange_failed',
+ message: `Server level impersonation denied (2FA verification required) for ${PRIYA_NAIR.userEmail} by userId ${SUPPORT_TEAM_USER_ID}`,
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'AuthSession',
+ timestamp: '2026-09-24T08:02:14.604Z',
+ userId: SARAH_CHEN.userId,
+ properties: {
+ action: 'session_revoked',
+ message:
+ 'sessionId=e1290762-81d6-431b-bb1b-3ecae9015524; authProvider=google',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Webhook Response',
+ timestamp: '2026-09-24T07:25:09.302Z',
+ properties: {
+ status: 503,
+ success: false,
+ url: 'https://ingest.northwind-data.io/v1/twenty',
+ webhookId: 'f67afe3e-110d-4d48-856d-cf2fc9e60eff',
+ eventName: 'person.created',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Webhook Response',
+ timestamp: '2026-09-24T06:10:40.500Z',
+ properties: {
+ success: false,
+ url: 'https://n8n.acme.io/webhook/people-enrich',
+ webhookId: 'b98afda0-c63a-497a-a02d-f3c722180be7',
+ eventName: 'person.created',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'Webhook Response',
+ timestamp: '2026-09-24T05:31:18.227Z',
+ properties: {
+ success: false,
+ url: 'https://crm-sync.acme.internal/hooks/twenty',
+ webhookId: '68685c9a-6393-47a3-b01d-a693fe5f26ea',
+ eventName: 'company.updated',
+ error: 'Webhook URL resolves to a private/internal IP address',
+ },
+ }),
+ buildWorkspaceEventRecord({
+ event: 'User Signup',
+ timestamp: '2026-09-23T13:20:03.055Z',
+ userId: JONAS_WEBER.userId,
+ properties: {},
+ }),
+ ],
+ [EventLogTable.PAGEVIEW]: [
+ {
+ __typename: 'EventLogRecord',
+ event: 'Twenty',
+ timestamp: '2026-09-24T11:59:02.114Z',
+ userId: PRIYA_NAIR.userId,
+ recordId: null,
+ objectMetadataId: null,
+ properties: {
+ href: 'https://acme.twenty.com/objects/opportunities',
+ pathname: '/objects/opportunities',
+ sessionId: '000aec5a-6c6c-4d91-aac9-a52397b439e2',
+ locale: 'en-US',
+ userAgent: CHROME_ON_MAC_USER_AGENT,
+ },
+ },
+ {
+ __typename: 'EventLogRecord',
+ event: 'Twenty',
+ timestamp: '2026-09-24T11:52:40.870Z',
+ userId: SARAH_CHEN.userId,
+ recordId: null,
+ objectMetadataId: null,
+ properties: {
+ href: `https://acme.twenty.com/object/company/${OAKRIDGE_FOODS_BEFORE_UPDATE.id}`,
+ pathname: `/object/company/${OAKRIDGE_FOODS_BEFORE_UPDATE.id}`,
+ sessionId: 'fe8766d8-3323-44ac-ad66-42d2d3dcda9b',
+ locale: 'fr-FR',
+ userAgent: CHROME_ON_MAC_USER_AGENT,
+ },
+ },
+ ],
+ [EventLogTable.USAGE_EVENT]: [
+ {
+ __typename: 'EventLogRecord',
+ event: 'AI',
+ timestamp: '2026-09-24T11:56:21.408Z',
+ userId: JONAS_WEBER.userWorkspaceId,
+ recordId: null,
+ objectMetadataId: null,
+ properties: {
+ operationType: 'AI_CHAT_TOKEN',
+ quantity: 1320,
+ unit: 'TOKEN',
+ creditsUsedMicro: 5500,
+ resourceId: '',
+ resourceContext: 'anthropic/claude-opus-4-6',
+ },
+ },
+ {
+ __typename: 'EventLogRecord',
+ event: 'WORKFLOW',
+ timestamp: '2026-09-24T11:41:09.772Z',
+ userId: SARAH_CHEN.userWorkspaceId,
+ recordId: null,
+ objectMetadataId: null,
+ properties: {
+ operationType: 'WORKFLOW_EXECUTION',
+ quantity: 1,
+ unit: 'INVOCATION',
+ creditsUsedMicro: 12000,
+ resourceId: '',
+ resourceContext: '',
+ },
+ },
+ ],
+};
+
+export const mockedEventLogLiveApplicationLogs: EventLogRecord[] = [
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:05:12.418Z',
+ logicFunction: SCORE_INBOUND_LEAD,
+ executionId: 'a3c8f0e2-6b1d-4f7a-9e25-8d4b1c7f3a60',
+ level: 'INFO',
+ message: 'Lead score for Omar Aziz: 72',
+ }),
+ buildApplicationLogRecord({
+ timestamp: '2026-09-24T12:05:41.207Z',
+ logicFunction: SCORE_INBOUND_LEAD,
+ executionId: '6e1f4b9d-2c7a-4d83-b5f0-1a9e7c3d2b48',
+ level: 'INFO',
+ message: 'Lead score for Lena Park: 64',
+ }),
+];
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-field-filter.input.ts b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-field-filter.input.ts
new file mode 100644
index 00000000000..d6cb64394aa
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-field-filter.input.ts
@@ -0,0 +1,15 @@
+import { Field, InputType } from '@nestjs/graphql';
+
+import { EventLogFilterOperand } from './event-log-filter-operand.enum';
+
+@InputType()
+export class EventLogFieldFilterInput {
+ @Field(() => String)
+ field: string;
+
+ @Field(() => EventLogFilterOperand)
+ operand: EventLogFilterOperand;
+
+ @Field(() => [String])
+ values: string[];
+}
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum.ts b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum.ts
new file mode 100644
index 00000000000..e70da919e10
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum.ts
@@ -0,0 +1,10 @@
+import { registerEnumType } from '@nestjs/graphql';
+
+export enum EventLogFilterOperand {
+ IS = 'IS',
+ IS_NOT = 'IS_NOT',
+}
+
+registerEnumType(EventLogFilterOperand, {
+ name: 'EventLogFilterOperand',
+});
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filters.input.ts b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filters.input.ts
index 11d9643a4ec..f263231222b 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filters.input.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/dtos/event-log-filters.input.ts
@@ -1,5 +1,7 @@
import { Field, InputType } from '@nestjs/graphql';
+import { EventLogFieldFilterInput } from './event-log-field-filter.input';
+
@InputType()
export class EventLogDateRangeInput {
@Field(() => Date, { nullable: true })
@@ -25,4 +27,7 @@ export class EventLogFiltersInput {
@Field(() => String, { nullable: true })
objectMetadataId?: string;
+
+ @Field(() => [EventLogFieldFilterInput], { nullable: true })
+ fieldFilters?: EventLogFieldFilterInput[];
}
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs-live.resolver.ts b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs-live.resolver.ts
index 0bd0e31d805..2f40071915d 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs-live.resolver.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs-live.resolver.ts
@@ -28,15 +28,35 @@ import { EventLogLiveService } from 'src/engine/core-modules/event-logs/live/eve
import { EventLogsService } from './event-logs.service';
+import { EventLogFieldFilterInput } from './dtos/event-log-field-filter.input';
import { EventLogRecord } from './dtos/event-log-result.dto';
import { getClickHouseTableName } from './registry/event-log-registry';
+import { isEventLogRowMatchingFieldFilters } from './utils/is-event-log-row-matching-field-filters.util';
import { normalizeEventLogRecords } from './utils/normalize-event-log-records';
+import { validateEventLogFieldFilterOrThrow } from './utils/validate-event-log-field-filter-or-throw.util';
type WorkspaceEventLivePayload = {
table: string;
rows: Record<string, unknown>[];
};
+type EventLogsLiveVariables = {
+ table: EventLogTable;
+ fieldFilters?: EventLogFieldFilterInput[];
+};
+
+const isRowMatchingVariables = ({
+ row,
+ variables,
+}: {
+ row: Record<string, unknown>;
+ variables: EventLogsLiveVariables;
+}): boolean =>
+ isEventLogRowMatchingFieldFilters({
+ row,
+ fieldFilters: variables.fieldFilters ?? [],
+ });
+
@MetadataResolver()
@UseFilters(
ForbiddenExceptionGraphqlFilter,
@@ -61,21 +81,38 @@ export class EventLogsLiveResolver {
nullable: true,
filter: (
payload: WorkspaceEventLivePayload,
- variables: { table: EventLogTable },
- ) => getClickHouseTableName(variables.table) === payload.table,
+ variables: EventLogsLiveVariables,
+ ) =>
+ getClickHouseTableName(variables.table) === payload.table &&
+ payload.rows.some((row) => isRowMatchingVariables({ row, variables })),
resolve: (
payload: WorkspaceEventLivePayload,
- variables: { table: EventLogTable },
- ) => normalizeEventLogRecords(payload.rows, variables.table),
+ variables: EventLogsLiveVariables,
+ ) =>
+ normalizeEventLogRecords(
+ payload.rows.filter((row) =>
+ isRowMatchingVariables({ row, variables }),
+ ),
+ variables.table,
+ ),
})
async eventLogsLive(
@Args('table', { type: () => EventLogTable }) table: EventLogTable,
+ @Args('fieldFilters', {
+ type: () => [EventLogFieldFilterInput],
+ nullable: true,
+ })
+ fieldFilters: EventLogFieldFilterInput[] | undefined,
@AuthWorkspace() workspace: WorkspaceEntity,
@AuthApplication({ allowUndefined: true })
callingApplication: FlatApplication | undefined,
) {
await this.eventLogsService.validateAccess(workspace.id, table);
+ fieldFilters?.forEach((fieldFilter) =>
+ validateEventLogFieldFilterOrThrow({ fieldFilter, table }),
+ );
+
const clickHouseTable = getClickHouseTableName(table);
await this.workspaceEventLiveService.markWatched(
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.exception.ts b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.exception.ts
index 17bfcbdfffc..0e8b303270a 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.exception.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.exception.ts
@@ -9,6 +9,8 @@ import { CustomException } from 'src/utils/custom-exception';
export enum EventLogsExceptionCode {
CLICKHOUSE_NOT_CONFIGURED = 'CLICKHOUSE_NOT_CONFIGURED',
NO_ENTITLEMENT = 'NO_ENTITLEMENT',
+ INVALID_FIELD_FILTER = 'INVALID_FIELD_FILTER',
+ INVALID_TABLE = 'INVALID_TABLE',
}
const getEventLogsExceptionUserFriendlyMessage = (
@@ -19,6 +21,10 @@ const getEventLogsExceptionUserFriendlyMessage = (
return msg`Audit logs require ClickHouse to be configured.`;
case EventLogsExceptionCode.NO_ENTITLEMENT:
return msg`Audit logs require an Enterprise subscription.`;
+ case EventLogsExceptionCode.INVALID_FIELD_FILTER:
+ return msg`This log filter is not valid.`;
+ case EventLogsExceptionCode.INVALID_TABLE:
+ return msg`This log table is not valid.`;
default:
assertUnreachable(code);
}
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.service.ts b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.service.ts
index dddbda11657..2462747a255 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/event-logs.service.ts
@@ -1,6 +1,6 @@
/* @license Enterprise */
-import { BadRequestException, Injectable } from '@nestjs/common';
+import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { EventLogTable } from 'twenty-shared/types';
@@ -25,6 +25,7 @@ import {
EVENT_LOG_TYPES,
getClickHouseTableName,
} from './registry/event-log-registry';
+import { buildEventLogFieldFilterCondition } from './utils/build-event-log-field-filter-condition.util';
import { normalizeEventLogRecords } from './utils/normalize-event-log-records';
const ALLOWED_TABLES = Object.values(EventLogTable);
@@ -47,10 +48,6 @@ export class EventLogsService {
): Promise<EventLogQueryResult> {
await this.validateAccess(workspaceId, input.table);
- if (!ALLOWED_TABLES.includes(input.table)) {
- throw new BadRequestException(`Invalid table: ${input.table}`);
- }
-
const limit = Math.min(input.first ?? 100, MAX_LIMIT);
const tableName = getClickHouseTableName(input.table);
const eventFieldName = EVENT_LOG_TYPES[input.table].eventFieldName;
@@ -169,6 +166,13 @@ export class EventLogsService {
workspaceId: string,
table: EventLogTable,
): Promise<void> {
+ if (!ALLOWED_TABLES.includes(table)) {
+ throw new EventLogsException(
+ `Invalid table: ${table}`,
+ EventLogsExceptionCode.INVALID_TABLE,
+ );
+ }
+
if (!this.clickHouseService.getMainClient()) {
throw new EventLogsException(
'Audit logs require ClickHouse to be configured. Please set the CLICKHOUSE_URL environment variable.',
@@ -256,6 +260,19 @@ export class EventLogsService {
params.objectMetadataId = filters.objectMetadataId;
}
}
+
+ filters.fieldFilters?.forEach((fieldFilter, index) => {
+ const parameterName = `fieldFilter${index}`;
+
+ whereClauses.push(
+ buildEventLogFieldFilterCondition({
+ fieldFilter,
+ parameterName,
+ table,
+ }),
+ );
+ params[parameterName] = fieldFilter.values;
+ });
}
private encodeCursor(timestamp: Date): string {
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/registry/event-log-registry.ts b/packages/twenty-server/src/engine/core-modules/event-logs/registry/event-log-registry.ts
index f5ab6ffa0a7..52cba372390 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/registry/event-log-registry.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/registry/event-log-registry.ts
@@ -22,6 +22,7 @@ export type EventLogTypeDefinition = {
// null = free on every plan; otherwise the required billing entitlement
requiresEntitlement: BillingEntitlementKey | null;
eventFieldName: string;
+ filterableFields: string[];
// The shared dispatcher stamps `timestamp`; each type maps only its own fields.
normalize: (
row: Record<string, unknown>,
@@ -48,24 +49,28 @@ export const EVENT_LOG_TYPES: Record<EventLogTable, EventLogTypeDefinition> = {
clickHouseTable: 'workspaceEvent',
requiresEntitlement: BillingEntitlementKey.AUDIT_LOGS,
eventFieldName: 'event',
+ filterableFields: ['event', 'userId'],
normalize: normalizeGenericEvent('event'),
},
[EventLogTable.PAGEVIEW]: {
clickHouseTable: 'pageview',
requiresEntitlement: BillingEntitlementKey.AUDIT_LOGS,
eventFieldName: 'name',
+ filterableFields: ['userId'],
normalize: normalizeGenericEvent('name'),
},
[EventLogTable.OBJECT_EVENT]: {
clickHouseTable: 'objectEvent',
- requiresEntitlement: BillingEntitlementKey.AUDIT_LOGS,
+ requiresEntitlement: null,
eventFieldName: 'event',
+ filterableFields: ['event', 'objectMetadataId', 'recordId', 'userId'],
normalize: normalizeGenericEvent('event'),
},
[EventLogTable.USAGE_EVENT]: {
clickHouseTable: 'usageEvent',
requiresEntitlement: BillingEntitlementKey.AUDIT_LOGS,
eventFieldName: 'resourceType',
+ filterableFields: [],
normalize: (row) => {
const record = row as StoredRow<UsageEventRow>;
@@ -88,6 +93,12 @@ export const EVENT_LOG_TYPES: Record<EventLogTable, EventLogTypeDefinition> = {
clickHouseTable: 'applicationLog',
requiresEntitlement: null,
eventFieldName: 'logicFunctionName',
+ filterableFields: [
+ 'level',
+ 'logicFunctionId',
+ 'applicationId',
+ 'executionId',
+ ],
normalize: (row) => {
const record = row as StoredRow<ApplicationLogRow>;
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.spec.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.spec.ts
new file mode 100644
index 00000000000..efcd60bf311
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.spec.ts
@@ -0,0 +1,66 @@
+import { EventLogTable } from 'twenty-shared/types';
+
+import { EventLogFilterOperand } from 'src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum';
+import { EventLogsExceptionCode } from 'src/engine/core-modules/event-logs/event-logs.exception';
+import { buildEventLogFieldFilterCondition } from 'src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util';
+
+describe('buildEventLogFieldFilterCondition', () => {
+ it('matches any of the values with IS', () => {
+ expect(
+ buildEventLogFieldFilterCondition({
+ fieldFilter: {
+ field: 'level',
+ operand: EventLogFilterOperand.IS,
+ values: ['ERROR', 'WARN'],
+ },
+ parameterName: 'fieldFilter0',
+ table: EventLogTable.APPLICATION_LOG,
+ }),
+ ).toBe('"level" IN {fieldFilter0:Array(String)}');
+ });
+
+ it('excludes the values with IS_NOT', () => {
+ expect(
+ buildEventLogFieldFilterCondition({
+ fieldFilter: {
+ field: 'event',
+ operand: EventLogFilterOperand.IS_NOT,
+ values: ['Object Record Updated'],
+ },
+ parameterName: 'fieldFilter1',
+ table: EventLogTable.OBJECT_EVENT,
+ }),
+ ).toBe('"event" NOT IN {fieldFilter1:Array(String)}');
+ });
+
+ it.each([
+ {
+ reason: 'a field the table does not expose',
+ field: 'level',
+ values: ['ERROR'],
+ },
+ {
+ reason: 'a field that is not a column',
+ field: 'userId" OR 1 = 1 --',
+ values: ['user-1'],
+ },
+ { reason: 'an empty values list', field: 'event', values: [] },
+ {
+ reason: 'more than 100 values',
+ field: 'recordId',
+ values: Array.from({ length: 101 }, (_, index) => `record-${index}`),
+ },
+ ])('rejects $reason', ({ field, values }) => {
+ expect(() =>
+ buildEventLogFieldFilterCondition({
+ fieldFilter: { field, operand: EventLogFilterOperand.IS, values },
+ parameterName: 'fieldFilter0',
+ table: EventLogTable.OBJECT_EVENT,
+ }),
+ ).toThrow(
+ expect.objectContaining({
+ code: EventLogsExceptionCode.INVALID_FIELD_FILTER,
+ }),
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.ts
new file mode 100644
index 00000000000..b81b9ef2bdd
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/build-event-log-field-filter-condition.util.ts
@@ -0,0 +1,24 @@
+/* @license Enterprise */
+
+import { type EventLogTable } from 'twenty-shared/types';
+
+import { type EventLogFieldFilterInput } from 'src/engine/core-modules/event-logs/dtos/event-log-field-filter.input';
+import { EventLogFilterOperand } from 'src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum';
+import { validateEventLogFieldFilterOrThrow } from 'src/engine/core-modules/event-logs/utils/validate-event-log-field-filter-or-throw.util';
+
+export const buildEventLogFieldFilterCondition = ({
+ fieldFilter,
+ parameterName,
+ table,
+}: {
+ fieldFilter: EventLogFieldFilterInput;
+ parameterName: string;
+ table: EventLogTable;
+}): string => {
+ validateEventLogFieldFilterOrThrow({ fieldFilter, table });
+
+ const operator =
+ fieldFilter.operand === EventLogFilterOperand.IS ? 'IN' : 'NOT IN';
+
+ return `"${fieldFilter.field}" ${operator} {${parameterName}:Array(String)}`;
+};
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/event-logs-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/event-logs-graphql-api-exception-handler.util.ts
index 2202721eb07..6ad70921449 100644
--- a/packages/twenty-server/src/engine/core-modules/event-logs/utils/event-logs-graphql-api-exception-handler.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/event-logs-graphql-api-exception-handler.util.ts
@@ -6,7 +6,10 @@ import {
type EventLogsException,
EventLogsExceptionCode,
} from 'src/engine/core-modules/event-logs/event-logs.exception';
-import { ForbiddenError } from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
+import {
+ ForbiddenError,
+ UserInputError,
+} from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
export const eventLogsGraphqlApiExceptionHandler = (
exception: EventLogsException,
@@ -15,6 +18,9 @@ export const eventLogsGraphqlApiExceptionHandler = (
case EventLogsExceptionCode.CLICKHOUSE_NOT_CONFIGURED:
case EventLogsExceptionCode.NO_ENTITLEMENT:
throw new ForbiddenError(exception);
+ case EventLogsExceptionCode.INVALID_FIELD_FILTER:
+ case EventLogsExceptionCode.INVALID_TABLE:
+ throw new UserInputError(exception);
default: {
assertUnreachable(exception.code);
}
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.spec.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.spec.ts
new file mode 100644
index 00000000000..44ca2851dcc
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.spec.ts
@@ -0,0 +1,76 @@
+import { EventLogFilterOperand } from 'src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum';
+import { isEventLogRowMatchingFieldFilters } from 'src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util';
+
+const ROW_WITHOUT_USER_ID = {
+ event: 'AuthSession',
+ workspaceId: 'workspace-1',
+};
+
+describe('isEventLogRowMatchingFieldFilters', () => {
+ it.each([
+ { reason: 'no filter', fieldFilters: [], expected: true },
+ {
+ reason: 'IS listing the row value',
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: ['User Signup', 'AuthSession'],
+ },
+ ],
+ expected: true,
+ },
+ {
+ reason: 'IS not listing the row value',
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: ['Webhook Response'],
+ },
+ ],
+ expected: false,
+ },
+ {
+ reason: 'IS_NOT listing the row value',
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS_NOT,
+ values: ['AuthSession'],
+ },
+ ],
+ expected: false,
+ },
+ {
+ reason: 'a missing column, read as an empty string',
+ fieldFilters: [
+ { field: 'userId', operand: EventLogFilterOperand.IS, values: [''] },
+ ],
+ expected: true,
+ },
+ {
+ reason: 'one filter out of two matching',
+ fieldFilters: [
+ {
+ field: 'event',
+ operand: EventLogFilterOperand.IS,
+ values: ['AuthSession'],
+ },
+ {
+ field: 'userId',
+ operand: EventLogFilterOperand.IS,
+ values: ['user-1'],
+ },
+ ],
+ expected: false,
+ },
+ ])('returns $expected for $reason', ({ fieldFilters, expected }) => {
+ expect(
+ isEventLogRowMatchingFieldFilters({
+ row: ROW_WITHOUT_USER_ID,
+ fieldFilters,
+ }),
+ ).toBe(expected);
+ });
+});
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.ts
new file mode 100644
index 00000000000..d58fce9a612
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/is-event-log-row-matching-field-filters.util.ts
@@ -0,0 +1,19 @@
+/* @license Enterprise */
+
+import { type EventLogFieldFilterInput } from 'src/engine/core-modules/event-logs/dtos/event-log-field-filter.input';
+import { EventLogFilterOperand } from 'src/engine/core-modules/event-logs/dtos/event-log-filter-operand.enum';
+
+export const isEventLogRowMatchingFieldFilters = ({
+ row,
+ fieldFilters,
+}: {
+ row: Record<string, unknown>;
+ fieldFilters: EventLogFieldFilterInput[];
+}): boolean =>
+ fieldFilters.every(({ field, operand, values }) => {
+ const isValueIncluded = values.includes(String(row[field] ?? ''));
+
+ return operand === EventLogFilterOperand.IS
+ ? isValueIncluded
+ : !isValueIncluded;
+ });
diff --git a/packages/twenty-server/src/engine/core-modules/event-logs/utils/validate-event-log-field-filter-or-throw.util.ts b/packages/twenty-server/src/engine/core-modules/event-logs/utils/validate-event-log-field-filter-or-throw.util.ts
new file mode 100644
index 00000000000..9501997dacc
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/event-logs/utils/validate-event-log-field-filter-or-throw.util.ts
@@ -0,0 +1,40 @@
+/* @license Enterprise */
+
+import { type EventLogTable } from 'twenty-shared/types';
+import { isNonEmptyArray } from 'twenty-shared/utils';
+
+import { type EventLogFieldFilterInput } from 'src/engine/core-modules/event-logs/dtos/event-log-field-filter.input';
+import {
+ EventLogsException,
+ EventLogsExceptionCode,
+} from 'src/engine/core-modules/event-logs/event-logs.exception';
+import { EVENT_LOG_TYPES } from 'src/engine/core-modules/event-logs/registry/event-log-registry';
+
+const MAX_FIELD_FILTER_VALUES = 100;
+
+export const validateEventLogFieldFilterOrThrow = ({
+ fieldFilter,
+ table,
+}: {
+ fieldFilter: EventLogFieldFilterInput;
+ table: EventLogTable;
+}): void => {
+ const { filterableFields } = EVENT_LOG_TYPES[table];
+
+ if (!filterableFields.includes(fieldFilter.field)) {
+ throw new EventLogsException(
+ `Cannot filter ${table} logs by "${fieldFilter.field}". Filterable fields: ${filterableFields.join(', ')}`,
+ EventLogsExceptionCode.INVALID_FIELD_FILTER,
+ );
+ }
+
+ if (
+ !isNonEmptyArray(fieldFilter.values) ||
+ fieldFilter.values.length > MAX_FIELD_FILTER_VALUES
+ ) {
+ throw new EventLogsException(
+ `Filter on "${fieldFilter.field}" needs between 1 and ${MAX_FIELD_FILTER_VALUES} values`,
+ EventLogsExceptionCode.INVALID_FIELD_FILTER,
+ );
+ }
+};
diff --git a/packages/twenty-server/src/engine/core-modules/user/dtos/workspace-member.dto.ts b/packages/twenty-server/src/engine/core-modules/user/dtos/workspace-member.dto.ts
index deca8672c12..505b5080b9b 100644
--- a/packages/twenty-server/src/engine/core-modules/user/dtos/workspace-member.dto.ts
+++ b/packages/twenty-server/src/engine/core-modules/user/dtos/workspace-member.dto.ts
@@ -65,6 +65,9 @@ export class WorkspaceMemberDTO {
@Field(() => [RoleDTO], { nullable: true })
roles?: RoleDTO[];
+ @Field(() => UUIDScalarType)
+ userId: string;
+
@Field(() => UUIDScalarType, { nullable: true })
userWorkspaceId?: string;
diff --git a/packages/twenty-server/src/engine/core-modules/user/services/workspace-member-transpiler.service.ts b/packages/twenty-server/src/engine/core-modules/user/services/workspace-member-transpiler.service.ts
index 53ddf0417c3..90f04d02314 100644
--- a/packages/twenty-server/src/engine/core-modules/user/services/workspace-member-transpiler.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/user/services/workspace-member-transpiler.service.ts
@@ -77,6 +77,7 @@ export class WorkspaceMemberTranspiler {
dateFormat,
calendarStartDay,
numberFormat,
+ userId,
} = workspaceMemberEntity;
const avatarUrl = await this.generateSignedAvatarUrl({
@@ -98,6 +99,7 @@ export class WorkspaceMemberTranspiler {
name,
userEmail,
avatarUrl,
+ userId,
userWorkspaceId: userWorkspace.id,
colorScheme,
openRecordIn: openRecordIn as OpenRecordIn,
diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts
index 8860f893a2b..373794a8f1e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-feature-flags.util.ts
@@ -12,6 +12,7 @@ const DEFAULT_SEEDED_FEATURE_FLAGS: Partial<Record<FeatureFlagKey, boolean>> = {
[FeatureFlagKey.IS_INITIAL_OBJECT_VIEW_ENABLED]: false,
[FeatureFlagKey.IS_EXECUTION_QUOTA_ENABLED]: true,
[FeatureFlagKey.IS_RECORD_CREATION_FORM_ENABLED]: true,
+ [FeatureFlagKey.IS_LOGS_SETTINGS_SECTION_ENABLED]: true,
};
type SeedFeatureFlagsArgs = {
diff --git a/packages/twenty-shared/src/types/FeatureFlagKey.ts b/packages/twenty-shared/src/types/FeatureFlagKey.ts
index 86870f0c2ea..25ca0abec43 100644
--- a/packages/twenty-shared/src/types/FeatureFlagKey.ts
+++ b/packages/twenty-shared/src/types/FeatureFlagKey.ts
@@ -15,4 +15,5 @@ export enum FeatureFlagKey {
IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED = 'IS_DEFERRED_WORKSPACE_MIGRATION_ACTIONS_ENABLED',
IS_EXECUTION_QUOTA_ENABLED = 'IS_EXECUTION_QUOTA_ENABLED',
IS_RECORD_CREATION_FORM_ENABLED = 'IS_RECORD_CREATION_FORM_ENABLED',
+ IS_LOGS_SETTINGS_SECTION_ENABLED = 'IS_LOGS_SETTINGS_SECTION_ENABLED',
}
diff --git a/packages/twenty-ui/design-tokens/boxShadow.ts b/packages/twenty-ui/design-tokens/boxShadow.ts
index a8f4e7544e7..82cf1f17469 100644
--- a/packages/twenty-ui/design-tokens/boxShadow.ts
+++ b/packages/twenty-ui/design-tokens/boxShadow.ts
@@ -14,6 +14,10 @@ export const BOX_SHADOW_TOKENS = {
light: '-4px 4px 4px 0px rgba(0, 0, 0, 0.005)',
dark: '-4px 4px 4px 0px rgba(0, 0, 0, 0.03)',
}),
+ bottomPanel: token({
+ light: '0px 0px 20px 0px color(display-p3 0 0 0 / 0.1)',
+ dark: '0px 0px 20px 0px rgba(0, 0, 0, 0.1)',
+ }),
strong: token({
light:
'2px 4px 16px 0px color(display-p3 0 0 0 / 0.161), 0px 2px 4px 0px color(display-p3 0 0 0 / 0.078)',
diff --git a/packages/twenty-ui/generated/tokens.docs.json b/packages/twenty-ui/generated/tokens.docs.json
index 979acd9f012..02dd35c65b6 100644
--- a/packages/twenty-ui/generated/tokens.docs.json
+++ b/packages/twenty-ui/generated/tokens.docs.json
@@ -482,6 +482,13 @@
"dark": "40px",
"isNumber": false
},
+ {
+ "path": "boxShadow.bottomPanel",
+ "cssVariable": "--t-box-shadow-bottom-panel",
+ "light": "0px 0px 20px 0px color(display-p3 0 0 0 / 0.1)",
+ "dark": "0px 0px 20px 0px rgba(0, 0, 0, 0.1)",
+ "isNumber": false
+ },
{
"path": "boxShadow.color",
"cssVariable": "--t-box-shadow-color",
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss
index 1fa04af3956..c3b3ce2eece 100644
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss
+++ b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss
@@ -22,6 +22,10 @@
user-select: none;
white-space: nowrap;
+ &[data-color='secondary'] {
+ color: var(--t-font-color-secondary);
+ }
+
&:hover {
background-color: var(--t-background-transparent-light);
}
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx
index 84bf1db54ab..2708dfddc0c 100644
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx
+++ b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx
@@ -9,6 +9,7 @@ import styles from './RoundedLink.module.scss';
type RoundedLinkProps = {
href: string;
label?: string;
+ color?: 'primary' | 'secondary';
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
className?: string;
};
@@ -16,6 +17,7 @@ type RoundedLinkProps = {
export const RoundedLink = ({
label,
href,
+ color = 'primary',
onClick,
className,
}: RoundedLinkProps) => {
@@ -34,6 +36,7 @@ export const RoundedLink = ({
target="_blank"
rel="noreferrer"
onClick={handleClick}
+ data-color={color}
className={clsx(styles.root, className)}
>
{label}
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx b/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx
index ccbb2986812..b1744ca1c87 100644
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx
+++ b/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx
@@ -37,3 +37,9 @@ export const Default: Story = {
await expect(handleClick).toHaveBeenCalledTimes(1);
},
};
+
+export const Secondary: Story = {
+ args: {
+ color: 'secondary',
+ },
+};
diff --git a/packages/twenty-ui/src/icon/components/TablerIcons.ts b/packages/twenty-ui/src/icon/components/TablerIcons.ts
index 3ca7d1fa894..9ae7bd164f6 100644
--- a/packages/twenty-ui/src/icon/components/TablerIcons.ts
+++ b/packages/twenty-ui/src/icon/components/TablerIcons.ts
@@ -291,6 +291,7 @@ export {
IconMessage,
IconMessageCirclePlus,
IconMicrophone,
+ IconMinimize,
IconMinus,
IconMoneybag,
IconMoodSmile,
diff --git a/packages/twenty-ui/src/icon/index.ts b/packages/twenty-ui/src/icon/index.ts
index f1594f1ceb5..01d98a57520 100644
--- a/packages/twenty-ui/src/icon/index.ts
+++ b/packages/twenty-ui/src/icon/index.ts
@@ -347,6 +347,7 @@ export {
IconMessage,
IconMessageCirclePlus,
IconMicrophone,
+ IconMinimize,
IconMinus,
IconMoneybag,
IconMoodSmile,
diff --git a/packages/twenty-ui/src/theme/constants/ThemeDark.ts b/packages/twenty-ui/src/theme/constants/ThemeDark.ts
index 1c7b4707456..d862a32c3da 100644
--- a/packages/twenty-ui/src/theme/constants/ThemeDark.ts
+++ b/packages/twenty-ui/src/theme/constants/ThemeDark.ts
@@ -161,6 +161,7 @@ export const THEME_DARK: typeof THEME_LIGHT = {
light:
'0px 2px 4px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.08)',
sidebar: '-4px 4px 4px 0px rgba(0, 0, 0, 0.03)',
+ bottomPanel: '0px 0px 20px 0px rgba(0, 0, 0, 0.1)',
strong:
'2px 4px 16px 0px rgba(0, 0, 0, 0.16), 0px 2px 4px 0px rgba(0, 0, 0, 0.08)',
underline: '0px 1px 0px 0px rgba(0, 0, 0, 0.32)',
diff --git a/packages/twenty-ui/src/theme/constants/ThemeLight.ts b/packages/twenty-ui/src/theme/constants/ThemeLight.ts
index 01bc755c785..fd8d94f95ea 100644
--- a/packages/twenty-ui/src/theme/constants/ThemeLight.ts
+++ b/packages/twenty-ui/src/theme/constants/ThemeLight.ts
@@ -160,6 +160,7 @@ export const THEME_LIGHT = {
light:
'0px 2px 4px 0px color(display-p3 0 0 0 / 0.039), 0px 0px 4px 0px color(display-p3 0 0 0 / 0.078)',
sidebar: '-4px 4px 4px 0px rgba(0, 0, 0, 0.005)',
+ bottomPanel: '0px 0px 20px 0px color(display-p3 0 0 0 / 0.1)',
strong:
'2px 4px 16px 0px color(display-p3 0 0 0 / 0.161), 0px 2px 4px 0px color(display-p3 0 0 0 / 0.078)',
underline: '0px 1px 0px 0px color(display-p3 0 0 0 / 0.361)',
diff --git a/packages/twenty-ui/src/theme/theme-dark.css b/packages/twenty-ui/src/theme/theme-dark.css
index e4711f9d09f..c55d0863a95 100644
--- a/packages/twenty-ui/src/theme/theme-dark.css
+++ b/packages/twenty-ui/src/theme/theme-dark.css
@@ -150,6 +150,7 @@
--t-box-shadow-light:
0px 2px 4px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
--t-box-shadow-sidebar: -4px 4px 4px 0px rgba(0, 0, 0, 0.03);
+ --t-box-shadow-bottom-panel: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
--t-box-shadow-strong:
2px 4px 16px 0px rgba(0, 0, 0, 0.16), 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
--t-box-shadow-underline: 0px 1px 0px 0px rgba(0, 0, 0, 0.32);
diff --git a/packages/twenty-ui/src/theme/theme-light.css b/packages/twenty-ui/src/theme/theme-light.css
index 7729288abbb..b6b42c74986 100644
--- a/packages/twenty-ui/src/theme/theme-light.css
+++ b/packages/twenty-ui/src/theme/theme-light.css
@@ -151,6 +151,7 @@
0px 2px 4px 0px color(display-p3 0 0 0 / 0.039),
0px 0px 4px 0px color(display-p3 0 0 0 / 0.078);
--t-box-shadow-sidebar: -4px 4px 4px 0px rgba(0, 0, 0, 0.005);
+ --t-box-shadow-bottom-panel: 0px 0px 20px 0px color(display-p3 0 0 0 / 0.1);
--t-box-shadow-strong:
2px 4px 16px 0px color(display-p3 0 0 0 / 0.161),
0px 2px 4px 0px color(display-p3 0 0 0 / 0.078);
diff --git a/packages/twenty-ui/src/theme/themeCssVariables.ts b/packages/twenty-ui/src/theme/themeCssVariables.ts
index 2608bdb0e4d..c36db29cc70 100644
--- a/packages/twenty-ui/src/theme/themeCssVariables.ts
+++ b/packages/twenty-ui/src/theme/themeCssVariables.ts
@@ -192,6 +192,7 @@ export const themeCssVariables = {
color: 'var(--t-box-shadow-color)',
light: 'var(--t-box-shadow-light)',
sidebar: 'var(--t-box-shadow-sidebar)',
+ bottomPanel: 'var(--t-box-shadow-bottom-panel)',
strong: 'var(--t-box-shadow-strong)',
underline: 'var(--t-box-shadow-underline)',
superHeavy: 'var(--t-box-shadow-super-heavy)',
diff --git a/packages/twenty-ui/src/theme/themeTypes.ts b/packages/twenty-ui/src/theme/themeTypes.ts
index bf0351648d4..54004e37440 100644
--- a/packages/twenty-ui/src/theme/themeTypes.ts
+++ b/packages/twenty-ui/src/theme/themeTypes.ts
@@ -191,6 +191,7 @@ export type ThemeType = {
color: string;
light: string;
sidebar: string;
+ bottomPanel: string;
strong: string;
underline: string;
superHeavy: string;