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(product-tours): gate the file-system type on the product flag (#129675)

ruby childsbb568a65f6f9
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 5270cab0dbc0..5601298d82b3 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -2180,6 +2180,7 @@ export const fileSystemTypes = {
listHref: () => urls.productTours(),
iconColor: ['var(--color-product-product-tours-light)', 'var(--color-product-product-tours-dark)'],
filterKey: 'product_tour',
+ flag: FEATURE_FLAGS.PRODUCT_TOURS,
},
session_recording_playlist: {
name: 'Replay playlist',
diff --git a/products/product_tours/manifest.tsx b/products/product_tours/manifest.tsx
index ac187dbe81fd..0d09bd9d82dd 100644
--- a/products/product_tours/manifest.tsx
+++ b/products/product_tours/manifest.tsx
@@ -22,6 +22,10 @@ export const manifest: ProductManifest = {
listHref: () => urls.productTours(),
iconColor: ['var(--color-product-product-tours-light)', 'var(--color-product-product-tours-dark)'],
filterKey: 'product_tour',
+ // Gate the type on the same flag as the ProductTours scene, which renders a 404 without it.
+ // Without this, Library object-type rows and tree type filters offer "Product tours" to
+ // everyone and link into that 404.
+ flag: FEATURE_FLAGS.PRODUCT_TOURS,
},
},
treeItemsNew: [