: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(inbox): stop showing legacy weight on signal cards (#65527)
Andrew Maguire4ff581041a67
diff --git a/frontend/src/scenes/inbox/components/signalCards/SignalCardShell.tsx b/frontend/src/scenes/inbox/components/signalCards/SignalCardShell.tsxindex 35a674fee4ed..f6bf6a274f4c 100644--- a/frontend/src/scenes/inbox/components/signalCards/SignalCardShell.tsx+++ b/frontend/src/scenes/inbox/components/signalCards/SignalCardShell.tsx@@ -1,5 +1,3 @@-import { LemonTag } from '@posthog/lemon-ui'-import { signalCardSourceLine } from 'lib/signals/signalCardSourceLine'import type { SignalNode } from 'scenes/debug/signals/types'@@ -7,21 +5,18 @@ import { getSourceProductMeta } from '../badges/sourceProductIcons'/*** Header shared by every signal card: the source product's brand icon, the human- * "Product · Signal type" line, an optional label/right slot, and the weight tag.+ * "Product · Signal type" line, and an optional label/right slot.*/export function SignalCardHeader({signal,label,rightSlot,- hideWeight,}: {signal: SignalNode/** Optional bold title shown after the source line (e.g. an entity name). */label?: React.ReactNode- /** Optional content rendered before the weight tag (e.g. a severity badge). */+ /** Optional content rendered at the end of the header (e.g. a severity badge). */rightSlot?: React.ReactNode- /** Hide the weight tag — weight is an internal pipeline knob, not user-facing for every source. */- hideWeight?: boolean}): JSX.Element {const meta = getSourceProductMeta(signal.source_product)const Icon = meta?.Icon@@ -44,11 +39,6 @@ export function SignalCardHeader({{label && <span className="text-xs font-medium text-primary flex-1 truncate">{label}</span>}<span className="flex-1" />{rightSlot}- {!hideWeight && (- <LemonTag size="small" className="shrink-0">- Weight: {signal.weight.toFixed(1)}- </LemonTag>- )}</div>)}@@ -58,18 +48,16 @@ export function SignalCardShell({signal,label,rightSlot,- hideWeight,children,}: {signal: SignalNodelabel?: React.ReactNoderightSlot?: React.ReactNode- hideWeight?: booleanchildren: React.ReactNode}): JSX.Element {return (<div className="border rounded p-3 bg-surface-primary">- <SignalCardHeader signal={signal} label={label} rightSlot={rightSlot} hideWeight={hideWeight} />+ <SignalCardHeader signal={signal} label={label} rightSlot={rightSlot} />{children}</div>)diff --git a/frontend/src/scenes/inbox/components/signalCards/SignalsScoutSignalCard.tsx b/frontend/src/scenes/inbox/components/signalCards/SignalsScoutSignalCard.tsxindex 66b341312d28..57776f05a334 100644--- a/frontend/src/scenes/inbox/components/signalCards/SignalsScoutSignalCard.tsx+++ b/frontend/src/scenes/inbox/components/signalCards/SignalsScoutSignalCard.tsx@@ -141,7 +141,6 @@ export function SignalsScoutSignalCard({ signal }: SignalCardProps): JSX.Element</span>}rightSlot={<SignalReportPriorityBadge priority={extra.severity} />}- hideWeight>{/* Confidence meter. */}<div className="mb-2">