diff --git a/apps/code/src/renderer/features/inbox/components/InboxEmptyStates.tsx b/apps/code/src/renderer/features/inbox/components/InboxEmptyStates.tsx index 1aeddadf3..9af229ba4 100644 --- a/apps/code/src/renderer/features/inbox/components/InboxEmptyStates.tsx +++ b/apps/code/src/renderer/features/inbox/components/InboxEmptyStates.tsx @@ -1,13 +1,8 @@ import { AnimatedEllipsis } from "@features/inbox/components/utils/AnimatedEllipsis"; import { SOURCE_PRODUCT_META } from "@features/inbox/components/utils/source-product-icons"; -import { CheckCircleIcon } from "@phosphor-icons/react"; import { Box, Button, Flex, Text, Tooltip } from "@radix-ui/themes"; -import builderHog from "@renderer/assets/images/hedgehogs/builder-hog-03.png"; import explorerHog from "@renderer/assets/images/hedgehogs/explorer-hog.png"; import mailHog from "@renderer/assets/images/mail-hog.png"; -import { ANALYTICS_EVENTS } from "@shared/types/analytics"; -import { track } from "@utils/analytics"; -import { useState } from "react"; // ── Full-width empty states ───────────────────────────────────────────────── @@ -72,78 +67,6 @@ export function WarmingUpPane({ ); } -export function GatedDueToScalePane() { - const [registered, setRegistered] = useState(false); - - const handleRegisterInterest = () => { - track(ANALYTICS_EVENTS.INBOX_INTEREST_REGISTERED); - setRegistered(true); - }; - - return ( - - - - - - We're rolling out self-driving gradually - - - - - - Inbox watches your sessions, issues, and evals around the clock, and - surfaces ready-to-run fixes. -
- - We're scaling it up carefully so every report stays high-signal. - -
-
- - {registered ? ( - - - - Got it — we'll let you know. - - - ) : ( - - )} -
-
- ); -} - export function SelectReportPane() { return ( { - if (!isGatedDueToScale) { - gatedViewedFiredRef.current = false; - return; - } - if (gatedViewedFiredRef.current) return; - gatedViewedFiredRef.current = true; - track(ANALYTICS_EVENTS.INBOX_VIEWED, { - report_count: 0, - total_count: 0, - ready_count: 0, - has_active_filters: false, - source_product_filter: [], - status_filter_count: 0, - is_empty: true, - is_gated_due_to_scale: true, - priority_p0_count: 0, - priority_p1_count: 0, - priority_p2_count: 0, - priority_p3_count: 0, - priority_p4_count: 0, - priority_unknown_count: 0, - actionability_immediately_actionable_count: 0, - actionability_requires_human_input_count: 0, - actionability_not_actionable_count: 0, - actionability_unknown_count: 0, - }); - }, [isGatedDueToScale]); - const headerContent = useMemo( () => ( @@ -65,7 +24,7 @@ export function InboxView() { return (
- {isGatedDueToScale ? : } +
); } diff --git a/apps/code/src/shared/constants.ts b/apps/code/src/shared/constants.ts index 1cdb2c9f3..bbf2799ec 100644 --- a/apps/code/src/shared/constants.ts +++ b/apps/code/src/shared/constants.ts @@ -1,5 +1,4 @@ export const BILLING_FLAG = "posthog-code-billing"; -export const INBOX_GATED_DUE_TO_SCALE_FLAG = "inbox-gated-due-to-scale"; export const EXPERIMENT_SUGGESTIONS_FLAG = "posthog-code-experiment-suggestions"; export const SYNC_CLOUD_TASKS_FLAG = "posthog-code-sync-cloud-tasks"; diff --git a/apps/code/src/shared/types/analytics.ts b/apps/code/src/shared/types/analytics.ts index b2bd3554c..eb78ac3be 100644 --- a/apps/code/src/shared/types/analytics.ts +++ b/apps/code/src/shared/types/analytics.ts @@ -523,8 +523,6 @@ export interface InboxViewedProperties { source_product_filter: string[]; status_filter_count: number; is_empty: boolean; - /** True when the inbox is scale-gated (GatedDueToScalePane shown, data not loaded). */ - is_gated_due_to_scale: boolean; /** Breakdown of the visible report_count by priority (P0–P4, or "unknown"). */ priority_p0_count: number; priority_p1_count: number; @@ -776,7 +774,6 @@ export const ANALYTICS_EVENTS = { CLOUD_STREAM_DISCONNECTED: "Cloud stream disconnected", // Inbox events - INBOX_INTEREST_REGISTERED: "Inbox interest registered", INBOX_VIEWED: "Inbox viewed", INBOX_REPORT_OPENED: "Inbox report opened", INBOX_REPORT_CLOSED: "Inbox report closed", @@ -899,7 +896,6 @@ export type EventPropertyMap = { [ANALYTICS_EVENTS.CLOUD_STREAM_DISCONNECTED]: CloudStreamDisconnectedProperties; // Inbox events - [ANALYTICS_EVENTS.INBOX_INTEREST_REGISTERED]: never; [ANALYTICS_EVENTS.INBOX_VIEWED]: InboxViewedProperties; [ANALYTICS_EVENTS.INBOX_REPORT_OPENED]: InboxReportOpenedProperties; [ANALYTICS_EVENTS.INBOX_REPORT_CLOSED]: InboxReportClosedProperties; diff --git a/apps/mobile/src/features/inbox/utils.test.ts b/apps/mobile/src/features/inbox/utils.test.ts index 9663998ec..4fc121bb1 100644 --- a/apps/mobile/src/features/inbox/utils.test.ts +++ b/apps/mobile/src/features/inbox/utils.test.ts @@ -75,7 +75,6 @@ describe("buildInboxViewedProperties", () => { ready_count: 0, has_active_filters: false, is_empty: true, - is_gated_due_to_scale: false, priority_p0_count: 0, priority_p1_count: 0, priority_p2_count: 0, diff --git a/apps/mobile/src/features/inbox/utils.ts b/apps/mobile/src/features/inbox/utils.ts index cfcd8aa37..ab5bf3eb9 100644 --- a/apps/mobile/src/features/inbox/utils.ts +++ b/apps/mobile/src/features/inbox/utils.ts @@ -237,7 +237,6 @@ export function buildInboxViewedProperties( source_product_filter: filters.sourceProductFilter, status_filter_count: filters.statusFilter.length, is_empty: totalCount === 0, - is_gated_due_to_scale: false, priority_p0_count: priorityCounts.P0, priority_p1_count: priorityCounts.P1, priority_p2_count: priorityCounts.P2, diff --git a/apps/mobile/src/lib/analytics.ts b/apps/mobile/src/lib/analytics.ts index 45a149bcb..b8de5458a 100644 --- a/apps/mobile/src/lib/analytics.ts +++ b/apps/mobile/src/lib/analytics.ts @@ -62,7 +62,6 @@ export interface InboxViewedProperties { source_product_filter: string[]; status_filter_count: number; is_empty: boolean; - is_gated_due_to_scale: boolean; priority_p0_count: number; priority_p1_count: number; priority_p2_count: number;