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(navigation): remove pinnedByDefault sidebar auto-pin (#73020)

Rafael Audibert86fc21f3faf1
diff --git a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx
index 999e77eb63ab..1c63567eefc3 100644
--- a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx
+++ b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx
@@ -1569,19 +1569,6 @@ export const projectTreeDataLogic = kea<projectTreeDataLogicType>([
})
.filter((p): p is FileSystemImport => p !== null)
- // Auto-pin items the manifest marks `pinnedByDefault` once their flag is on.
- for (const product of allProducts) {
- if (
- product.pinnedByDefault &&
- product.flag &&
- (featureFlags as Record<string, boolean>)[product.flag] &&
- !selectedProductPaths.has(product.path)
- ) {
- selectedProductPaths.add(product.path)
- selectedProducts.push(product)
- }
- }
-
const imports = selectedProducts
.filter((f) => !f.flag || (featureFlags as Record<string, boolean>)[f.flag])
.map((i) => ({
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 5f22249e9f69..a4d17a965b8c 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -1852,7 +1852,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
href: urls.engineeringAnalytics(),
flag: FEATURE_FLAGS.ENGINEERING_ANALYTICS,
tags: ['alpha'],
- pinnedByDefault: true,
sceneKey: 'EngineeringAnalytics',
sceneKeys: [
'EngineeringAnalytics',
@@ -2177,7 +2176,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
href: urls.replayVision(),
tags: ['beta'],
flag: FEATURE_FLAGS.REPLAY_VISION,
- pinnedByDefault: true,
sceneKey: 'ReplayVision',
sceneKeys: ['ReplayVision', 'ReplayVisionScanner'],
},
@@ -2287,7 +2285,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
href: urls.taskTracker(),
sceneKey: 'TaskTracker',
flag: FEATURE_FLAGS.TASKS,
- pinnedByDefault: true,
sceneKeys: ['TaskTracker'],
},
{
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 45c565fdfaf5..91e355a0632b 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -25514,10 +25514,6 @@
"description": "Object's name and folder",
"type": "string"
},
- "pinnedByDefault": {
- "description": "Auto-include in the user's pinned sidebar when `flag` is on, even without an explicit UserProductList row",
- "type": "boolean"
- },
"protocol": {
"description": "Protocol of the item, defaults to \"project://\"",
"type": "string"
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index 700f707c5202..e22e5d44aea2 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -4321,8 +4321,6 @@ export interface FileSystemImport extends Omit<FileSystemEntry, 'id'> {
reasonText?: string | null
/** Display label override — when set, shown in the nav instead of the last segment of `path` */
displayLabel?: string
- /** Auto-include in the user's pinned sidebar when `flag` is on, even without an explicit UserProductList row */
- pinnedByDefault?: boolean
}
export interface FileSystemViewLogEntry {
diff --git a/posthog/schema.py b/posthog/schema.py
index d395ff88b63b..ecb733c1f9e4 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -4921,12 +4921,6 @@ class FileSystemImport(BaseModel):
last_viewed_at: str | None = Field(default=None, description="Timestamp when the file system entry was last viewed")
meta: dict[str, Any] | None = Field(default=None, description="Metadata")
path: str = Field(..., description="Object's name and folder")
- pinnedByDefault: bool | None = Field(
- default=None,
- description=(
- "Auto-include in the user's pinned sidebar when `flag` is on, even without an explicit UserProductList row"
- ),
- )
protocol: str | None = Field(default=None, description='Protocol of the item, defaults to "project://"')
reason: UserProductListReason | None = Field(
default=None,
diff --git a/products/engineering_analytics/manifest.tsx b/products/engineering_analytics/manifest.tsx
index 299f8e6efdbd..308a8b7f87ee 100644
--- a/products/engineering_analytics/manifest.tsx
+++ b/products/engineering_analytics/manifest.tsx
@@ -121,7 +121,6 @@ export const manifest: ProductManifest = {
href: urls.engineeringAnalytics(),
flag: FEATURE_FLAGS.ENGINEERING_ANALYTICS,
tags: ['alpha'],
- pinnedByDefault: true,
sceneKey: 'EngineeringAnalytics',
},
],
diff --git a/products/posthog_ai/manifest.tsx b/products/posthog_ai/manifest.tsx
index 669c2125177e..c0fd8c7934e4 100644
--- a/products/posthog_ai/manifest.tsx
+++ b/products/posthog_ai/manifest.tsx
@@ -53,9 +53,6 @@ export const manifest: ProductManifest = {
href: urls.taskTracker(),
sceneKey: 'TaskTracker',
flag: FEATURE_FLAGS.TASKS,
- // Auto-pin into the Tools sidebar for anyone with the flag, so tasks
- // reached via the Inbox "discuss" flow are findable without typing /tasks.
- pinnedByDefault: true,
},
],
}
diff --git a/products/replay_vision/manifest.tsx b/products/replay_vision/manifest.tsx
index 854ab67a3754..7c4b89a35f34 100644
--- a/products/replay_vision/manifest.tsx
+++ b/products/replay_vision/manifest.tsx
@@ -111,7 +111,6 @@ export const manifest: ProductManifest = {
href: urls.replayVision(),
tags: ['beta'],
flag: FEATURE_FLAGS.REPLAY_VISION,
- pinnedByDefault: true,
sceneKey: 'ReplayVision',
sceneKeys: ['ReplayVision', 'ReplayVisionScanner'],
},