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(insights): remove Saved insights Home tab (#58612)

Paul D'Ambracdbd2fcc08cb
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 4ef75a33e9f0..83075bb10944 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -413,7 +413,6 @@ export const FEATURE_FLAGS = {
PRODUCT_ANALYTICS_HIDE_WEEKENDS: 'product-analytics-hide-weekends', // owner: @kliment-slice #team-irl-events
PRODUCT_ANALYTICS_HOG_CHARTS: 'product-analytics-hog-charts', // owner: @sampennington #team-product-analytics
PRODUCT_ANALYTICS_HOG_CHARTS_BAR: 'product-analytics-hog-charts-bar', // owner: @sampennington #team-product-analytics
- PRODUCT_ANALYTICS_HOME_TAB: 'product-analytics-home-tab', // owner: @anirudhpillai #team-product-analytics
PRODUCT_ANALYTICS_INSIGHT_HORIZONTAL_CONTROLS: 'insight-horizontal-controls', // owner: #team-product-analytics
PRODUCT_ANALYTICS_PATHS_V2: 'paths-v2', // owner: @thmsobrmlr #team-product-analytics
PRODUCT_ANALYTICS_RETENTION_AGGREGATION: 'retention-aggregation', // owner: @anirudhpillai #team-product-analytics
diff --git a/frontend/src/scenes/saved-insights/ActiveUsers.tsx b/frontend/src/scenes/saved-insights/ActiveUsers.tsx
deleted file mode 100644
index 1ccf34acf8d7..000000000000
--- a/frontend/src/scenes/saved-insights/ActiveUsers.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import { useActions, useValues } from 'kea'
-
-import { IconInfo } from '@posthog/icons'
-
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { dayjs } from 'lib/dayjs'
-import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
-import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
-import { asDisplay, asLink } from 'scenes/persons/person-utils'
-import { urls } from 'scenes/urls'
-
-import { ProjectHomePageCompactListItem } from '../project-homepage/ProjectHomePageCompactListItem'
-import { ActivePersonType, activeUsersLogic } from './activeUsersLogic'
-
-function PersonRow({ person }: { person: ActivePersonType }): JSX.Element {
- const { reportPersonOpenedFromNewlySeenPersonsList } = useActions(eventUsageLogic)
-
- return (
- <ProjectHomePageCompactListItem
- to={person.uuid ? urls.personByUUID(person.uuid) : asLink(person) || urls.persons()}
- title={asDisplay(person)}
- subtitle={
- <div className="flex items-center gap-1">
- <span className="font-medium">
- {person.activity_count} {person.activity_count === 1 ? 'event' : 'events'}
- </span>
- <span>•</span>
- <span>First seen {dayjs(person.created_at).fromNow()}</span>
- </div>
- }
- prefix={<ProfilePicture name={asDisplay(person)} />}
- onClick={() => {
- reportPersonOpenedFromNewlySeenPersonsList()
- }}
- dataAttr="active-user-item"
- />
- )
-}
-
-export function ActiveUsers(): JSX.Element {
- const { persons, personsLoading } = useValues(activeUsersLogic)
-
- return (
- <CompactList
- title={
- <div className="flex items-center gap-1">
- Most active users
- <Tooltip title="Users with the most events in the last 7 days. For large volumes of data this is calculated on a sample of events.">
- <IconInfo className="text-muted text-base" />
- </Tooltip>
- </div>
- }
- viewAllURL={urls.persons()}
- viewAllDataAttr="insights-home-tab-active-users-view-all"
- loading={personsLoading}
- emptyMessage={{
- title: 'No active people',
- description: 'People who have been active in your product will appear here.',
- buttonText: 'View all people',
- buttonTo: urls.persons(),
- }}
- items={persons.slice(0, 5)}
- renderRow={(person: ActivePersonType, index) => <PersonRow key={index} person={person} />}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/Activity.tsx b/frontend/src/scenes/saved-insights/Activity.tsx
deleted file mode 100644
index 1b764aa8b506..000000000000
--- a/frontend/src/scenes/saved-insights/Activity.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { useValues } from 'kea'
-
-import { ActivityLogRow } from 'lib/components/ActivityLog/ActivityLog'
-import { ActivityLogLogicProps, activityLogLogic } from 'lib/components/ActivityLog/activityLogLogic'
-import { HumanizedActivityLogItem } from 'lib/components/ActivityLog/humanizeActivity'
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { urls } from 'scenes/urls'
-
-import { ActivityScope, SavedInsightsTabs } from '~/types'
-
-const ACTIVITY_LIMIT = 5
-
-export function Activity(): JSX.Element {
- const logicProps: ActivityLogLogicProps = {
- scope: ActivityScope.INSIGHT,
- }
- const logic = activityLogLogic(logicProps)
- const { humanizedActivity, activityLoading } = useValues(logic)
-
- return (
- <CompactList
- title="Activity"
- viewAllURL={urls.savedInsights(SavedInsightsTabs.History)}
- viewAllDataAttr="insights-home-tab-activity-view-all"
- loading={activityLoading}
- emptyMessage={{
- title: 'No activity yet',
- description: 'Activity on insights will appear here.',
- buttonText: 'View all activity',
- buttonTo: urls.savedInsights(SavedInsightsTabs.History),
- }}
- items={humanizedActivity.slice(0, ACTIVITY_LIMIT)}
- renderRow={(logItem: HumanizedActivityLogItem, index) => (
- <div key={index} className="mb-2 last:mb-0" data-attr="activity-log-item">
- <ActivityLogRow logItem={logItem} />
- </div>
- )}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/FiringAlerts.tsx b/frontend/src/scenes/saved-insights/FiringAlerts.tsx
deleted file mode 100644
index 7bdf3561cd78..000000000000
--- a/frontend/src/scenes/saved-insights/FiringAlerts.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import { useValues } from 'kea'
-
-import { alertsLogic } from 'lib/components/Alerts/alertsLogic'
-import { AlertType } from 'lib/components/Alerts/types'
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { TZLabel } from 'lib/components/TZLabel'
-import { urls } from 'scenes/urls'
-
-import { AlertState } from '~/queries/schema/schema-general'
-import { SavedInsightsTabs } from '~/types'
-
-import { ProjectHomePageCompactListItem } from '../project-homepage/ProjectHomePageCompactListItem'
-
-interface AlertRowProps {
- alert: AlertType
-}
-
-function AlertRow({ alert }: AlertRowProps): JSX.Element {
- return (
- <ProjectHomePageCompactListItem
- title={alert.name}
- subtitle={
- alert.last_checked_at ? (
- <div className="flex items-center gap-1">
- {alert.last_value !== undefined && (
- <>
- <span className="font-medium">Value: {alert.last_value}</span>
- <span>•</span>
- </>
- )}
- <span>
- Last checked <TZLabel time={alert.last_checked_at} />
- </span>
- </div>
- ) : (
- 'Not yet checked'
- )
- }
- to={urls.alert(alert.id)}
- dataAttr="firing-alert-item"
- />
- )
-}
-
-export function FiringAlerts(): JSX.Element {
- const { alerts, alertsLoading } = useValues(alertsLogic)
-
- const firingAlerts = alerts.filter((alert) => alert.state === AlertState.FIRING && alert.enabled)
-
- return (
- <CompactList
- title="Firing alerts"
- viewAllURL={urls.savedInsights(SavedInsightsTabs.Alerts)}
- viewAllDataAttr="insights-home-tab-firing-alerts-view-all"
- loading={alertsLoading}
- emptyMessage={{
- title: 'All good!',
- description: 'No alerts are currently firing.',
- buttonText: 'View all alerts',
- buttonTo: urls.savedInsights(SavedInsightsTabs.Alerts),
- buttonDataAttr: 'firing-alerts-empty-view-all',
- }}
- items={firingAlerts.slice(0, 5)}
- renderRow={(alert: AlertType) => <AlertRow key={alert.id} alert={alert} />}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/HomeTab.tsx b/frontend/src/scenes/saved-insights/HomeTab.tsx
deleted file mode 100644
index 2e31f7dfe850..000000000000
--- a/frontend/src/scenes/saved-insights/HomeTab.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ActiveUsers } from './ActiveUsers'
-import { Activity } from './Activity'
-import { FiringAlerts } from './FiringAlerts'
-import { NewEvents } from './NewEvents'
-import { RecentlyViewed } from './RecentlyViewed'
-import { Trending } from './Trending'
-
-export function HomeTab(): JSX.Element {
- return (
- <div className="py-4">
- <div className="flex flex-col gap-4 md:flex-row md:items-start">
- <div className="flex flex-1 min-w-0 flex-col gap-4">
- <RecentlyViewed />
- <FiringAlerts />
- <ActiveUsers />
- </div>
- <div className="flex flex-1 min-w-0 flex-col gap-4">
- <Trending />
- <NewEvents />
- <Activity />
- </div>
- </div>
- </div>
- )
-}
diff --git a/frontend/src/scenes/saved-insights/NewEvents.tsx b/frontend/src/scenes/saved-insights/NewEvents.tsx
deleted file mode 100644
index df77c76cf1dc..000000000000
--- a/frontend/src/scenes/saved-insights/NewEvents.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-import { useValues } from 'kea'
-
-import { IconInfo } from '@posthog/icons'
-
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { dayjs } from 'lib/dayjs'
-import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { eventToIcon } from 'scenes/session-recordings/player/inspector/components/PlayerInspectorListItem'
-import { urls } from 'scenes/urls'
-
-import { EventDefinition } from '~/types'
-
-import { ProjectHomePageCompactListItem } from '../project-homepage/ProjectHomePageCompactListItem'
-import { newEventsLogic } from './newEventsLogic'
-
-function EventRow({ event }: { event: EventDefinition }): JSX.Element {
- const subtitle = event.created_at
- ? `Created ${dayjs(event.created_at).fromNow()}`
- : event.last_seen_at
- ? `Last seen ${dayjs(event.last_seen_at).fromNow()}`
- : 'Recently added'
-
- const EventIcon = eventToIcon(event.name)
-
- return (
- <ProjectHomePageCompactListItem
- to={urls.eventDefinition(event.id)}
- title={event.name}
- subtitle={subtitle}
- prefix={<EventIcon className="text-lg" />}
- dataAttr="new-event-item"
- />
- )
-}
-
-export function NewEvents(): JSX.Element {
- const { newEvents, newEventsLoading } = useValues(newEventsLogic)
-
- return (
- <CompactList
- title={
- <div className="flex items-center gap-1">
- New events
- <Tooltip title="Events that have been seen for the first time recently.">
- <IconInfo className="text-muted text-base" />
- </Tooltip>
- </div>
- }
- viewAllURL={urls.eventDefinitions()}
- viewAllDataAttr="insights-home-tab-new-events-view-all"
- loading={newEventsLoading}
- emptyMessage={{
- title: 'No events found',
- description: 'Finish implementing event tracking to see your events.',
- buttonText: 'View all events',
- buttonTo: urls.eventDefinitions(),
- }}
- items={newEvents.slice(0, 5)}
- renderRow={(event: EventDefinition) => <EventRow key={event.id} event={event} />}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/RecentlyViewed.tsx b/frontend/src/scenes/saved-insights/RecentlyViewed.tsx
deleted file mode 100644
index 2e54d4f91d50..000000000000
--- a/frontend/src/scenes/saved-insights/RecentlyViewed.tsx
+++ /dev/null
@@ -1,75 +0,0 @@
-import { useActions, useValues } from 'kea'
-
-import { IconDashboard, IconExternal } from '@posthog/icons'
-
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { dayjs } from 'lib/dayjs'
-import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'
-import { LemonButton } from 'lib/lemon-ui/LemonButton'
-import { urls } from 'scenes/urls'
-
-import { SavedInsightsTabs } from '~/types'
-
-import { RecentItem, projectHomepageLogic } from '../project-homepage/projectHomepageLogic'
-import { InsightRow } from './InsightRow'
-
-export function RecentlyViewed(): JSX.Element {
- const { recentInsightsLoading, expandedInsightIds, recentItems, dashboardsLoading } =
- useValues(projectHomepageLogic)
- const { loadRecentInsights, toggleInsightExpanded } = useActions(projectHomepageLogic)
- useOnMountEffect(loadRecentInsights)
-
- return (
- <CompactList
- title="Recently viewed"
- viewAllURL={urls.savedInsights(SavedInsightsTabs.All)}
- viewAllDataAttr="insights-home-tab-recently-viewed-view-all"
- loading={recentInsightsLoading || dashboardsLoading}
- emptyMessage={{
- title: 'You have no recently viewed insights',
- description: "Explore this project's insights by clicking below.",
- buttonText: 'View insights',
- buttonTo: urls.savedInsights(),
- }}
- items={recentItems}
- renderRow={(item: RecentItem) => {
- if (item.itemType === 'insight') {
- return (
- <InsightRow
- key={item.short_id}
- insight={item}
- isExpanded={expandedInsightIds.has(item.short_id)}
- onToggle={() => toggleInsightExpanded(item.short_id)}
- dataAttr="recently-viewed-insight-item"
- />
- )
- }
-
- return (
- <div
- key={item.id}
- className="border border-border rounded bg-surface-primary mb-2 last:mb-0"
- data-attr="recently-viewed-dashboard-item"
- >
- <div className="flex items-center gap-3 p-3 rounded-t">
- <IconDashboard className="text-secondary text-3xl shrink-0" />
- <div className="flex flex-col flex-1 truncate">
- <span className="font-semibold truncate">{item.name || <i>Untitled</i>}</span>
- <span className="text-muted text-xs mt-0.5 truncate">
- {`Last viewed ${dayjs(item.last_viewed_at).fromNow()}`}
- </span>
- </div>
- <LemonButton
- size="small"
- icon={<IconExternal />}
- to={urls.dashboard(item.id)}
- tooltip="Open dashboard"
- />
- </div>
- </div>
- )
- }}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/SavedInsights.tsx b/frontend/src/scenes/saved-insights/SavedInsights.tsx
index 78d04e4ae5a8..0a7ea844f2c1 100644
--- a/frontend/src/scenes/saved-insights/SavedInsights.tsx
+++ b/frontend/src/scenes/saved-insights/SavedInsights.tsx
@@ -43,7 +43,6 @@ import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'
import { TZLabel } from 'lib/components/TZLabel'
import { FEATURE_FLAGS } from 'lib/constants'
import { dayjs } from 'lib/dayjs'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconAction, IconTableChart } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { More } from 'lib/lemon-ui/LemonButton/More'
@@ -53,7 +52,6 @@ import { LemonMenu, LemonMenuItems } from 'lib/lemon-ui/LemonMenu'
import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { LemonTableLink } from 'lib/lemon-ui/LemonTable/LemonTableLink'
import { LemonTabs } from 'lib/lemon-ui/LemonTabs'
-import { LemonTag } from 'lib/lemon-ui/LemonTag/LemonTag'
import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { isNonEmptyObject } from 'lib/utils'
@@ -65,7 +63,6 @@ import { SavedInsightsEmptyState } from 'scenes/insights/EmptyStates'
import { useSummarizeInsight } from 'scenes/insights/summarizeInsight'
import { INSIGHT_TYPE_URLS } from 'scenes/insights/utils'
import { projectLogic } from 'scenes/projectLogic'
-import { HomeTab } from 'scenes/saved-insights/HomeTab'
import { NewInsightShortcuts } from 'scenes/saved-insights/newInsightsMenu'
import { SavedInsightsFilters } from 'scenes/saved-insights/SavedInsightsFilters'
import { sceneConfigurations } from 'scenes/scenes'
@@ -769,7 +766,6 @@ export function SavedInsights(): JSX.Element {
const { currentProjectId } = useValues(projectLogic)
const summarizeInsight = useSummarizeInsight()
- const showHomeTab = useFeatureFlag('PRODUCT_ANALYTICS_HOME_TAB')
const { tab } = filters
@@ -983,21 +979,6 @@ export function SavedInsights(): JSX.Element {
activeKey={tab}
onChange={(tab) => setSavedInsightsFilters({ tab })}
tabs={[
- ...(showHomeTab
- ? [
- {
- key: SavedInsightsTabs.Home,
- label: (
- <div className="flex items-center gap-2">
- Home
- <LemonTag type="warning" size="small">
- BETA
- </LemonTag>
- </div>
- ),
- },
- ]
- : []),
{ key: SavedInsightsTabs.All, label: 'All insights' },
{ key: SavedInsightsTabs.Yours, label: 'My insights' },
{
@@ -1009,9 +990,7 @@ export function SavedInsights(): JSX.Element {
sceneInset
/>
- {tab === SavedInsightsTabs.Home ? (
- <HomeTab />
- ) : tab === SavedInsightsTabs.History ? (
+ {tab === SavedInsightsTabs.History ? (
<ActivityLog scope={ActivityScope.INSIGHT} />
) : tab === SavedInsightsTabs.Alerts ? (
<Alerts alertId={alertModalId} />
diff --git a/frontend/src/scenes/saved-insights/Trending.tsx b/frontend/src/scenes/saved-insights/Trending.tsx
deleted file mode 100644
index 37d5a2b12dc4..000000000000
--- a/frontend/src/scenes/saved-insights/Trending.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import { useActions, useValues } from 'kea'
-
-import { IconInfo } from '@posthog/icons'
-
-import { CompactList } from 'lib/components/CompactList/CompactList'
-import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { urls } from 'scenes/urls'
-
-import { QueryBasedInsightModel, SavedInsightsTabs } from '~/types'
-
-import { InsightRow } from './InsightRow'
-import { trendingInsightsLogic } from './trendingInsightsLogic'
-
-export function Trending(): JSX.Element {
- const { trendingInsights, trendingInsightsLoading, expandedInsightIds } = useValues(trendingInsightsLogic)
- const { toggleInsightExpanded } = useActions(trendingInsightsLogic)
-
- return (
- <CompactList
- title={
- <div className="flex items-center gap-1">
- Trending
- <Tooltip title="Trending insights are calculated based on the number of unique views in the last 7 days.">
- <IconInfo className="text-muted text-base" />
- </Tooltip>
- </div>
- }
- viewAllURL={urls.savedInsights(SavedInsightsTabs.All)}
- viewAllDataAttr="insights-home-tab-trending-view-all"
- loading={trendingInsightsLoading}
- emptyMessage={{
- title: 'No trending insights',
- description: 'Insights that are viewed frequently in your organization will appear here.',
- buttonText: 'View all insights',
- buttonTo: urls.savedInsights(SavedInsightsTabs.All),
- }}
- items={trendingInsights.slice(0, 5)}
- renderRow={(insight: QueryBasedInsightModel) => (
- <InsightRow
- key={insight.short_id}
- insight={insight}
- isExpanded={expandedInsightIds.has(insight.short_id)}
- onToggle={() => toggleInsightExpanded(insight.short_id)}
- dataAttr="trending-insight-item"
- />
- )}
- contentHeightBehavior="fit-content"
- />
- )
-}
diff --git a/frontend/src/scenes/saved-insights/activeUsersLogic.ts b/frontend/src/scenes/saved-insights/activeUsersLogic.ts
deleted file mode 100644
index 96beaa21c7de..000000000000
--- a/frontend/src/scenes/saved-insights/activeUsersLogic.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import { afterMount, kea, path } from 'kea'
-import { loaders } from 'kea-loaders'
-
-import api from 'lib/api'
-
-import { hogql } from '~/queries/utils'
-import { PersonType } from '~/types'
-
-import type { activeUsersLogicType } from './activeUsersLogicType'
-
-export interface ActivePersonType extends PersonType {
- activity_count: number
-}
-
-export const activeUsersLogic = kea<activeUsersLogicType>([
- path(['scenes', 'saved-insights', 'activeUsersLogic']),
-
- loaders({
- persons: {
- __default: [] as ActivePersonType[],
- loadPersons: async () => {
- // HogQL is used here to get activity-based ranking, which the persons API doesn't support
- const query = hogql`
- SELECT any(distinct_id), count() as activity_count
- FROM events
- SAMPLE 10000000
- WHERE timestamp > now() - INTERVAL 7 DAY
- GROUP BY person_id
- ORDER BY activity_count DESC
- LIMIT 5
- `
- try {
- const idsResponse = await api.queryHogQL(query, {
- scene: 'SavedInsights',
- productKey: 'persons',
- })
- const results = idsResponse.results || []
- const distinctIds = results.map((row) => row[0] as string)
- const counts = new Map(results.map((row) => [row[0] as string, row[1] as number]))
-
- const personsMap = await api.persons.getByDistinctIds(distinctIds)
-
- return distinctIds
- .map((distinctId) => {
- const person = personsMap[distinctId]
- if (!person) {
- return null
- }
- return { ...person, activity_count: counts.get(distinctId) || 0 }
- })
- .filter((p): p is ActivePersonType => !!p)
- .sort((a, b) => b.activity_count - a.activity_count)
- } catch (error) {
- console.error('Failed to load active users:', error)
- return []
- }
- },
- },
- }),
-
- afterMount(({ actions }) => actions.loadPersons()),
-])
diff --git a/frontend/src/scenes/saved-insights/newEventsLogic.ts b/frontend/src/scenes/saved-insights/newEventsLogic.ts
deleted file mode 100644
index 0610d521ad2e..000000000000
--- a/frontend/src/scenes/saved-insights/newEventsLogic.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { afterMount, kea, path } from 'kea'
-import { loaders } from 'kea-loaders'
-
-import api from 'lib/api'
-
-import { EventDefinition } from '~/types'
-
-import type { newEventsLogicType } from './newEventsLogicType'
-
-export const newEventsLogic = kea<newEventsLogicType>([
- path(['scenes', 'saved-insights', 'newEventsLogic']),
-
- loaders({
- newEvents: {
- __default: [] as EventDefinition[],
- loadNewEvents: async () => {
- try {
- const response = await api.eventDefinitions.list({ limit: 10, ordering: '-created_at' })
- return response.results
- } catch (error) {
- console.error('Failed to load new events:', error)
- return []
- }
- },
- },
- }),
-
- afterMount(({ actions }) => actions.loadNewEvents()),
-])
diff --git a/frontend/src/scenes/saved-insights/trendingInsightsLogic.ts b/frontend/src/scenes/saved-insights/trendingInsightsLogic.ts
deleted file mode 100644
index 4f0d04ba340d..000000000000
--- a/frontend/src/scenes/saved-insights/trendingInsightsLogic.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { actions, afterMount, kea, path, reducers } from 'kea'
-import { loaders } from 'kea-loaders'
-
-import api from 'lib/api'
-
-import { getQueryBasedInsightModel } from '~/queries/nodes/InsightViz/utils'
-import { QueryBasedInsightModel } from '~/types'
-
-import type { trendingInsightsLogicType } from './trendingInsightsLogicType'
-
-export const trendingInsightsLogic = kea<trendingInsightsLogicType>([
- path(['scenes', 'saved-insights', 'trendingInsightsLogic']),
-
- actions({
- toggleInsightExpanded: (insightShortId: string) => ({ insightShortId }),
- }),
-
- reducers({
- expandedInsightIds: [
- new Set<string>(),
- {
- toggleInsightExpanded: (state, { insightShortId }) => {
- const next = new Set(state)
- next.has(insightShortId) ? next.delete(insightShortId) : next.add(insightShortId)
- return next
- },
- },
- ],
- }),
-
- loaders({
- trendingInsights: {
- __default: [] as QueryBasedInsightModel[],
- loadTrendingInsights: async () => {
- try {
- const insights = await api.insights.trending({ days: 7, limit: 5 })
- return insights.map(getQueryBasedInsightModel)
- } catch (error) {
- console.error('Failed to load trending insights:', error)
- return []
- }
- },
- },
- }),
-
- afterMount(({ actions }) => actions.loadTrendingInsights()),
-])
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 9a410f50c732..0ee72f3ebaf7 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -938,7 +938,6 @@ export enum PropertyOperator {
}
export enum SavedInsightsTabs {
- Home = 'home',
All = 'all',
Yours = 'yours',
History = 'history',