The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add timestamps to GQL fields in useRecordsFieldVisibleGqlFields hook (#15185)
Manikanth Martha4b45350430a8
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yamlindex fa0e2562d5c..c0a315dfae1 100644--- a/.github/workflows/ci-front.yaml+++ b/.github/workflows/ci-front.yaml@@ -141,7 +141,7 @@ jobs:cd packages/twenty-fronttouch .envecho "" >> .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 Chromaticrun: npx nx run twenty-front:chromatic:cifront-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.tsxindex 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 {__typenameavatarUrl+ createdAt+ deletedAtidname {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.tsindex 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,