fix: hide cal branding for orgs/teams (#27643)

* fix: hide branding for teams

* fix: remove unused organizationId and username fields from profiles select

Addresses Cubic AI review feedback (confidence 9/10) to select only
the profile fields that are actually used. The organizationId and
username fields were fetched but never referenced in this function.

Co-Authored-By: unknown <>

* fix: unit tests

* fix: add prisma named export to test mock

Co-Authored-By: [email protected] <[email protected]>

* Add tests: packages/features/profile/lib/hideBranding.test.ts

Generated by Paragon from proposal for PR #27643

* chore: implement cubic feedback

* fix: merge conflicts

* fix: unit tests

* fixup

* refactor: implement DI pattern for event type service

* fix: atoms build

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-02-25 20:53:01 +09:00
1 parent 4081d11fbe
commit 5d65a0f091
39 files changed
+1129 -154

No files matched your search

@@ -401,6 +401,7 @@ const BookerPlatformWrapperComponent = (
name: bookerForm.formName,
requiresBookerEmailVerification: event?.data?.requiresBookerEmailVerification,
onVerifyEmail: bookerForm.beforeVerifyEmail,
eventTypeId: event?.data?.id,
});
const verifyCode = useVerifyCode({
@@ -15,6 +15,7 @@ export interface IUseVerifyEmailProps {
onVerifyEmail?: () => void;
name?: string | { firstName: string; lastname?: string };
requiresBookerEmailVerification?: boolean;
eventTypeId?: number;
}
export type UseVerifyEmailReturnType = ReturnType<typeof useVerifyEmail>;
@@ -22,6 +23,7 @@ export type UseVerifyEmailReturnType = ReturnType<typeof useVerifyEmail>;
interface RequestEmailVerificationInput {
email: string;
username?: string;
eventTypeId?: number;
}
export const useVerifyEmail = ({
@@ -29,6 +31,7 @@ export const useVerifyEmail = ({
name,
requiresBookerEmailVerification,
onVerifyEmail,
eventTypeId,
}: IUseVerifyEmailProps) => {
const [isEmailVerificationModalVisible, setEmailVerificationModalVisible] = useState(false);
const verifiedEmail = useBookerStore((state) => state.verifiedEmail);
@@ -85,6 +88,7 @@ export const useVerifyEmail = ({
sendEmailVerificationMutation.mutate({
email,
username: typeof name === "string" ? name : name?.firstName,
eventTypeId,
});
};