Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/activities custom objects #3213

Merged
merged 18 commits into from
Jan 5, 2024
Merged

Conversation

lucasbordeau
Copy link
Contributor

@lucasbordeau lucasbordeau commented Jan 3, 2024

  • Created a useMultiObjectSearchSelectedItemsQuery hook to replace existing one with multi object querying
  • Changed ActivityTargetInlineCellEditMode to accept any custom object
  • Created a MultipleObjectRecordSelect component to handle multi object picking

Copy link

github-actions bot commented Jan 3, 2024

TODOs/FIXMEs:

  • // TODO: fix edges pagination formatting on n+N: packages/twenty-front/src/modules/activities/components/ActivityTargetChips.tsx
  • // TODO: refacto: packages/twenty-front/src/modules/object-record/components/RecordShowPage.tsx

Generated by 🚫 dangerJS against 0c0d9d6

@lucasbordeau lucasbordeau marked this pull request as ready for review January 4, 2024 14:10
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to clean up a bit and I've found a few issues with optimistic rendering but let merge it to move forward

@charlesBochet charlesBochet merged commit b112b74 into main Jan 5, 2024
13 checks passed
@charlesBochet charlesBochet deleted the feat/activities-custom-objects branch January 5, 2024 08:08
@@ -160,6 +163,7 @@ export const mockedActivities: Array<MockedActivity> = [
id: '89bb825c-171e-4bcc-9cf7-43448d6fb278t',
createdAt: '2023-04-26T10:12:42.33625+00:00',
updatedAt: '2023-04-26T10:23:42.33625+00:00',
targetObjectNameSingular: 'person',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually come from the server?

let relationAlias = fieldMetadata.isCustom
? `${fieldKey}: ${fieldMetadata.targetColumnMap.value}`
? `${fieldKey}: ${referencedObjectMetadata.targetTableName}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this change, I'm facing bugs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm facing bug even while putting it back actually.
What I'm doing:

  • create a test object
  • add a record
  • go to that record and try to add an activity

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think this change should still be reverted and we should check the targetColumnMap value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants