: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
feat(customer-analytics): show account logo before account name (#120999)
Arthur Moreira de Deus19c137c409c9
diff --git a/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx b/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsxindex 28924dc87d8e..7c58ee1c495f 100644--- a/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx+++ b/frontend/src/layout/scenes/components/QuillSceneTitleSection.tsx@@ -102,6 +102,7 @@ export function QuillSceneTitleSection({: undefined}icon={resourceIcon}+ iconLeadsName={resourceType.iconLeadsName}current={staticName ? { name, description: description || undefined } : undefined}/>}diff --git a/frontend/src/layout/scenes/components/QuillSceneTrail.tsx b/frontend/src/layout/scenes/components/QuillSceneTrail.tsxindex cd2f0729dcb1..0f8813d409d4 100644--- a/frontend/src/layout/scenes/components/QuillSceneTrail.tsx+++ b/frontend/src/layout/scenes/components/QuillSceneTrail.tsx@@ -34,11 +34,15 @@ export interface QuillSceneTrailProps {lead?: ReactNodeparent?: QuillSceneTrailParenticon?: ReactNode+ /** Puts the icon before the scene name instead of on the parent crumb. */+ iconLeadsName?: boolean/** The scene itself as the last crumb, for a name nobody can rename. Without it, an editable name follows the trail. */current?: QuillSceneTrailCurrent}-export function QuillSceneTrail({ lead, parent, icon, current }: QuillSceneTrailProps): JSX.Element {+export function QuillSceneTrail({ lead, parent, icon, iconLeadsName, current }: QuillSceneTrailProps): JSX.Element {+ const parentIcon = parent && !iconLeadsName ? icon : undefined+ const nameIcon = parentIcon ? undefined : iconreturn (<>{lead && (@@ -58,18 +62,18 @@ export function QuillSceneTrail({ lead, parent, icon, current }: QuillSceneTrailrender={<LinkPrimitive to={parent.path} />}data-attr="scene-title-breadcrumb-back">- {icon && (+ {parentIcon && (<span className={LINK_ICON} aria-hidden>- {icon}+ {parentIcon}</span>)}<span className="truncate">{parent.name}</span></Button>) : (<span className={STATIC_PARENT}>- {icon && (+ {parentIcon && (<span className={LINK_ICON} aria-hidden>- {icon}+ {parentIcon}</span>)}<span className="truncate">{parent.name}</span>@@ -79,18 +83,16 @@ export function QuillSceneTrail({ lead, parent, icon, current }: QuillSceneTrail/</span></>- ) : (- icon &&- !current && (- <span className={TITLE_ICON} aria-hidden>- {icon}- </span>- )+ ) : null}+ {nameIcon && !current && (+ <span className={TITLE_ICON} aria-hidden>+ {nameIcon}+ </span>)}{current && (<QuillSceneStaticNamename={current.name}- icon={parent ? undefined : icon}+ icon={nameIcon}description={current.description}className={CRUMB}/>diff --git a/frontend/src/layout/scenes/components/SceneTitleSection.tsx b/frontend/src/layout/scenes/components/SceneTitleSection.tsxindex 23239fade36e..eb95db02ab94 100644--- a/frontend/src/layout/scenes/components/SceneTitleSection.tsx+++ b/frontend/src/layout/scenes/components/SceneTitleSection.tsx@@ -39,6 +39,8 @@ export type ResourceType = {forceIcon?: JSX.Element/** If your resource type matches a product in fileSystemTypes and has a color defined, you can use this to override the product's icon color */forceIconColorOverride?: FileSystemIconColor+ /** Set when the icon depicts this resource, not its product, so it leads the name instead of the parent breadcrumb */+ iconLeadsName?: boolean}export type SceneMainTitleProps = {diff --git a/products/customer_analytics/frontend/scenes/CustomerAnalyticsAccountScene/CustomerAnalyticsAccountScene.tsx b/products/customer_analytics/frontend/scenes/CustomerAnalyticsAccountScene/CustomerAnalyticsAccountScene.tsxindex 3c69e5923d9f..2daf78c24c60 100644--- a/products/customer_analytics/frontend/scenes/CustomerAnalyticsAccountScene/CustomerAnalyticsAccountScene.tsx+++ b/products/customer_analytics/frontend/scenes/CustomerAnalyticsAccountScene/CustomerAnalyticsAccountScene.tsx@@ -133,6 +133,7 @@ function CustomerAnalyticsAccountSceneContent(): JSX.Element {resourceType={{type: 'cohort',forceIcon: <AccountLogo domain={getAccountLogoDomain(account)} name={account.name} />,+ iconLeadsName: true,}}actions={<>