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.

chore(dashboards): remove stopped inline tile experiment (#86567)

Matt Pua81549a49173c
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index ec955f5c5559..3b8db5d5a012 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -179,7 +179,6 @@ export const FEATURE_FLAGS = {
// UX flags, used to control the UX of the app
CMD_K_NAV_EXPERIMENT: 'cmd-k-nav-experiment', // owner: @rafaeelaudibert #team-platform-ux multivariate=control,search-bar,footer-hint,tools-row,footer-callout - surfaces the Cmd+K command menu more prominently in the left nav: search-bar = full-width search field below the nav header, footer-hint = extra Search row in the nav footer, tools-row = Search row after the Tools item in the Project section, footer-callout = dismissible callout card in the nav ad slot for users a few days after signup
CREATE_BUTTON_NAV_EXPERIMENT: 'create-button-nav-experiment', // owner: #team-platform-ux multivariate=control,test — adds a Create dropdown to the top of the Browse tab in the left nav
- DASHBOARD_INLINE_TILE_INSERTION_EXPERIMENT: 'dashboard-inline-tile-insertion-experiment', // owner: #team-analytics-platform multivariate=control,test — tests whether inline dashboard insertion increases completed tile additions
FEATURE_FLAG_DISABLE_AND_ARCHIVE_EXPERIMENT: 'feature-flag-disable-and-archive-experiment', // owner: #team-feature-flags multivariate=control,test, adds a destructive "Disable and archive" option alongside "Disable only" in the disable-flag confirmation dialog, control keeps the plain disable confirmation
INBOX_SELF_DRIVING_EMPTY_STATE: 'inbox-self-driving-empty-state',
STARRED_REORDER: 'starred-reorder', // owner: #team-platform-ux, drag-and-drop reorder of starred shortcuts in the side panel
@@ -288,7 +287,6 @@ export const FEATURE_FLAGS = {
DASHBOARD_AUTO_PREVIEW_LIMIT: 'dashboard-auto-preview-limit', // owner: @pauldambra #team-product-analytics
DASHBOARD_CUSTOMIZATION: 'dashboard-customization', // owner: @MattPua #team-analytics-platform
DASHBOARD_EXPORT_NUDGE: 'dashboard-export-nudge', // owner: #team-analytics-platform multivariate=control,test, nudges people who just exported a dashboard toward a recurring subscription
- DASHBOARD_INLINE_TILE_INSERTION: 'dashboard-inline-tile-insertion', // owner: @MattPua #team-analytics-platform
DASHBOARD_LAYOUT_DISCARD_PROMPT: 'dashboard-layout-discard-prompt', // owner: @cory.s #team-analytics-platform
DASHBOARD_TEMPLATE_CHOOSER_EXPERIMENT: 'dashboard-template-chooser-experiment', // owner: @mattp #team-analytics-platform multivariate=control,simple,new
DASHBOARD_WIDGETS: 'dashboard-widgets', // owner: @mattp #team-analytics-platform
diff --git a/frontend/src/scenes/dashboard/DashboardItems.tsx b/frontend/src/scenes/dashboard/DashboardItems.tsx
index c5eb5d60bbbe..6613ee74769e 100644
--- a/frontend/src/scenes/dashboard/DashboardItems.tsx
+++ b/frontend/src/scenes/dashboard/DashboardItems.tsx
@@ -98,7 +98,6 @@ export function DashboardItems({ showCreateAnomalyAlertButton }: DashboardItemsP
dataColorThemeId,
canEditDashboard,
dashboardWidgetsEnabled,
- inlineTileInsertionEnabled,
widgetResultsByTileId,
widgetRefreshStatus,
scrollToBottomSignal,
@@ -703,7 +702,7 @@ export function DashboardItems({ showCreateAnomalyAlertButton }: DashboardItemsP
}
})}
</ReactGridLayout>
- {isEditablePlacement && inlineTileInsertionEnabled && (
+ {isEditablePlacement && (
<InsertTileOverlay
layout={layouts['sm']}
gridWidth={gridWidth}
diff --git a/frontend/src/scenes/dashboard/__snapshots__/DashboardItems.test.tsx.snap b/frontend/src/scenes/dashboard/__snapshots__/DashboardItems.test.tsx.snap
index 334a99f63a71..bbb4f120f4ff 100644
--- a/frontend/src/scenes/dashboard/__snapshots__/DashboardItems.test.tsx.snap
+++ b/frontend/src/scenes/dashboard/__snapshots__/DashboardItems.test.tsx.snap
@@ -26,6 +26,10 @@ exports[`DashboardItems matches snapshot in edit mode with layout zoom enabled 1
data-tile-id="1"
/>
</div>
+ <div
+ class="absolute inset-0 pointer-events-none"
+ style="z-index: 6;"
+ />
</div>
</div>
`;
diff --git a/frontend/src/scenes/dashboard/dashboardLogic.test.ts b/frontend/src/scenes/dashboard/dashboardLogic.test.ts
index ccc90d38cc0a..2ee939cf55b1 100644
--- a/frontend/src/scenes/dashboard/dashboardLogic.test.ts
+++ b/frontend/src/scenes/dashboard/dashboardLogic.test.ts
@@ -326,23 +326,6 @@ describe('dashboardLogic', () => {
})
})
- describe('inline tile insertion experiment', () => {
- beforeEach(() => {
- logic = dashboardLogic({ id: 5 })
- logic.mount()
- })
-
- it.each([
- ['control', false],
- ['test', true],
- ])('uses the %s variant', async (variant, expectedEnabled) => {
- const experimentFlag = FEATURE_FLAGS.DASHBOARD_INLINE_TILE_INSERTION_EXPERIMENT
- await expectLogic(logic, () => {
- featureFlagLogic.actions.setFeatureFlags([experimentFlag], { [experimentFlag]: variant })
- }).toMatchValues({ inlineTileInsertionEnabled: expectedEnabled })
- })
- })
-
describe('tile layouts', () => {
beforeEach(() => {
logic = dashboardLogic({ id: 5 })
diff --git a/frontend/src/scenes/dashboard/dashboardLogic.tsx b/frontend/src/scenes/dashboard/dashboardLogic.tsx
index 69ecae43a302..ddd504b663c7 100644
--- a/frontend/src/scenes/dashboard/dashboardLogic.tsx
+++ b/frontend/src/scenes/dashboard/dashboardLogic.tsx
@@ -310,7 +310,6 @@ export interface dashboardLogicValues {
hasVariables: boolean
highlightedInsightId: any
initialVariablesLoaded: boolean
- inlineTileInsertionEnabled: boolean
insightTiles: DashboardTile<QueryBasedInsightModel<Node<Record<string, any>>>>[]
intermittentFilters: DashboardFilter
isPinned: boolean
@@ -1074,7 +1073,6 @@ export interface dashboardLogicMeta {
tiles: DashboardTile<QueryBasedInsightModel<Node<Record<string, any>>>>[],
placement: DashboardPlacement
) => boolean
- inlineTileInsertionEnabled: (featureFlags: FeatureFlagsSet) => boolean
insightTiles: (
tiles: DashboardTile<QueryBasedInsightModel<Node<Record<string, any>>>>[]
) => DashboardTile<QueryBasedInsightModel<Node<Record<string, any>>>>[]
@@ -2766,19 +2764,6 @@ export const dashboardLogic = kea<dashboardLogicType>([
return !!featureFlags[FEATURE_FLAGS.DASHBOARD_WIDGETS]
},
],
- inlineTileInsertionEnabled: [
- (s) => [s.featureFlags],
- (featureFlags: import('lib/logic/featureFlagLogic').FeatureFlagsSet): boolean => {
- const experimentVariant = featureFlags[FEATURE_FLAGS.DASHBOARD_INLINE_TILE_INSERTION_EXPERIMENT]
- if (experimentVariant === 'control') {
- return false
- }
- if (experimentVariant === 'test') {
- return true
- }
- return !!featureFlags[FEATURE_FLAGS.DASHBOARD_INLINE_TILE_INSERTION]
- },
- ],
insightTiles: [
(s) => [s.tiles],
(