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(today): show the today home on narrow windows (#111192)

Shy Alter93e9f0e894f7
diff --git a/frontend/src/scenes/project-homepage/projectHomepageLogic.tsx b/frontend/src/scenes/project-homepage/projectHomepageLogic.tsx
index de509609e1ec..b7606c4ed3cb 100644
--- a/frontend/src/scenes/project-homepage/projectHomepageLogic.tsx
+++ b/frontend/src/scenes/project-homepage/projectHomepageLogic.tsx
@@ -9,7 +9,6 @@ import { MaxContextInput } from 'scenes/max/maxTypes'
import { projectLogic } from 'scenes/projectLogic'
import { urls } from 'scenes/urls'
-import { navigationLogic } from '~/layout/navigation/navigationLogic'
import { getQueryBasedInsightModel } from '~/queries/nodes/InsightViz/utils'
import { Breadcrumb, InsightModel } from '~/types'
@@ -18,7 +17,6 @@ import type { Node } from '../../queries/schema/schema-general'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface projectHomepageLogicValues {
featureFlags: FeatureFlagsSet // featureFlagLogic
- mobileLayout: boolean // navigationLogic
currentProjectId: number | null // projectLogic
breadcrumbs: Breadcrumb[]
expandedInsightIds: Set<string>
@@ -53,7 +51,7 @@ export interface projectHomepageLogicActions {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface projectHomepageLogicMeta {
__keaTypeGenInternalSelectorTypes: {
- todayHomeEnabled: (featureFlags: FeatureFlagsSet, mobileLayout: boolean) => boolean
+ todayHomeEnabled: (featureFlags: FeatureFlagsSet) => boolean
}
}
@@ -67,14 +65,7 @@ export type projectHomepageLogicType = MakeLogicType<
export const projectHomepageLogic = kea<projectHomepageLogicType>([
path(['scenes', 'project-homepage', 'projectHomepageLogic']),
connect(() => ({
- values: [
- projectLogic,
- ['currentProjectId'],
- featureFlagLogic,
- ['featureFlags'],
- navigationLogic,
- ['mobileLayout'],
- ],
+ values: [projectLogic, ['currentProjectId'], featureFlagLogic, ['featureFlags']],
})),
actions({
@@ -112,9 +103,8 @@ export const projectHomepageLogic = kea<projectHomepageLogicType>([
selectors({
// Matches the condition that swaps in the Today rail, because Today has no way around without it.
todayHomeEnabled: [
- (s) => [s.featureFlags, s.mobileLayout],
- (featureFlags: FeatureFlagsSet, mobileLayout: boolean): boolean =>
- !!featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV] && !mobileLayout,
+ (s) => [s.featureFlags],
+ (featureFlags: FeatureFlagsSet): boolean => !!featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV],
],
maxContext: [
() => [],