Skip to content

The open alternative to Salesforce, designed for AI.

Add timestamps to GQL fields in useRecordsFieldVisibleGqlFields hook (#15185)

Manikanth Martha4b45350430a8
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml
index fa0e2562d5c..c0a315dfae1 100644
--- a/.github/workflows/ci-front.yaml
+++ b/.github/workflows/ci-front.yaml
@@ -141,7 +141,7 @@ jobs:
cd packages/twenty-front
touch .env
echo "" >> .env
- echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env
+ echo "REACT_APP_SERVER_BASE_URL=$REACT_APP_SERVER_BASE_URL" >> .env
- name: Publish to Chromatic
run: npx nx run twenty-front:chromatic:ci
front-task:
diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRecordIndexTableQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRecordIndexTableQuery.test.tsx
index a9f26646c1c..abd528709b8 100644
--- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRecordIndexTableQuery.test.tsx
+++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRecordIndexTableQuery.test.tsx
@@ -48,6 +48,8 @@ const mocks: MockedResponse[] = [
node {
__typename
avatarUrl
+ createdAt
+ deletedAt
id
name {
firstName
@@ -178,6 +180,7 @@ const mocks: MockedResponse[] = [
}
}
}
+ updatedAt
}
cursor
}
diff --git a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
index 9601d64ede8..73f09b66287 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
@@ -72,6 +72,9 @@ export const useRecordsFieldVisibleGqlFields = ({
: {}),
...(hasPosition ? { position: true } : {}),
...allDepthOneGqlFields,
+ createdAt: true,
+ updatedAt: true,
+ deletedAt: true,
noteTargets: generateDepthRecordGqlFieldsFromObject({
objectMetadataItem: noteTargetObjectMetadataItem,
objectMetadataItems,