feat: Toggle to hide Team Profile link on Booker (#20369)

* hide team profile link on booker

* fix ts errors

---------

Co-authored-by: amrit <[email protected]>
This commit is contained in:
Hariom Balharaandamrit authored and GitHub committed 2025-03-27 15:00:35 +00:00
1 parent ea250febbc
commit 2aa583bb6d
9 files changed
+29 -3

No files matched your search

@@ -94,6 +94,7 @@ const getPublicEventSelect = (fetchAllUsers: boolean) => {
name: true,
logoUrl: true,
theme: true,
hideTeamProfileLink: true,
parent: {
select: {
slug: true,
@@ -309,6 +310,7 @@ export const getPublicEvent = async (
name: unPublishedOrgUser?.profile?.organization?.name ?? null,
teamSlug: null,
logoUrl: null,
hideProfileLink: false,
},
isInstantEvent: false,
instantMeetingParameters: [],
@@ -470,6 +472,7 @@ export const getPublicEvent = async (
if (event.team?.isPrivate && !isTeamAdminOrOwner && !isOrgAdminOrOwner) {
users = [];
}
return {
...eventWithUserProfiles,
bookerLayouts: bookerLayoutsSchema.parse(eventMetaData?.bookerLayouts || null),
@@ -499,6 +502,7 @@ export const getPublicEvent = async (
eventWithUserProfiles.team?.parent?.name ||
eventWithUserProfiles.team?.name) ??
null,
hideProfileLink: eventWithUserProfiles.team?.hideTeamProfileLink ?? false,
...(orgDetails
? {
logoUrl: getPlaceholderAvatar(orgDetails?.logoUrl, orgDetails?.name),