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(tasks): remove feature flag gating for /tasks routes (#65386)

Georgiy Tarasov1100dd599e05
diff --git a/products/tasks/frontend/TaskDetailScene.tsx b/products/tasks/frontend/TaskDetailScene.tsx
index 940bfcb4d450..30704bf0718a 100644
--- a/products/tasks/frontend/TaskDetailScene.tsx
+++ b/products/tasks/frontend/TaskDetailScene.tsx
@@ -1,6 +1,4 @@
import { AllowTrainingCallout } from 'lib/components/AllowTrainingCallout/AllowTrainingCallout'
-import { NotFound } from 'lib/components/NotFound'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { SceneExport } from 'scenes/sceneTypes'
import { ProductKey } from '~/queries/schema/schema-general'
@@ -18,12 +16,6 @@ export const scene: SceneExport<TaskDetailSceneLogicProps> = {
}
export function TaskDetailScene({ taskId }: TaskDetailSceneLogicProps): JSX.Element {
- const isEnabled = useFeatureFlag('TASKS')
-
- if (!isEnabled) {
- return <NotFound object="Tasks" caption="This feature is not enabled for your project." />
- }
-
return (
<>
<AllowTrainingCallout featureName="PostHog Code" />
diff --git a/products/tasks/frontend/TaskTracker.tsx b/products/tasks/frontend/TaskTracker.tsx
index a9d50dd3b34c..51c11c51d319 100644
--- a/products/tasks/frontend/TaskTracker.tsx
+++ b/products/tasks/frontend/TaskTracker.tsx
@@ -1,6 +1,4 @@
import { AllowTrainingCallout } from 'lib/components/AllowTrainingCallout/AllowTrainingCallout'
-import { NotFound } from 'lib/components/NotFound'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
@@ -18,12 +16,6 @@ export const scene: SceneExport = {
}
export function TaskTracker(): JSX.Element {
- const isEnabled = useFeatureFlag('TASKS')
-
- if (!isEnabled) {
- return <NotFound object="Tasks" caption="This feature is not enabled for your project." />
- }
-
return (
<SceneContent>
<SceneTitleSection