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.

feat(product-analytics): remove template option from home customize modal (#126099)

Daniel Parker901b8f710a9f
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 5d1d268fe40b..9c5d3eefb74b 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -14843,25 +14843,25 @@ snapshots:
scenes-app-product-analytics-home-chart-card--primary--light:
hash: v1.k794b7964.3029d681745bb041a125cd38a82c90d88e8c1c4f1c94e983f1a2afe002b399c7.P2tcznoufujQ1-OR3EiKU0wghPvd46O5Xx0NK-v0k3Y
scenes-app-product-analytics-home-dashboard-starter--ai-unavailable--dark:
- hash: v1.k794b7964.4961981e44afc1b380d86fefc8c49d4aae78f8c8d3c4e475d30ee3c227785de0.JfqQiF5A9umixLPG_898JQw6e47a59dCvTJRL47GE5w
+ hash: v1.k794b7964.0c69a27757fbb83e55dd66425a9f2fd67aa4a2a571130ac3b24556afa09ca709.N86MBuHQhRwfaav9R91c5jwZRJGxs2Fp1QHQ09E6--4
scenes-app-product-analytics-home-dashboard-starter--ai-unavailable--light:
- hash: v1.k794b7964.7d2132b8e09bdcdb0f90b78b77317fccd4ba99abb74354989066d85c5ca1beb9.J0zJ_UHA0Q5ZPECO4Wd5LmcKa2XbYHp999P4_AI2s48
+ hash: v1.k794b7964.b015e9b3751fba68447b3110c67f62105b9dbe2fbe2535e8ade046b583725942.IhMLDD5I1hnKCU5dLoWLCMRXh0R3ZfFS6iIwAXy-r_U
scenes-app-product-analytics-home-dashboard-starter--creating-with-ai--dark:
- hash: v1.k794b7964.4a7be6bd2b299f66e526e4c6e7ccbdc4b49fb54aee94d5b1a382b0ef1635aa8e.iga9ZEwAfA7Wa0XFGBVV19asPM7GcdS1toTHlzWZsH8
+ hash: v1.k794b7964.618eb66aa604550590a2922c476e199e92bd99934c8b4f27706bdea94416f778.r4xFWk-MAi2OwbWn-Nbwoai3D_sddg2YuEwgI2ho8Rc
scenes-app-product-analytics-home-dashboard-starter--creating-with-ai--light:
- hash: v1.k794b7964.1635be4b16f8d8c05fd87ace49846387f717d18e5dfeaab7fe1717472659091f.b5c2wbgH-ZyJoCLBbPp8yQq2cBy8sKT63kJ-T5It1Zg
+ hash: v1.k794b7964.26b4a5e361d7bb6c8aea83b633ecfe484cbc29d3f58a8a384b6c65e1219a0f2e.nslsmgS8X3-zqqV0-aVrIyHW_S97h4wjgyV1c9G8vyg
scenes-app-product-analytics-home-dashboard-starter--default--dark:
- hash: v1.k794b7964.001473c625d67675378260f61bb01aed5b1b8b271ee25e646d619e4c1db69ccb.oAw6xySLnu44T-DoYmQVr2OCSpqK5Y8e30ZT3UaGlR0
+ hash: v1.k794b7964.358312daf9713880c3687573c56e5d8a8a79bab23632e23ea15ef30668c3887a.NTh1FA4-mCaegb9C29NYxigk5dEwlkm_U6ByJYwErLs
scenes-app-product-analytics-home-dashboard-starter--default--light:
- hash: v1.k794b7964.786f2dc9e81023c98950ea919ae959653bee537aa6abd42e61fb675d5b8feca3.9SA9R77NI4v5H5sh14dF6_CqhI81Xdct0taZqNrWDto
+ hash: v1.k794b7964.d057254bad6352b3b57f843312eb78855b7209e466be2187a3e87816dd58a610.9OoNEo_YV7G_giH1alQdHHzxZJelaeymwzoC6v1tJsg
scenes-app-product-analytics-home-dashboard-starter--narrow--dark:
- hash: v1.k794b7964.9493106a48661ae97d8806fe679e42eb8cb1d6525c51d42890ba5b99a0fbde77.h5zuuh1cvPfoH-wLoBP6UtJMQI08ICsWdWURd2Ux_q4
+ hash: v1.k794b7964.db739611f4637ec93fde0f891551b47482290e23794852fbcf8602557424ee13.Q1Sqd1Dw5AsRIDZM30MQlK-qyEuujlzLSjrRLzI5RtA
scenes-app-product-analytics-home-dashboard-starter--narrow--light:
- hash: v1.k794b7964.6efe4fd821e7998a183eb6d33db4a487ec71fd35cf2fe6e0614c956a8cec7449.6xWxegB41pF29DImyI9O1IeC79kYTof0dtkbGM9KQI0
+ hash: v1.k794b7964.e45d842195a0ffcacbd9b8813665550d5e4296d787a8a85f5b2b111c64a8e630.WMYaleikFRKl2w-zEbx9ny_Bdr2l4fvm3IlBoBKHO60
scenes-app-product-analytics-home-dashboard-starter--with-custom-dashboard--dark:
- hash: v1.k794b7964.62b167adcafc76a8c01a26d37939afcc00b9f7ace66910a5236526f1bf11144f.RCmivZXFHuoNRG0x8wPDho2x2ThctzI-lFv0SsJvjF4
+ hash: v1.k794b7964.9104d7daf8c63d30d0a07a77f7d5d3a66c8e0989e42193ffdacc5a29c7e40279.Ay_jRdNEKnWxwymazLOyOz9P4vAQgyGmc1Z5iCrVaVc
scenes-app-product-analytics-home-dashboard-starter--with-custom-dashboard--light:
- hash: v1.k794b7964.3ee8965d914ac6af5d66285e6733dded35a1cf679a8a3a9ab0ea0d5eb948e004.Vn5DPuXlDMqEHmhNLH1MtedCQWZV3-1Wo-hG8HxSdlc
+ hash: v1.k794b7964.720fb9624afc4a6bfea4c7c47f49284a518ada930ce8db9c23b480a7be91f758.JRaAk9BloK7vXnpQ5xv1MIN4yr-qtXHWWDeg2AGO0Cw
scenes-app-product-analytics-home-overview--before-ingestion--dark:
hash: v1.k794b7964.c6719ac435ec9e335d235a619e587df0c2042dd8398292f09b68a49e073af467.rXNWamLv05QF9cI9nWYAhCxBuecO6fh4oabPA_NGBqA
scenes-app-product-analytics-home-overview--before-ingestion--light:
diff --git a/products/product_analytics/frontend/insights/home/HomeDashboardModals.tsx b/products/product_analytics/frontend/insights/home/HomeDashboardModals.tsx
index 681c20fe5d5a..8719d2e807ed 100644
--- a/products/product_analytics/frontend/insights/home/HomeDashboardModals.tsx
+++ b/products/product_analytics/frontend/insights/home/HomeDashboardModals.tsx
@@ -22,7 +22,6 @@ export function HomeDashboardModals(): JSX.Element {
showDashboardPicker,
copyPostHogHome,
createHomeDashboardWithAI,
- openHomeDashboardTemplates,
restorePostHogHome,
} = useActions(homeDashboardChoiceLogic)
@@ -33,7 +32,6 @@ export function HomeDashboardModals(): JSX.Element {
onClose={closeSceneDashboardChoiceModal}
onCopyPostHogHome={copyPostHogHome}
onTalkToAI={createHomeDashboardWithAI}
- onStartFromTemplate={openHomeDashboardTemplates}
onChooseExisting={showDashboardPicker}
hasCustomDashboard={!!currentTeam?.home_tab_dashboard}
onRestorePostHogHome={restorePostHogHome}
diff --git a/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.stories.tsx b/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.stories.tsx
index 67e7aa26b551..92cde7710e34 100644
--- a/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.stories.tsx
+++ b/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.stories.tsx
@@ -12,7 +12,6 @@ const meta: Meta<typeof HomeDashboardStarterModal> = {
onClose: noop,
onCopyPostHogHome: noop,
onTalkToAI: noop,
- onStartFromTemplate: noop,
onChooseExisting: noop,
onRestorePostHogHome: noop,
hasCustomDashboard: false,
diff --git a/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.tsx b/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.tsx
index 2ce6bd6f863e..ebb17428d396 100644
--- a/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.tsx
+++ b/products/product_analytics/frontend/insights/home/HomeDashboardStarterModal.tsx
@@ -1,4 +1,4 @@
-import { IconChevronRight, IconCopy, IconDashboard, IconHome, IconSparkles, IconStack } from '@posthog/icons'
+import { IconChevronRight, IconCopy, IconDashboard, IconHome, IconSparkles } from '@posthog/icons'
import { LemonButton, LemonModal } from '@posthog/lemon-ui'
export interface HomeDashboardStarterModalProps {
@@ -6,7 +6,6 @@ export interface HomeDashboardStarterModalProps {
onClose: () => void
onCopyPostHogHome: () => void
onTalkToAI: () => void
- onStartFromTemplate: () => void
onChooseExisting: () => void
hasCustomDashboard: boolean
onRestorePostHogHome?: () => void
@@ -20,7 +19,6 @@ export function HomeDashboardStarterModal({
onClose,
onCopyPostHogHome,
onTalkToAI,
- onStartFromTemplate,
onChooseExisting,
hasCustomDashboard,
onRestorePostHogHome,
@@ -49,15 +47,6 @@ export function HomeDashboardStarterModal({
loading: creatingWithAI,
disabledReason: creationDisabledReason || aiDisabledReason,
},
- {
- title: 'Start from a template',
- description: 'Choose a ready-made dashboard and adapt it to your product.',
- icon: <IconStack />,
- onClick: onStartFromTemplate,
- dataAttr: 'home-dashboard-start-template',
- loading: false,
- disabledReason: creationDisabledReason,
- },
{
title: 'Choose an existing dashboard',
description: 'Show one of this project’s dashboards on this page.',
diff --git a/products/product_analytics/frontend/insights/home/homeDashboardChoiceLogic.ts b/products/product_analytics/frontend/insights/home/homeDashboardChoiceLogic.ts
index 76ddadbfa14c..fc04c9ce08d0 100644
--- a/products/product_analytics/frontend/insights/home/homeDashboardChoiceLogic.ts
+++ b/products/product_analytics/frontend/insights/home/homeDashboardChoiceLogic.ts
@@ -17,7 +17,6 @@ type HomeDashboardAction =
| 'copy_default'
| 'create_with_ai'
| 'continue_with_ai'
- | 'start_from_template'
| 'choose_existing'
| 'edit_dashboard'
| 'reset_to_default'
@@ -54,9 +53,6 @@ export interface homeDashboardChoiceLogicActions {
openAI: boolean
setAsHomeTabDashboard: boolean
} // newDashboardLogic
- showNewDashboardModal: () => {
- value: true
- } // newDashboardLogic
closeSceneDashboardChoiceModal: () => boolean // sceneDashboardChoiceModalLogic
setSceneDashboardChoice: (dashboardId: number | null) => {
dashboardId: number | null
@@ -79,9 +75,6 @@ export interface homeDashboardChoiceLogicActions {
openHomeDashboardStarter: () => {
value: true
}
- openHomeDashboardTemplates: () => {
- value: true
- }
restorePostHogHome: () => {
value: true
}
@@ -106,12 +99,7 @@ export const homeDashboardChoiceLogic = kea<homeDashboardChoiceLogicType>([
'showStarterOptions',
],
newDashboardLogic,
- [
- 'addDashboard',
- 'createDashboardFromTemplate',
- 'setAsHomeTabDashboardAfterCreation',
- 'showNewDashboardModal',
- ],
+ ['addDashboard', 'createDashboardFromTemplate', 'setAsHomeTabDashboardAfterCreation'],
],
})),
actions({
@@ -119,7 +107,6 @@ export const homeDashboardChoiceLogic = kea<homeDashboardChoiceLogicType>([
copyPostHogHome: true,
createHomeDashboardWithAI: true,
continueHomeDashboardWithAI: (dashboardId: number) => ({ dashboardId }),
- openHomeDashboardTemplates: true,
editHomeDashboard: (dashboardId: number) => ({ dashboardId }),
restorePostHogHome: true,
}),
@@ -156,12 +143,6 @@ export const homeDashboardChoiceLogic = kea<homeDashboardChoiceLogicType>([
captureHomeDashboardAction('continue_with_ai')
openHomeDashboardAIChat(dashboardId)
},
- openHomeDashboardTemplates: () => {
- captureHomeDashboardAction('start_from_template')
- actions.closeSceneDashboardChoiceModal()
- actions.setAsHomeTabDashboardAfterCreation(true)
- actions.showNewDashboardModal()
- },
showDashboardPicker: () => {
captureHomeDashboardAction('choose_existing')
},