Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(account): label plans by subscription_plan, not cloud_subscribed

Louis Beaumontc2d35c4fda8e
diff --git a/apps/screenpipe-app-tauri/components/settings/account-section.tsx b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
index b1aacd038..6b467747a 100644
--- a/apps/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -17,6 +17,7 @@ import {
import { toast } from "@/components/ui/use-toast";
import { open as openUrl } from "@tauri-apps/plugin-shell";
import { commands } from "@/lib/utils/tauri";
+import { planDisplayName } from "@/lib/app-entitlement";
import { Card } from "../ui/card";
import { Switch } from "@/components/ui/switch";
import { Label } from "@/components/ui/label";
@@ -158,7 +159,7 @@ export function AccountSection() {
});
toast({
title: "subscription activated",
- description: "welcome to screenpipe pro!",
+ description: "welcome to screenpipe business!",
});
return; // stop polling
}
@@ -197,6 +198,9 @@ export function AccountSection() {
};
}, []);
+ const subscriptionPlan = settings.user?.subscription_plan ?? null;
+ const hasNamedPlan = !!subscriptionPlan && subscriptionPlan !== "none";
+
return (
<div className="space-y-6">
{/* Header + login status */}
@@ -252,7 +256,7 @@ export function AccountSection() {
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-2">
<Sparkles className="h-5 w-5 text-primary" />
- <h3 className="text-lg font-semibold">Screenpipe Pro</h3>
+ <h3 className="text-lg font-semibold">Screenpipe {hasNamedPlan ? planDisplayName(subscriptionPlan) : "Business"}</h3>
<span className="text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full font-medium">active</span>
</div>
</div>
@@ -494,7 +498,7 @@ export function AccountSection() {
<details className="group">
<summary className="flex items-center gap-2 cursor-pointer text-sm text-muted-foreground hover:text-foreground transition-colors">
<Sparkles className="h-4 w-4" />
- Optional: upgrade to Screenpipe Pro
+ Optional: upgrade to Screenpipe Business
<span className="text-xs ml-auto group-open:hidden">show details</span>
</summary>
<Card className="mt-3 p-5">
@@ -502,7 +506,7 @@ export function AccountSection() {
<div>
<div className="flex items-center gap-2 mb-1">
<Sparkles className="h-5 w-5" />
- <h3 className="text-lg font-semibold">Screenpipe Pro</h3>
+ <h3 className="text-lg font-semibold">Screenpipe Business</h3>
</div>
<div className="flex items-baseline gap-2">
<span className="text-2xl font-bold">{annual ? "$42" : "$50"}</span>
@@ -546,7 +550,7 @@ export function AccountSection() {
size="lg"
onClick={handleCheckout}
>
- login & upgrade to pro
+ login & upgrade to business
<ExternalLinkIcon className="w-4 h-4 ml-2" />
</Button>
</Card>
@@ -568,16 +572,35 @@ export function AccountSection() {
className="text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full font-medium flex items-center gap-1 hover:bg-primary/20 transition-colors cursor-pointer"
>
<Lock className="h-3 w-3" />
- Pro
+ Business
</button>
</div>
</div>
</Card>
</>
) : (
- /* Logged in, free tier: show upsell */
+ /* Logged in, no cloud (Basic plan or free): show active plan + Business upsell */
<>
- {/* Pro plan card with animated border */}
+ {/* Active plan badge — Basic/Lifetime owners are paying, never "free" */}
+ {hasNamedPlan && (
+ <Card className="p-5">
+ <div className="flex items-center gap-2">
+ <Sparkles className="h-5 w-5 text-primary" />
+ <h3 className="text-lg font-semibold">
+ Screenpipe {planDisplayName(subscriptionPlan)}
+ </h3>
+ <span className="text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full font-medium">
+ active
+ </span>
+ </div>
+ <p className="text-sm text-muted-foreground mt-2">
+ local capture, search &amp; timeline. add cloud sync, cloud AI &amp; 50+
+ integrations with Business below.
+ </p>
+ </Card>
+ )}
+
+ {/* Business plan card with animated border */}
<div className="group relative rounded-lg p-[1px] overflow-hidden">
{/* Animated spinning border — oversized rotated square with conic gradient */}
<div
@@ -592,7 +615,7 @@ export function AccountSection() {
<div>
<div className="flex items-center gap-2 mb-1">
<Sparkles className="h-5 w-5" />
- <h3 className="text-lg font-semibold">Screenpipe Pro</h3>
+ <h3 className="text-lg font-semibold">Screenpipe Business</h3>
</div>
<div className="flex items-baseline gap-2">
<span className="text-2xl font-bold">{annual ? "$42" : "$50"}</span>
@@ -636,14 +659,14 @@ export function AccountSection() {
size="lg"
onClick={handleCheckout}
>
- upgrade to pro
+ upgrade to business
<ExternalLinkIcon className="w-4 h-4 ml-2" />
</Button>
</Card>
</div>
- {/* Locked pipe sync toggle — free tier */}
+ {/* Locked pipe sync toggle — gated to Business (cloud) */}
<Card className="p-4 opacity-75">
<div className="flex items-center justify-between">
<div>
@@ -659,19 +682,21 @@ export function AccountSection() {
className="text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full font-medium flex items-center gap-1 hover:bg-primary/20 transition-colors cursor-pointer"
>
<Lock className="h-3 w-3" />
- Pro
+ Business
</button>
</div>
</div>
</Card>
- {/* Current free tier - compact */}
- <div className="px-3 py-2 rounded-lg border border-border/50">
- <p className="text-xs text-muted-foreground">
- <span className="font-medium text-foreground">free tier:</span>{" "}
- local whisper transcription (uses ~2GB RAM)
- </p>
- </div>
+ {/* Free-tier note — only for true free (no plan); named plans show the active card above */}
+ {!hasNamedPlan && (
+ <div className="px-3 py-2 rounded-lg border border-border/50">
+ <p className="text-xs text-muted-foreground">
+ <span className="font-medium text-foreground">free tier:</span>{" "}
+ local whisper transcription (uses ~2GB RAM)
+ </p>
+ </div>
+ )}
{/* CSS animation for spinning border */}
<style>{`
diff --git a/apps/screenpipe-app-tauri/lib/app-entitlement.ts b/apps/screenpipe-app-tauri/lib/app-entitlement.ts
index 96b5728b9..6d340116a 100644
--- a/apps/screenpipe-app-tauri/lib/app-entitlement.ts
+++ b/apps/screenpipe-app-tauri/lib/app-entitlement.ts
@@ -187,6 +187,27 @@ export function normalizePlanLabel(plan: string | null | undefined) {
return plan.replace(/_/g, " ");
}
+// Map an internal plan id to the public pricing-page display name.
+// The pricing page (app/onboarding) renames the tiers: standard→"Basic",
+// pro→"Business", enterprise→"Enterprise". Keep this in sync with the Rust
+// `plan_display_name` in src-tauri/src/tray.rs.
+export function planDisplayName(plan: string | null | undefined): string {
+ switch ((plan || "none").toLowerCase()) {
+ case "standard":
+ return "Basic";
+ case "pro":
+ return "Business";
+ case "team":
+ return "Team";
+ case "enterprise":
+ return "Enterprise";
+ case "lifetime":
+ return "Lifetime";
+ default:
+ return "Free";
+ }
+}
+
export function normalizeAppUser(rawUser: any, token: string): AppUser {
const checkedAt = new Date().toISOString();
const rawEntitlement = asEntitlement(rawUser?.entitlement);
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
index 8a2ce3a88..58bea8604 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -46,6 +46,8 @@ struct TrayMenuData {
search_shortcut: String,
chat_shortcut: String,
cloud_subscribed: bool,
+ /// Internal plan id from /api/user (standard|pro|team|enterprise|lifetime|none).
+ subscription_plan: Option<String>,
has_permission_issue: bool,
app_ui_hidden: bool,
disable_timeline: bool,
@@ -109,6 +111,7 @@ fn prefetch_tray_menu_data(app: &AppHandle) -> TrayMenuData {
}
let cloud_subscribed = settings.user.cloud_subscribed == Some(true);
+ let subscription_plan = settings.user.subscription_plan.clone();
let disable_timeline = settings.recording.disable_timeline;
let app_ui_hidden = is_app_ui_hidden();
@@ -133,12 +136,28 @@ fn prefetch_tray_menu_data(app: &AppHandle) -> TrayMenuData {
search_shortcut,
chat_shortcut,
cloud_subscribed,
+ subscription_plan,
has_permission_issue,
app_ui_hidden,
disable_timeline,
}
}
+/// Map an internal plan id to the public pricing-page display name.
+/// The pricing page renames the tiers: standard→"Basic", pro→"Business",
+/// enterprise→"Enterprise". Keep in sync with `planDisplayName` in
+/// lib/app-entitlement.ts.
+fn plan_display_name(plan: Option<&str>) -> &'static str {
+ match plan.unwrap_or("none").to_ascii_lowercase().as_str() {
+ "standard" => "Basic",
+ "pro" => "Business",
+ "team" => "Team",
+ "enterprise" => "Enterprise",
+ "lifetime" => "Lifetime",
+ _ => "Free",
+ }
+}
+
/// Global storage for the update menu item so we can recreate the tray
/// without needing to pass the update_item through every call chain.
static UPDATE_MENU_ITEM: Lazy<Mutex<Option<MenuItem<Wry>>>> = Lazy::new(|| Mutex::new(None));
@@ -360,8 +379,10 @@ struct MenuState {
has_permission_issue: bool,
/// Device names + active status for change detection
devices: Vec<(String, bool)>,
- /// Whether user has a pro subscription (triggers menu rebuild on login)
+ /// Whether user has a cloud (Business+) subscription (triggers menu rebuild on login)
cloud_subscribed: bool,
+ /// Plan id (Free/Basic/Business/…) so plan-label changes also rebuild the menu
+ subscription_plan: Option<String>,
}
pub fn setup_tray(app: &AppHandle, update_item: Option<&tauri::menu::MenuItem<Wry>>) -> Result<()> {
@@ -688,22 +709,19 @@ fn create_dynamic_menu(
// --- Plan / usage info ---
if !data.app_ui_hidden && !is_tray_item_hidden("tray_plan") {
- let is_pro = data.cloud_subscribed;
+ let plan_label = plan_display_name(data.subscription_plan.as_deref());
+ let has_cloud = data.cloud_subscribed;
menu_builder = menu_builder.item(&PredefinedMenuItem::separator(app)?);
- if is_pro {
- menu_builder = menu_builder.item(
- &MenuItemBuilder::with_id("plan_info", "Pro plan")
- .enabled(false)
- .build(app)?,
- );
- } else {
+ menu_builder = menu_builder.item(
+ &MenuItemBuilder::with_id("plan_info", format!("{} plan", plan_label))
+ .enabled(false)
+ .build(app)?,
+ );
+ // Anyone without cloud (Free, Basic, or Lifetime-only) can move up to
+ // Business to add cloud sync, cloud AI, and integrations.
+ if !has_cloud {
menu_builder = menu_builder
- .item(
- &MenuItemBuilder::with_id("plan_info", "Free plan")
- .enabled(false)
- .build(app)?,
- )
- .item(&MenuItemBuilder::with_id("upgrade", "⚡ Upgrade to Pro").build(app)?);
+ .item(&MenuItemBuilder::with_id("upgrade", "⚡ Upgrade to Business").build(app)?);
}
}
@@ -1391,6 +1409,7 @@ async fn update_menu_if_needed(
.map(|d| (d.name.clone(), d.active))
.collect(),
cloud_subscribed: data.cloud_subscribed,
+ subscription_plan: data.subscription_plan.clone(),
};
// Compare with last state (poison-safe: run handler must not panic)