Skip to content

: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.

fix(customer-analytics): move calendar connect button above account list (#102141)

Andre de Vries36c5da296b87
diff --git a/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx b/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx
index d43b95564f16..f82c5c827a0d 100644
--- a/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx
+++ b/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/calendar/CalendarSyncConfig.tsx
@@ -68,6 +68,19 @@ export function CalendarSyncConfig(): JSX.Element {
Reconnect your Google account to let PostHog sync customer email as well as calendar meetings.
</LemonBanner>
)}
+ <div className="flex">
+ <LemonButton
+ type="primary"
+ size="small"
+ icon={<img src={ICONS['google-calendar']} className="h-4 w-4" alt="" />}
+ disableClientSideRouting
+ loading={integrationsLoading}
+ to={authorizeUrl}
+ data-attr="calendar-sync-connect-google-account"
+ >
+ {calendarIntegrations.length ? 'Connect another Google account' : 'Connect Google account'}
+ </LemonButton>
+ </div>
{calendarIntegrations.map((integration) => {
const syncStatus = statusByIntegrationId[integration.id]
const isSyncing = !!syncStatus?.is_syncing || triggeringIntegrationIds.includes(integration.id)
@@ -146,18 +159,6 @@ export function CalendarSyncConfig(): JSX.Element {
}}
onClose={closeBackfill}
/>
- <div className="flex">
- <LemonButton
- type="primary"
- size="small"
- icon={<img src={ICONS['google-calendar']} className="h-4 w-4" alt="" />}
- disableClientSideRouting
- loading={integrationsLoading}
- to={authorizeUrl}
- >
- {calendarIntegrations.length ? 'Connect another Google account' : 'Connect Google account'}
- </LemonButton>
- </div>
</div>
)
}