: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deployments): use cloud icon and red sidebar color (#58482)
Richard Solomou64528b6e7b7d
diff --git a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsxindex e498b0b99725..548e7db96e99 100644--- a/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/defaultTree.tsx@@ -7,6 +7,7 @@ import {IconBug,IconCircleDashed,IconClock,+ IconCloud,IconCode,IconEndpoints,IconDashboard,@@ -345,6 +346,10 @@ const iconTypes: Record<FileSystemIconType, { icon: JSX.Element; iconColor?: Filexports: {icon: <IconDownload />,},+ deployments: {+ icon: <IconCloud />,+ iconColor: ['var(--color-product-deployments-light)', 'var(--color-product-deployments-dark)'],+ },}const getIconColor = (type?: string, colorOverride?: FileSystemIconColor): FileSystemIconColor => {diff --git a/frontend/src/products.json b/frontend/src/products.jsonindex f4ce046aa386..c485e4500cc8 100644--- a/frontend/src/products.json+++ b/frontend/src/products.json@@ -42,7 +42,13 @@"type": null,"intents": ["data_warehouse", "data_warehouse_saved_queries"]},- { "path": "Deployments", "category": "Tools", "iconType": null, "type": "live", "intents": ["deployments"] },+ {+ "path": "Deployments",+ "category": "Tools",+ "iconType": null,+ "type": "deployments",+ "intents": ["deployments"]+ },{"path": "Early access features","category": "Features",diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 7a2b00993231..925ac2a2bf7f 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -377,7 +377,7 @@ export const productConfiguration: Record<string, any> = {Deployments: {projectBased: true,name: 'Deployments',- iconType: 'live',+ iconType: 'deployments',description: 'Build and ship your project site straight from PostHog.',},Deployment: { projectBased: true, name: 'Deployment' },@@ -1432,9 +1432,12 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [intents: [ProductKey.DEPLOYMENTS],category: ProductItemCategory.TOOLS,href: urls.deployments(),- type: 'live',- iconType: 'live' as FileSystemIconType,- iconColor: ['var(--color-text-3000)'] as FileSystemIconColor,+ type: 'deployments',+ iconType: 'deployments' as FileSystemIconType,+ iconColor: [+ 'var(--color-product-deployments-light)',+ 'var(--color-product-deployments-dark)',+ ] as FileSystemIconColor,sceneKey: 'Deployments',sceneKeys: ['Deployments', 'Deployment'],flag: FEATURE_FLAGS.DEPLOYMENTS,diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.jsonindex cd5146a7d42a..f9720c3f9477 100644--- a/frontend/src/queries/schema.json+++ b/frontend/src/queries/schema.json@@ -18956,7 +18956,8 @@"llm_playground","llm_prompts","llm_clusters",- "exports"+ "exports",+ "deployments"],"type": "string"},diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.tsindex 996cc88becb3..d642ba63c01d 100644--- a/frontend/src/queries/schema/schema-general.ts+++ b/frontend/src/queries/schema/schema-general.ts@@ -3233,6 +3233,7 @@ export type FileSystemIconType =| 'llm_prompts'| 'llm_clusters'| 'exports'+ | 'deployments'export interface FileSystemImport extends Omit<FileSystemEntry, 'id'> {id?: stringdiff --git a/frontend/src/styles/base.scss b/frontend/src/styles/base.scssindex 325265c7028c..fbbb9dd87883 100644--- a/frontend/src/styles/base.scss+++ b/frontend/src/styles/base.scss@@ -348,6 +348,8 @@--color-product-early-access-features-dark: rgb(53 213 189);--color-product-support-light: rgb(243 84 84);--color-product-support-dark: rgb(247 165 1);+ --color-product-deployments-light: rgb(220 38 38);+ --color-product-deployments-dark: rgb(248 113 113);// Insight colors--color-insight-funnel-light: rgb(47 128 250);diff --git a/posthog/schema.py b/posthog/schema.pyindex 7450aff94c05..31ea77df530d 100644--- a/posthog/schema.py+++ b/posthog/schema.py@@ -2289,6 +2289,7 @@ class FileSystemIconType(StrEnum):LLM_PROMPTS = "llm_prompts"LLM_CLUSTERS = "llm_clusters"EXPORTS = "exports"+ DEPLOYMENTS = "deployments"class FileSystemViewLogEntry(BaseModel):diff --git a/products/deployments/frontend/Deployments.tsx b/products/deployments/frontend/Deployments.tsxindex 98f397b7449e..ecb573716467 100644--- a/products/deployments/frontend/Deployments.tsx+++ b/products/deployments/frontend/Deployments.tsx@@ -26,7 +26,7 @@ export function Deployments({ tabId }: { tabId?: string } = {}): JSX.Element {name={sceneConfigurations[Scene.Deployments].name}description={sceneConfigurations[Scene.Deployments].description}resourceType={{- type: sceneConfigurations[Scene.Deployments].iconType || 'live',+ type: sceneConfigurations[Scene.Deployments].iconType || 'deployments',}}/>{/* TODO(deployments-v1): render <CurrentDeploymentCard/> with the team's currently-serving deployment. */}diff --git a/products/deployments/manifest.tsx b/products/deployments/manifest.tsxindex 2c0a51710afc..cf399c036ccd 100644--- a/products/deployments/manifest.tsx+++ b/products/deployments/manifest.tsx@@ -12,7 +12,7 @@ export const manifest: ProductManifest = {import: () => import('./frontend/Deployments'),projectBased: true,name: 'Deployments',- iconType: 'live',+ iconType: 'deployments',description: 'Build and ship your project site straight from PostHog.',},Deployment: {@@ -37,9 +37,12 @@ export const manifest: ProductManifest = {intents: [ProductKey.DEPLOYMENTS],category: ProductItemCategory.TOOLS,href: urls.deployments(),- type: 'live',- iconType: 'live' as FileSystemIconType,- iconColor: ['var(--color-text-3000)'] as FileSystemIconColor,+ type: 'deployments',+ iconType: 'deployments' as FileSystemIconType,+ iconColor: [+ 'var(--color-product-deployments-light)',+ 'var(--color-product-deployments-dark)',+ ] as FileSystemIconColor,sceneKey: 'Deployments',sceneKeys: ['Deployments', 'Deployment'],flag: FEATURE_FLAGS.DEPLOYMENTS,