: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
feat(dashboards): add saved views badge (#94252)
Matt Puaa85cbc2dc74e
diff --git a/products/dashboards/frontend/saved-views/SavedDashboardViewsPicker.tsx b/products/dashboards/frontend/saved-views/SavedDashboardViewsPicker.tsxindex a2eb860cbee3..be3c689761fa 100644--- a/products/dashboards/frontend/saved-views/SavedDashboardViewsPicker.tsx+++ b/products/dashboards/frontend/saved-views/SavedDashboardViewsPicker.tsx@@ -1,7 +1,7 @@import { useState } from 'react'import { IconCheck, IconChevronDown, IconPeople, IconPlus, IconUser } from '@posthog/icons'-import { LemonButton, LemonSkeleton, Popover } from '@posthog/lemon-ui'+import { LemonButton, LemonSkeleton, LemonTag, Popover } from '@posthog/lemon-ui'import { LemonTabs } from 'lib/lemon-ui/LemonTabs'@@ -253,6 +253,11 @@ export function SavedDashboardViewsPicker({><span className="flex items-center gap-1"><span>{activeSavedView?.name || 'Saved views'}</span>+ {!activeSavedView && (+ <LemonTag type="highlight" size="small">+ New+ </LemonTag>+ )}{canEdit && activeSavedViewHasUnsavedChanges && <span className="text-warning">Unsaved</span>}</span></LemonButton>