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(insights): remove hide weekends migration banner (#85713)

Sam Pennington1660f2a391b8
diff --git a/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx b/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
index 5cb4f2bd4539..af626ee6827c 100644
--- a/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
+++ b/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
@@ -10,7 +10,6 @@ import { dashboardLogic } from 'scenes/dashboard/dashboardLogic'
import { Funnel } from 'scenes/funnels/Funnel'
import { FunnelCanvasLabel } from 'scenes/funnels/FunnelCanvasLabel'
import { funnelDataLogic } from 'scenes/funnels/funnelDataLogic'
-import { HideWeekendsDeprecationNotice } from 'scenes/insights/EditorFilters/HideWeekendsDeprecationNotice'
import {
BoxPlotMissingPropertyState,
FunnelDataWarehouseStepIncompleteState,
@@ -512,7 +511,6 @@ export function InsightVizDisplay({
data-attr="insights-graph"
>
{disableHeader ? null : <InsightDisplayConfig />}
- {!embedded && <HideWeekendsDeprecationNotice insightProps={insightProps} />}
{showingResults && (
<>
{!embedded &&
diff --git a/frontend/src/scenes/insights/EditorFilters/HideWeekendsDeprecationNotice.tsx b/frontend/src/scenes/insights/EditorFilters/HideWeekendsDeprecationNotice.tsx
deleted file mode 100644
index be65040632e0..000000000000
--- a/frontend/src/scenes/insights/EditorFilters/HideWeekendsDeprecationNotice.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { useValues } from 'kea'
-
-import { LemonBanner } from '@posthog/lemon-ui'
-
-import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'
-
-import { EditorFilterProps } from '~/types'
-
-export function HideWeekendsDeprecationNotice({ insightProps }: EditorFilterProps): JSX.Element | null {
- const { trendsFilter } = useValues(insightVizDataLogic(insightProps))
-
- if (!trendsFilter?.hideWeekends) {
- return null
- }
-
- return (
- <LemonBanner type="info" dismissKey="hide-weekends-deprecation-notice" className="m-2">
- The "Hide weekend data" option is being replaced by day-of-week exclusions in the date filter. They work a
- little differently: hiding weekends keeps weekend data in the calculation, excluding them leaves it out, so
- some numbers can differ.
- </LemonBanner>
- )
-}