:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(brand): bump @posthog/brand to 0.17.0 and drop the logomark's holiday hats (#126447)
Rafael Audibert424450f532fd
diff --git a/frontend/src/lib/brand/Logo.stories.tsx b/frontend/src/lib/brand/Logo.stories.tsxindex 6fe0e0e678ed..afbc676ec805 100644--- a/frontend/src/lib/brand/Logo.stories.tsx+++ b/frontend/src/lib/brand/Logo.stories.tsx@@ -9,10 +9,10 @@ const meta: Meta = {docs: {description: {component:- 'The PostHog logo, rendered from `@posthog/brand` via the theme- and holiday-aware `lib/brand` wrapper. ' ++ 'The PostHog logo, rendered from `@posthog/brand` via the theme-aware `lib/brand` wrapper. ' +'Pick the look with `variant` (gradient | print | mono), `layout` (landscape | stacked | logomark | wordmark), ' +'and `color` (for mono). Size with the `size` token (`sm` | `md` | `lg`) — it sets the height, width follows. ' +- 'The logomark can `jumpOnClick` and dress up for a `holiday`.',+ 'The logomark can `jumpOnClick`.',},},},@@ -83,19 +83,6 @@ export const Layouts: StoryObj = {),}-export const Holidays: StoryObj = {- render: () => (- <div className="flex flex-col gap-8 p-4">- <Row label='holiday="christmas"'>- <Logomark variant="gradient" holiday="christmas" size="md" />- </Row>- <Row label='holiday="halloween"'>- <Logomark variant="gradient" holiday="halloween" size="md" />- </Row>- </div>- ),-}-export const JumpOnClick: StoryObj = {render: () => (<div className="flex flex-col gap-8 p-4">diff --git a/frontend/src/lib/brand/index.tsx b/frontend/src/lib/brand/index.tsxindex 518bfa6cdd39..b104bfcea238 100644--- a/frontend/src/lib/brand/index.tsx+++ b/frontend/src/lib/brand/index.tsx@@ -1,12 +1,10 @@// The app-facing entry point for the PostHog logo. Always import from `lib/brand` — never// `@posthog/brand/logo` directly. The raw package is presentation-only (its gradient wordmark-// is hard-coded `#111`, so it is neither theme- nor holiday-aware); this module is the single-// choke point that adapts it to dark mode and to the holiday season, so those behaviors can't-// drift per-consumer.+// is hard-coded `#111`, so it isn't theme-aware); this module is the single choke point that+// adapts it to dark mode, so that behavior can't drift per-consumer.import { Logo as BrandLogo } from '@posthog/brand/logo'-import type { LogoHoliday, LogoProps, LogomarkProps } from '@posthog/brand/logo'+import type { LogoProps, LogomarkProps } from '@posthog/brand/logo'-import { currentHoliday } from 'lib/holidays'import { cn } from 'lib/utils/css-classes'/**@@ -29,10 +27,7 @@ const LOGO_SIZE_HEIGHTS: Record<LogoSize, number> = {// instead, so one token scales any layout consistently — hide the raw dimension props from callers.type WithLogoSize<P> = Omit<P, 'size' | 'width' | 'height'> & { size?: LogoSize }export type AppLogoProps = WithLogoSize<LogoProps>-export type AppLogomarkProps = Omit<WithLogoSize<LogomarkProps>, 'holiday'> & {- /** A holiday to dress up for. Omit it to follow the calendar, or pass `null` for no accessory. */- holiday?: LogoHoliday | null-}+export type AppLogomarkProps = WithLogoSize<LogomarkProps>/*** The PostHog logo, adapted to the app's theme. With no explicit `variant` it renders the@@ -59,37 +54,21 @@ export function Logo({ variant, className, size, ...props }: AppLogoProps): JSX.}/**- * The hedgehog logomark, theme-aware like {@link Logo}, and dressed for the current holiday- * unless a `holiday` is passed explicitly (stories pass one to keep snapshots deterministic).- * `size` sets the height (see {@link LogoSize}); `jumpOnClick` and other package props pass through.+ * The hedgehog logomark, theme-aware like {@link Logo}. `size` sets the height (see {@link LogoSize});+ * `jumpOnClick` and other package props pass through.*/-export function Logomark({ variant, className, holiday, size, ...props }: AppLogomarkProps): JSX.Element {- const resolvedHoliday = holiday === null ? undefined : (holiday ?? currentHoliday())+export function Logomark({ variant, className, size, ...props }: AppLogomarkProps): JSX.Element {const height = size ? LOGO_SIZE_HEIGHTS[size] : undefinedif (variant) {- return (- <BrandLogo.Logomark- variant={variant}- holiday={resolvedHoliday}- height={height}- className={className}- {...props}- />- )+ return <BrandLogo.Logomark variant={variant} height={height} className={className} {...props} />}return (<>- <BrandLogo.Logomark- holiday={resolvedHoliday}- height={height}- className={cn('dark:hidden', className)}- {...props}- />+ <BrandLogo.Logomark height={height} className={cn('dark:hidden', className)} {...props} /><BrandLogo.Logomarkvariant="mono"color="white"- holiday={resolvedHoliday}height={height}className={cn('hidden dark:block', className)}{...props}diff --git a/frontend/src/lib/components/OAuthConnectionLogos/OAuthConnectionLogos.tsx b/frontend/src/lib/components/OAuthConnectionLogos/OAuthConnectionLogos.tsxindex ff3cf2f78ed1..7c2026f1906a 100644--- a/frontend/src/lib/components/OAuthConnectionLogos/OAuthConnectionLogos.tsx+++ b/frontend/src/lib/components/OAuthConnectionLogos/OAuthConnectionLogos.tsx@@ -13,8 +13,8 @@ export function OAuthConnectionLogos({ appName, logoUri }: { appName: string; lo// first shipped under on the login page.<div className="flex items-center justify-center gap-3 mb-4" data-attr="pending-oauth-connection-logos"><span className="flex items-center justify-center w-12 h-12 p-1.5 rounded-full border border-border bg-bg-light">- {/* No `size`, so the mark fills the padded circle. A holiday accessory would stick out of it. */}- <Logomark holiday={null} />+ {/* No `size`, so the mark fills the padded circle. */}+ <Logomark /></span><IconPlug className="text-secondary text-lg shrink-0" aria-hidden /><span className="flex items-center justify-center w-12 h-12 rounded-full border border-border bg-bg-light overflow-hidden">diff --git a/frontend/src/lib/holidays.tsx b/frontend/src/lib/holidays.tsxindex edae40feb1cf..e4d77c687ba9 100644--- a/frontend/src/lib/holidays.tsx+++ b/frontend/src/lib/holidays.tsx@@ -69,15 +69,3 @@ export const holidaysMatcher = <T,>(matcher: HolidayMatcher<T>, orElse: T): T =>return orElse}--/** The holiday the logomark should dress up for right now, or `undefined` outside the season. */-export const currentHoliday = (): Holiday | undefined => {- if (isChristmas()) {- return 'christmas'- }- if (isHalloween()) {- return 'halloween'- }-- return undefined-}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0b823c08198f..344e89d0347d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -19,8 +19,8 @@ catalogs:specifier: 1.60.0version: 1.60.0'@posthog/brand':- specifier: 0.16.0- version: 0.16.0+ specifier: 0.17.0+ version: 0.17.0'@posthog/icons':specifier: ^0.39.0version: 0.39.0@@ -611,7 +611,7 @@ importers:version: 1.2.11(@shikijs/[email protected])([email protected]([email protected]))([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/docs-onboarding':specifier: workspace:*version: link:../docs/onboarding@@ -2376,7 +2376,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2449,7 +2449,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2548,7 +2548,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2649,7 +2649,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2730,7 +2730,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2868,7 +2868,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -2969,7 +2969,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3000,7 +3000,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3056,7 +3056,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3164,7 +3164,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3222,7 +3222,7 @@ importers:version: 3.2.1([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3288,7 +3288,7 @@ importers:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3364,7 +3364,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3422,7 +3422,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3483,7 +3483,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3522,7 +3522,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3579,7 +3579,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3622,7 +3622,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3671,7 +3671,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3732,7 +3732,7 @@ importers:version: 3.2.1([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3840,7 +3840,7 @@ importers:version: 3.2.1([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -3906,7 +3906,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4141,7 +4141,7 @@ importers:version: 3.2.1([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4270,7 +4270,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4313,7 +4313,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4419,7 +4419,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4502,7 +4502,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4563,7 +4563,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4693,7 +4693,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4793,7 +4793,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4824,7 +4824,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4860,7 +4860,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -4897,7 +4897,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5051,7 +5051,7 @@ importers:version: 1.2.11(@shikijs/[email protected])([email protected]([email protected]))([email protected])'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5127,7 +5127,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5175,7 +5175,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5245,7 +5245,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5306,7 +5306,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5411,7 +5411,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5483,7 +5483,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5529,7 +5529,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5620,7 +5620,7 @@ importers:dependencies:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -5752,7 +5752,7 @@ importers:'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])'@posthog/icons':specifier: 'catalog:'@@ -6128,7 +6128,7 @@ importers:version: 4.20260207.0'@posthog/brand':specifier: 'catalog:'- version: 0.16.0([email protected])+ version: 0.17.0([email protected])typescript:specifier: 6.0.3version: 6.0.3@@ -11233,8 +11233,8 @@ packages:'@poppinss/[email protected]':resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==}- '@posthog/[email protected]':- resolution: {integrity: sha512-FMuq9ot/yJ32WDjRxziTySAOjvIBAgUKswOaon3/Vi1DiolkjpmTx/xEU6GLk4VVOo8T4XC2R/l4KB5B6VRUXw==}+ '@posthog/[email protected]':+ resolution: {integrity: sha512-zso8ODYQIaTHZduy12WO/whwevFypAU5JLkpfnIl1TC0uroPcoPWRmTvVjG8ADNagrk7+t1TFCWFU5TcDPMJjw==}engines: {node: '>=22.18'}peerDependencies:react: 18.3.1@@ -30891,7 +30891,7 @@ snapshots:'@poppinss/[email protected]': {}- '@posthog/[email protected]([email protected])':+ '@posthog/[email protected]([email protected])':optionalDependencies:react: 18.3.1diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 0ad5c7f55935..78493fbb3e4f 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -183,7 +183,7 @@ catalog:kea-window-values: ^3.0.1# PostHog packages'@posthog/icons': ^0.39.0- '@posthog/brand': 0.16.0+ '@posthog/brand': 0.17.0'@posthog/react': ^1.11.3posthog-js: ^1.443.0# Build tools