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: onboarding pipe install + pro-gate OAuth connections

Louis Beaumont2d6237a8a36d
diff --git a/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx b/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx
index de2391888..4415586b0 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/pick-pipe.tsx
@@ -16,34 +16,34 @@ const PATHS = [
{
id: "memory",
icon: Brain,
- title: "i forget everything",
- subtitle: "daily summaries · search history · never miss a follow-up",
- pipes: ["obsidian-daily-summary", "follow-up-reminders"],
+ title: "I forget everything",
+ subtitle: "Daily summaries · search history · never miss a follow-up",
+ pipes: ["obsidian-daily-summary", "todo-list-assistant"],
notification: {
- title: "🧠 memory enabled",
- body: "screenpipe will now:\n\n- summarize your day automatically\n- remind you about things you forgot\n\nfirst summary tonight.",
+ title: "🧠 Memory enabled",
+ body: "Screenpipe will now:\n\n- Summarize your day automatically\n- Remind you about things you forgot\n\nFirst summary tonight.",
},
},
{
id: "time",
icon: Clock,
- title: "i waste too much time",
- subtitle: "automatic time tracking · meeting notes · smart reminders",
- pipes: ["toggl-time-tracker", "follow-up-reminders"],
+ title: "I waste too much time",
+ subtitle: "Automatic time tracking · meeting notes · smart reminders",
+ pipes: ["toggl-time-tracker", "todo-list-assistant"],
notification: {
- title: "⏱ time tracking enabled",
- body: "screenpipe will now:\n\n- track time across every app automatically\n- remind you about follow-ups\n\nfirst report in a few hours.",
+ title: "⏱ Time tracking enabled",
+ body: "Screenpipe will now:\n\n- Track time across every app automatically\n- Remind you about follow-ups\n\nFirst report in a few hours.",
},
},
{
id: "people",
icon: Users,
- title: "i lose track of people",
- subtitle: "remember every conversation · auto-CRM · relationship insights",
- pipes: ["personal-crm", "follow-up-reminders"],
+ title: "I lose track of people",
+ subtitle: "Remember every conversation · auto-CRM · relationship insights",
+ pipes: ["personal-crm", "todo-list-assistant"],
notification: {
- title: "👥 people tracking enabled",
- body: "screenpipe will now:\n\n- remember everyone you meet\n- track what you discussed\n- remind you to follow up\n\nfirst update in a few hours.",
+ title: "👥 People tracking enabled",
+ body: "Screenpipe will now:\n\n- Remember everyone you meet\n- Track what you discussed\n- Remind you to follow up\n\nFirst update in a few hours.",
},
},
] as const;
@@ -135,7 +135,7 @@ export default function PickPipe() {
} catch {}
} catch (err) {
console.error("failed to enable pipes:", err);
- setError("couldn't enable — try again or skip");
+ setError("Couldn't enable — try again or skip");
setPhase("choose");
setSelected(null);
}
@@ -151,8 +151,8 @@ export default function PickPipe() {
posthog.capture("onboarding_completed");
try {
- // still enable follow-up-reminders as default
- await installAndEnable("follow-up-reminders").catch(() => {});
+ // still enable todo-list-assistant as default
+ await installAndEnable("todo-list-assistant").catch(() => {});
await completeOnboarding();
} catch {}
try {
@@ -192,7 +192,7 @@ export default function PickPipe() {
>
<Loader className="w-5 h-5 animate-spin text-muted-foreground" />
<p className="font-mono text-sm text-muted-foreground">
- setting things up...
+ Setting things up...
</p>
</motion.div>
</div>
@@ -209,8 +209,8 @@ export default function PickPipe() {
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.2, duration: 0.5 }}
>
- <h2 className="font-mono text-lg font-bold lowercase text-center">
- what brings you here?
+ <h2 className="font-mono text-lg font-bold text-center">
+ What brings you here?
</h2>
<div className="flex flex-col gap-3 w-full">
@@ -230,7 +230,7 @@ export default function PickPipe() {
<Icon className="w-4 h-4 text-foreground/60 group-hover:text-foreground transition-colors" />
</div>
<div className="flex-1 min-w-0">
- <p className="font-mono text-sm font-semibold lowercase">
+ <p className="font-mono text-sm font-semibold">
{path.title}
</p>
<p className="font-mono text-[11px] text-muted-foreground mt-0.5">
@@ -265,13 +265,13 @@ export default function PickPipe() {
onClick={handleSkip}
className="font-mono text-[10px] text-muted-foreground/40 hover:text-muted-foreground transition-colors"
>
- just let me explore →
+ Just let me explore →
</motion.button>
)}
</AnimatePresence>
<p className="font-mono text-[9px] text-muted-foreground/30 text-center">
- you can add more from the pipe store anytime.
+ You can add more from the pipe store anytime.
</p>
</motion.div>
</div>
diff --git a/apps/screenpipe-app-tauri/components/post-install-connections-modal.tsx b/apps/screenpipe-app-tauri/components/post-install-connections-modal.tsx
index e6855c590..96a6964c7 100644
--- a/apps/screenpipe-app-tauri/components/post-install-connections-modal.tsx
+++ b/apps/screenpipe-app-tauri/components/post-install-connections-modal.tsx
@@ -14,8 +14,10 @@ import {
DialogFooter,
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
-import { Check, ChevronDown, ChevronRight, Loader2 } from "lucide-react";
+import { Check, ChevronDown, ChevronRight, Loader2, Lock } from "lucide-react";
import { commands } from "@/lib/utils/tauri";
+import { useSettings } from "@/lib/hooks/use-settings";
+import { openUrl } from "@tauri-apps/plugin-opener";
import {
ConnectionCredentialForm,
IntegrationIcon,
@@ -41,6 +43,8 @@ export function PostInstallConnectionsModal({
pipeName,
connections,
}: PostInstallConnectionsModalProps) {
+ const { settings } = useSettings();
+ const isPro = !!settings.user?.cloud_subscribed;
const [statuses, setStatuses] = useState<Record<string, ConnectionStatus>>({});
const [expanded, setExpanded] = useState<string | null>(null);
const [loading, setLoading] = useState(true);
@@ -234,21 +238,46 @@ export function PostInstallConnectionsModal({
{isExpanded && integration && integration.is_oauth && (
<div className="px-3 pb-3 border-t border-border pt-3">
- <Button
- size="sm"
- className="text-xs"
- disabled={status?.loading}
- onClick={() => handleOAuthConnect(connId, integration.id)}
- >
- {status?.loading ? (
- <>
- <Loader2 className="h-3 w-3 animate-spin mr-1" />
- connecting...
- </>
- ) : (
- <>connect with {integration.name}</>
- )}
- </Button>
+ {!isPro && !status?.configured ? (
+ <div className="flex flex-col gap-1.5">
+ <Button disabled size="sm" className="gap-1.5 text-xs opacity-60">
+ <Lock className="h-3 w-3" />pro required
+ </Button>
+ <button
+ onClick={async () => {
+ try {
+ const response = await fetch("https://screenpi.pe/api/subscription/checkout", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ plan: "monthly", origin: "desktop-pipe-install-gate" }),
+ });
+ const data = await response.json();
+ if (data.url) { await openUrl(data.url); return; }
+ } catch {}
+ await openUrl("https://screenpi.pe");
+ }}
+ className="text-[10px] text-muted-foreground hover:text-foreground underline"
+ >
+ upgrade to pro to connect
+ </button>
+ </div>
+ ) : (
+ <Button
+ size="sm"
+ className="text-xs"
+ disabled={status?.loading}
+ onClick={() => handleOAuthConnect(connId, integration.id)}
+ >
+ {status?.loading ? (
+ <>
+ <Loader2 className="h-3 w-3 animate-spin mr-1" />
+ connecting...
+ </>
+ ) : (
+ <>connect with {integration.name}</>
+ )}
+ </Button>
+ )}
</div>
)}
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index a74ab4665..6c362dedd 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -9,7 +9,7 @@ import { Card, CardContent } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
-import { Download, ExternalLink, Check, Loader2, Copy, Terminal, LogIn, LogOut, Send, X, HelpCircle, Search, Calendar as CalendarIcon, Eye, EyeOff } from "lucide-react";
+import { Download, ExternalLink, Check, Loader2, Copy, Terminal, Lock, LogIn, LogOut, Send, X, HelpCircle, Search, Calendar as CalendarIcon, Eye, EyeOff } from "lucide-react";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { commands } from "@/lib/utils/tauri";
import { useSettings, getStore } from "@/lib/hooks/use-settings";
@@ -989,6 +989,8 @@ function ChatGptPanel() {
// ---------------------------------------------------------------------------
function OAuthPanel({ integrationId, integrationName }: { integrationId: string; integrationName: string }) {
+ const { settings } = useSettings();
+ const isPro = !!settings.user?.cloud_subscribed;
const [status, setStatus] = useState<"idle" | "loading" | "connected">("idle");
const [displayName, setDisplayName] = useState<string | null>(null);
@@ -1032,6 +1034,29 @@ function OAuthPanel({ integrationId, integrationName }: { integrationId: string;
<Button onClick={handleDisconnect} variant="outline" size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">
<LogOut className="h-3 w-3" />disconnect
</Button>
+ ) : !isPro ? (
+ <div className="flex flex-col gap-1.5">
+ <Button disabled size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal whitespace-nowrap opacity-60">
+ <Lock className="h-3 w-3" />pro required
+ </Button>
+ <button
+ onClick={async () => {
+ try {
+ const response = await fetch("https://screenpi.pe/api/subscription/checkout", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ plan: "monthly", origin: "desktop-oauth-gate" }),
+ });
+ const data = await response.json();
+ if (data.url) { await openUrl(data.url); return; }
+ } catch {}
+ await openUrl("https://screenpi.pe");
+ }}
+ className="text-[10px] text-muted-foreground hover:text-foreground underline"
+ >
+ upgrade to pro to connect
+ </button>
+ </div>
) : (
<Button onClick={handleConnect} disabled={status === "loading"} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal whitespace-nowrap">
{status === "loading"
diff --git a/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx b/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
index a407e554d..751357422 100644
--- a/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/gmail-card.tsx
@@ -6,8 +6,10 @@
import React, { useState, useEffect, useCallback } from "react";
import { Card, CardContent } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
-import { Loader2, LogOut, Mail, Plus } from "lucide-react";
+import { Loader2, Lock, LogOut, Mail, Plus } from "lucide-react";
import { commands } from "@/lib/utils/tauri";
+import { useSettings } from "@/lib/hooks/use-settings";
+import { openUrl } from "@tauri-apps/plugin-opener";
import posthog from "posthog-js";
interface GmailAccount {
@@ -16,6 +18,8 @@ interface GmailAccount {
}
export function GmailCard() {
+ const { settings } = useSettings();
+ const isPro = !!settings.user?.cloud_subscribed;
const [accounts, setAccounts] = useState<GmailAccount[]>([]);
const [isConnecting, setIsConnecting] = useState(false);
const [disconnecting, setDisconnecting] = useState<string | null>(null);
@@ -132,26 +136,51 @@ export function GmailCard() {
)}
{/* Connect / Add account button */}
- <Button
- variant="outline"
- size="sm"
- onClick={handleConnect}
- disabled={isConnecting}
- className="text-xs"
- >
- {isConnecting ? (
- <Loader2 className="h-3 w-3 mr-1.5 animate-spin" />
- ) : connected ? (
- <Plus className="h-3 w-3 mr-1.5" />
- ) : (
- <Mail className="h-3 w-3 mr-1.5" />
- )}
- {isConnecting
- ? "Waiting for Google..."
- : connected
- ? "Add another account"
- : "Connect Gmail"}
- </Button>
+ {!isPro && !connected ? (
+ <div className="flex flex-col gap-1.5">
+ <Button disabled size="sm" className="gap-1.5 h-7 text-xs opacity-60">
+ <Lock className="h-3 w-3" />pro required
+ </Button>
+ <button
+ onClick={async () => {
+ try {
+ const response = await fetch("https://screenpi.pe/api/subscription/checkout", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ plan: "monthly", origin: "desktop-gmail-gate" }),
+ });
+ const data = await response.json();
+ if (data.url) { await openUrl(data.url); return; }
+ } catch {}
+ await openUrl("https://screenpi.pe");
+ }}
+ className="text-[10px] text-muted-foreground hover:text-foreground underline"
+ >
+ upgrade to pro to connect
+ </button>
+ </div>
+ ) : (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={handleConnect}
+ disabled={isConnecting}
+ className="text-xs"
+ >
+ {isConnecting ? (
+ <Loader2 className="h-3 w-3 mr-1.5 animate-spin" />
+ ) : connected ? (
+ <Plus className="h-3 w-3 mr-1.5" />
+ ) : (
+ <Mail className="h-3 w-3 mr-1.5" />
+ )}
+ {isConnecting
+ ? "Waiting for Google..."
+ : connected
+ ? "Add another account"
+ : "Connect Gmail"}
+ </Button>
+ )}
</div>
</div>
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 5d6c63373..03940ae2b 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9642,7 +9642,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.3.26"
+version = "2.3.28"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs b/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs
index 941d81c6e..0e5be2692 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs
@@ -8,6 +8,7 @@
//! screenpipe-connect is automatically handled by these commands.
//! Adding a new OAuth provider requires zero changes here.
+use crate::store::SettingsStore;
use screenpipe_connect::connections::all_integrations;
use screenpipe_connect::oauth::{self, OAUTH_REDIRECT_URI, PENDING_OAUTH};
use serde::{Deserialize, Serialize};
@@ -52,6 +53,17 @@ pub async fn oauth_connect(
.oauth_config()
.ok_or_else(|| format!("{} does not use OAuth", integration_id))?;
+ // Gate OAuth behind Pro subscription
+ let is_pro = SettingsStore::get(&app_handle)
+ .unwrap_or_default()
+ .unwrap_or_default()
+ .user
+ .cloud_subscribed
+ == Some(true);
+ if !is_pro {
+ return Err("OAuth integrations require a Pro subscription. Please upgrade to connect third-party services.".to_string());
+ }
+
let state = uuid::Uuid::new_v4().simple().to_string();
let (tx, rx) = oneshot::channel::<String>();
{