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

Show page - disable click for workspace member relation #3464

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jan 15, 2024

Disabling click for workspace member relation + adding a test on the component

@thomtrp thomtrp force-pushed the tt-disable-click-for-workspace-member-relations branch from 9aeaa09 to 454ae79 Compare January 15, 2024 16:27
@thomtrp thomtrp marked this pull request as ready for review January 15, 2024 17:20
@@ -4,6 +4,54 @@ import { useRelationPicker } from '@/object-record/relation-picker/hooks/useRela
import { IdentifiersMapper } from '@/object-record/relation-picker/types/IdentifiersMapper';
import { getLogoUrlFromDomainName } from '~/utils';

export const identifierMapper: IdentifiersMapper = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not modified the function. I just moved it out so I could export it in the test

packages/twenty-front/package.json Outdated Show resolved Hide resolved
@thomtrp thomtrp force-pushed the tt-disable-click-for-workspace-member-relations branch from 3430dcc to db03b00 Compare January 16, 2024 09:11
@@ -1,10 +1,17 @@
import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';

const isWorkspaceMember = (objectMetadataItem: ObjectMetadataItem) =>
objectMetadataItem.nameSingular === 'workspaceMember';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I build a type somewhere @charlesBochet @lucasbordeau?

@thomtrp thomtrp force-pushed the tt-disable-click-for-workspace-member-relations branch from db03b00 to e94fb36 Compare January 17, 2024 08:47
@charlesBochet charlesBochet self-assigned this Jan 18, 2024
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.

LGTM

@charlesBochet charlesBochet merged commit c868347 into main Jan 18, 2024
13 checks passed
@charlesBochet charlesBochet deleted the tt-disable-click-for-workspace-member-relations branch January 18, 2024 17:22
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