From 8ad5f7bf55df95123709f0f3c1bbe2e9118f4b9a Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 6 Jan 2026 18:26:49 +0100 Subject: [PATCH] feat: add organization banner to user profile page (#26514) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../modules/users/views/users-public-view.tsx | 91 ++++++++++--------- 1 file changed, 50 insertions(+), 41 deletions(-) diff --git a/apps/web/modules/users/views/users-public-view.tsx b/apps/web/modules/users/views/users-public-view.tsx index c20d2a5717..7fae8d32fb 100644 --- a/apps/web/modules/users/views/users-public-view.tsx +++ b/apps/web/modules/users/views/users-public-view.tsx @@ -1,25 +1,24 @@ "use client"; -import classNames from "classnames"; -import type { InferGetServerSidePropsType } from "next"; -import Link from "next/link"; -import { Toaster } from "sonner"; - import { sdkActionManager, useEmbedNonStylesConfig, useEmbedStyles, useIsEmbed, } from "@calcom/embed-core/embed-iframe"; -import { EventTypeDescriptionLazy as EventTypeDescription } from "@calcom/web/modules/event-types/components"; -import EmptyPage from "@calcom/web/modules/event-types/components/EmptyPage"; import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery"; import useTheme from "@calcom/lib/hooks/useTheme"; import { UserAvatar } from "@calcom/ui/components/avatar"; import { Icon } from "@calcom/ui/components/icon"; +import { OrgBanner } from "@calcom/ui/components/organization-banner"; import { UnpublishedEntity } from "@calcom/ui/components/unpublished-entity"; - +import { EventTypeDescriptionLazy as EventTypeDescription } from "@calcom/web/modules/event-types/components"; +import EmptyPage from "@calcom/web/modules/event-types/components/EmptyPage"; import type { getServerSideProps } from "@server/lib/[user]/getServerSideProps"; +import classNames from "classnames"; +import type { InferGetServerSidePropsType } from "next"; +import Link from "next/link"; +import { Toaster } from "sonner"; export type PageProps = InferGetServerSidePropsType; export function UserPage(props: PageProps) { @@ -60,41 +59,51 @@ export function UserPage(props: PageProps) { className={classNames( shouldAlignCentrally ? "mx-auto" : "", isEmbed ? "border-booker border-booker-width bg-default rounded-md" : "", - "max-w-3xl px-4 py-24" + "max-w-3xl px-4 py-12" )}> -
- -

- {profile.name} - {!isOrg && user.verified && ( - - )} - {isOrg && ( - - )} -

- {!isBioEmpty && ( - <> -
- +
+ {isOrg && user.profile.organization?.bannerUrl && ( + )} +
+ +

+ {profile.name} + {!isOrg && user.verified && ( + + )} + {isOrg && ( + + )} +

+ {!isBioEmpty && ( + <> +
+ + )} +